Disable implicit nesting on parsing textual pass pipeline
authorMehdi Amini <joker.eph@gmail.com>
Wed, 11 Nov 2020 05:33:47 +0000 (05:33 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 11 Nov 2020 19:21:51 +0000 (19:21 +0000)
commita62d38a90d2feee3955df032f22a02a09a42cd44
tree10bc5f5fed2acc3cb2406af6a5246894a9c086f4
parent023f2400f2b4176ada736597950e089e5b72a173
Disable implicit nesting on parsing textual pass pipeline

Previous the textual form of the pass pipeline would implicitly nest,
instead we opt for the explicit form here: this has less surprise.

This also avoids asserting in the bindings when passing a pass pipeline
with incorrect nesting.

Differential Revision: https://reviews.llvm.org/D91233
mlir/include/mlir/Pass/PassManager.h
mlir/include/mlir/Pass/PassRegistry.h
mlir/lib/Pass/Pass.cpp
mlir/lib/Pass/PassRegistry.cpp
mlir/lib/Support/MlirOptMain.cpp
mlir/test/Bindings/Python/pass_manager.py
mlir/test/Pass/pipeline-options-parsing.mlir
mlir/test/Pass/pipeline-parsing.mlir