[Mlir-commits] [mlir] [mlir][Python] downcast Value to BlockArgument or OpResult (PR #175264)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jan 9 22:01:03 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))
----------------
PragmaTwice wrote:
It seems that when there are multiple result values, we don’t show which index it is in `__str__`? (though this is unrelated to this PR).
https://github.com/llvm/llvm-project/pull/175264
More information about the Mlir-commits
mailing list