[mlir-opt] Add a '-dump-pass-pipeline' option
authorrkayaith <rkayaith@gmail.com>
Tue, 11 Oct 2022 21:39:34 +0000 (17:39 -0400)
committerrkayaith <rkayaith@gmail.com>
Thu, 20 Oct 2022 23:20:24 +0000 (19:20 -0400)
commitcad61e49b28b6cccf26bfb2da0dcbe06cceb72d6
treeba9985f6dd6270553fbf078b10855331470006c6
parent889911ec268a342ec5da0e343eda85233fb62f5a
[mlir-opt] Add a '-dump-pass-pipeline' option

Add an option to dump the pipeline that will be run to stderr. A
dedicated option is needed since the existing `test-dump-pipeline`
pipeline won't be usable with `-pass-pipeline` after D135745.

Reviewed By: rriddle, mehdi_amini

Differential Revision: https://reviews.llvm.org/D135747
mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h
mlir/lib/Pass/Pass.cpp
mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
mlir/test/Pass/pipeline-options-parsing.mlir
mlir/test/lib/Pass/TestPassManager.cpp