[Mlir-commits] [mlir] [mlir][core] in -mlir-print-ir-*, dump the pass options as well (PR #195198)

Jeremy Kun llvmlistbot at llvm.org
Mon May 4 13:48:08 PDT 2026


================
@@ -79,7 +90,7 @@ void IRPrinterInstrumentation::runBeforePass(Pass *pass, Operation *op) {
     out << "// -----// IR Dump Before " << pass->getName() << " ("
----------------
j2kun wrote:

Done. The only caveat here is that the pass pipeline flag still has a trailing (e.g.) `('func.func' operation: @foo)` when the pass is not at module scope. I don't know if it makes sense here to instead have the pass pipeline printed as `func.func(canonicalize{...})` because then the name of the function is lost, so my default is to leave it with that trailing string.

https://github.com/llvm/llvm-project/pull/195198


More information about the Mlir-commits mailing list