[Mlir-commits] [mlir] [mlir][Python] downcast Value to BlockArgument or OpResult (PR #175264)

Maksim Levental llvmlistbot at llvm.org
Sat Jan 10 07:01:53 PST 2026


================
@@ -400,17 +411,21 @@ def cast_int(v) -> Value:
             # CHECK: "custom.op2"(%0#0, %0#1) : (i32, i32) -> ()
             print(op1)
 
-            # CHECK: in caster Value
-            # CHECK: operand 0 NOPValue(%0:2 = "custom.op1"() : () -> (i32, i32))
+            # CHECK: in caster OpResult
+            # CHECK: operand 0 NOPResult(%0:2 = "custom.op1"() : () -> (i32, i32))
----------------
makslevental wrote:

Ya that would be useful. It would be best to do that at the printer level for `mlir::OpResult` itself though. I'll put it on my to-do list.

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


More information about the Mlir-commits mailing list