[mlir][Pass][NFC] Merge OpToOpPassAdaptor and OpToOpPassAdaptorParallel
authorRiver Riddle <riddleriver@gmail.com>
Wed, 29 Apr 2020 22:08:05 +0000 (15:08 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Wed, 29 Apr 2020 22:23:10 +0000 (15:23 -0700)
commit56a698510faef5bf3ef224c229a049bb1e376a56
tree9e9b1e6942587080242e239da0e10a1986a1fc0a
parent30d17d88528329558b6df22cc9595eae95a9f77c
[mlir][Pass][NFC] Merge OpToOpPassAdaptor and OpToOpPassAdaptorParallel

This moves the threading check to runOnOperation. This produces a much cleaner interface for the adaptor pass, and will allow for the ability to enable/disable threading in a much cleaner way in the future.

Differential Revision: https://reviews.llvm.org/D78313
mlir/lib/Pass/IRPrinting.cpp
mlir/lib/Pass/Pass.cpp
mlir/lib/Pass/PassDetail.h
mlir/lib/Pass/PassStatistics.cpp
mlir/lib/Pass/PassTiming.cpp