[Mlir-commits] [mlir] [MLIR][Transform][Python] transform.foreach wrapper and .owner OpViews (PR #171544)

Rolf Morel llvmlistbot at llvm.org
Sat Dec 13 15:48:25 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))
----------------
rolfmorel wrote:

Thanks for this, @makslevental! Fixed and fixed.

Let me know if you indeed think this warrants a Discourse PSA.

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


More information about the Mlir-commits mailing list