[flang-commits] [flang] [flang] Add the MLIR pass pipelines for dumping (PR #183144)
via flang-commits
flang-commits at lists.llvm.org
Wed Mar 4 05:16:55 PST 2026
================
@@ -133,6 +138,32 @@ inline void registerMLIRPassesForFortranTools() {
mlir::registerLowerAffinePass();
}
+/// Register the passes used in flang's MLIR pass pipeline so that
+/// --mlir-print-ir-before=<pass> and --mlir-print-ir-after=<pass> work.
+/// This must be called BEFORE mlir::registerPassManagerCLOptions() because
+/// that function creates the PassNameCLParser which snapshots the pass
+/// registry during initialization.
+inline void registerFlangPipelinePasses() {
----------------
tmjbios wrote:
Ok, I'll see if I can get that consolidation to work.
https://github.com/llvm/llvm-project/pull/183144
More information about the flang-commits
mailing list