[Mlir-commits] [mlir] [MLIR][Transform][Python] Wrapper for transform.foreach (PR #171544)

Maksim Levental llvmlistbot at llvm.org
Tue Dec 9 17:56:20 PST 2025


================
@@ -14,8 +14,10 @@
 def _is_constant_int_like(i):
     return (
         isinstance(i, Value)
-        and isinstance(i.owner, Operation)
-        and isinstance(i.owner.opview, ConstantOp)
+        and (
+            (isinstance(i.owner, Operation) and isinstance(i.owner.opview, ConstantOp))
----------------
makslevental wrote:

if it's the case that some of these "owner" properties still return `Operation` maybe should just make the whole change here (i.e., change all of the rest of them too)?

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


More information about the Mlir-commits mailing list