mirror-llvm-project/mlir/python
Twice 7c2c06ccfc
[MLIR][Python] Add ConditionallySpeculatable interface and Pure specifier (#195505)
This PR brings two features: the `ConditionallySpeculatable` op
interface and the `Pure` specifier for Python-defined ops.

The result is that you can mark an op as pure like:
```python
class PureOp(
    TestPure.Operation,
    name="pure",
    traits=[Pure]  # just like in the ODS!
):
    a: Operand[IntegerType[32]]
    b: Operand[IntegerType[32]]
    res: Result[IntegerType[32]] = infer_result()
```

Then this op is both `NoMemoryEffect` and `AlwaysSpeculatable`.

Assisted-by: Copilot/GPT5.4
2026-05-05 11:22:33 +08:00
..
mlir [MLIR][Python] Add ConditionallySpeculatable interface and Pure specifier (#195505) 2026-05-05 11:22:33 +08:00
CMakeLists.txt [mlir][x86] Rename x86vector to x86 (#183311) 2026-02-26 11:21:58 +01:00
requirements.txt Reland Support float8_e3m4 and float8_e4m3 in np_to_memref (#186453) (#186833) 2026-03-17 12:11:09 -05:00