Add pass to print the entire IR on the debug stream.
This is meant for debugging purposes to inspect the IR at a specific point in the pipeline.
Details
Details
- Reviewers
pifon2a - Commits
- rGbdb955b307c5: [MLIR] Add `print-ir` pass for debugging purposes
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is it equivalent to mlir-print-ir-after=pass-name ? https://mlir.llvm.org/docs/PassManagement/#ir-printing
Comment Actions
mlir-print-ir-after=pass-name is easy enough to use from the opt tools. However, I could not find an easy way to set that programmatically (or pass the flag through the tests)
| mlir/lib/Transforms/DumpIR.cpp | ||
|---|---|---|
| 18 ↗ | (On Diff #501220) | PrintIR? |
| mlir/lib/Transforms/CMakeLists.txt | ||
|---|---|---|
| 7 | nit: sort | |
nit: sort