[Mlir-commits] [mlir] [MLIR][Python] Impl XOpInterface(s) from Python, with X=Transform and X=MemoryEffects (PR #176920)

Rolf Morel llvmlistbot at llvm.org
Wed Jan 28 05:24:56 PST 2026


================
@@ -424,14 +428,18 @@ class AddOp(MyInt.Operation, name="add"):
     ```
     """
 
+    class ExtOperation(Operation):
+        def __init__(*args, **kwargs):
+            raise RuntimeError("Cannot instantiate Dialect.ExtOperation directly.")
----------------
rolfmorel wrote:

Done 👍

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


More information about the Mlir-commits mailing list