[mlir] Allow for using OpPassManager in pass options
authorRiver Riddle <riddleriver@gmail.com>
Fri, 1 Apr 2022 05:34:00 +0000 (22:34 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Sat, 2 Apr 2022 07:45:11 +0000 (00:45 -0700)
commit0d8df98035c8b35c5241e15eb8c4f42e6a008fa2
treed39315971c8ef3f4624e7ba5e176dc16bdf2319d
parent6edef1356921d9cad1a8cd6169207450741536a6
[mlir] Allow for using OpPassManager in pass options

This significantly simplifies the boilerplate necessary for passes
to define nested pass pipelines.

Differential Revision: https://reviews.llvm.org/D122880
mlir/include/mlir/Pass/PassManager.h
mlir/include/mlir/Pass/PassOptions.h
mlir/include/mlir/Transforms/Passes.td
mlir/lib/Pass/Pass.cpp
mlir/lib/Pass/PassRegistry.cpp
mlir/lib/Transforms/Inliner.cpp
mlir/lib/Transforms/PassDetail.h
mlir/test/Pass/crash-recovery.mlir
mlir/test/Pass/pipeline-options-parsing.mlir
mlir/test/Transforms/inlining.mlir