Remove the `run` method from `OpPassManager` and `Pass` and migrate it to `OpToOpPass...
authorMehdi Amini <joker.eph@gmail.com>
Thu, 27 Aug 2020 04:42:38 +0000 (04:42 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 27 Aug 2020 04:57:29 +0000 (04:57 +0000)
commit6c05ca21b92a720a3a6022bc1604a8809aaa85fd
tree5160619b1ec09d6c6b1677a99bb950df73657b07
parent9c224fd48ae56ab86f543c53eea6d8a5427dd37c
Remove the `run` method from `OpPassManager` and `Pass` and migrate it to `OpToOpPassAdaptor`

This makes OpPassManager more of a "container" of passes and not responsible to drive the execution.
As such we also make it constructible publicly, which will allow to build arbitrary pipeline decoupled from the execution. We'll make use of this facility to expose "dynamic pipeline" in the future.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D86391
mlir/include/mlir/Pass/Pass.h
mlir/include/mlir/Pass/PassManager.h
mlir/lib/Pass/Pass.cpp
mlir/lib/Pass/PassDetail.h