[Mlir-commits] [mlir] [mlir][tosa] Print generic `cond_if` when block arguments are present (PR #144859)

Amir Bishara llvmlistbot at llvm.org
Fri Jun 20 06:32:18 PDT 2025


================
@@ -3690,12 +3706,11 @@ void IfOp::print(OpAsmPrinter &p) {
     printBlockTerminators = true;
   }
   p << ' ';
-  p.printRegion(getThenGraph(),
+  p.printRegion(thenRegion,
                 /*printEntryBlockArgs=*/false,
----------------
amirBish wrote:

You may enable this flag of the `printEntryBlockArgs` when having block arguments (instead of the generic printing), and then you will have the informative `else` keyword in the print also.

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


More information about the Mlir-commits mailing list