[Mlir-commits] [mlir] [MLIR][Python] Add effect and speculatability specifiers for Python-defined ops (PR #216773)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Aug 22 08:01:25 PDT 2026


================
@@ -1079,6 +1140,16 @@ class NoPureOp(TestPure.Operation, name="no_pure"):
         # CHECK: }
         print(module)
 
+        pure_memory_iface = ir.MemoryEffectsOpInterface(p1)
+        pure_spec_iface = ir.ConditionallySpeculatable(p1)
----------------
PragmaTwice wrote:

Ahh it follows the C++ naming, i.e. [MemoryEffectsOpInterface](https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Interfaces/SideEffectInterfaces.td#L26) and [ConditionallySpeculatable](https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Interfaces/SideEffectInterfaces.td#L105).

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


More information about the Mlir-commits mailing list