[flang-commits] [flang] [flang] Add the MLIR pass pipelines for dumping (PR #183144)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed Feb 25 02:14:47 PST 2026
================
@@ -182,6 +182,53 @@ LLVM IR representation of the program.
**Commands:**
- `flang -mmlir --mlir-print-ir-after-all -S src.f90` dumps the FIR code after each pass to standard error
- `flang -fc1 -emit-llvm src.f90` dumps the LLVM IR to src.ll
+ - `flang -mmlir --mlir-print-ir-before=<pass> -S src.f90` dumps the FIR code before a specific pass to standard error
+ - `flang -mmlir --mlir-print-ir-after=<pass> -S src.f90` dumps the FIR code after a specific pass to standard error
+
+The following pass names are valid arguments to `--mlir-print-ir-before=` and
+`--mlir-print-ir-after=` (listed in pipeline order):
----------------
tblah wrote:
I'm worried this list will easily become out of date. Perhaps we should just say how to query the current list of passes?
https://github.com/llvm/llvm-project/pull/183144
More information about the flang-commits
mailing list