[flang-commits] [flang] [flang] Add the MLIR pass pipelines for dumping (PR #183144)
via flang-commits
flang-commits at lists.llvm.org
Wed Feb 25 06:52:09 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):
----------------
tmjbios wrote:
Ok. The "how to" is in the Note at the bottom of the table. I will remove the table and keep the Note.
https://github.com/llvm/llvm-project/pull/183144
More information about the flang-commits
mailing list