[Mlir-commits] [mlir] [MLIR][Python] Impl XOpInterface(s) from Python, with X=Transform and X=MemoryEffects (PR #176920)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Jan 27 21:56:34 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.")
----------------
PragmaTwice wrote:
Maybe move it to `Operation.__init__` directly?
https://github.com/llvm/llvm-project/pull/176920
More information about the Mlir-commits
mailing list