[Mlir-commits] [mlir] [mlir][arith] Add overflow flags support to arith ops (PR #77211)
Sergei Lebedev
llvmlistbot at llvm.org
Thu Jan 11 11:44:07 PST 2024
================
@@ -133,4 +133,27 @@ def Arith_FastMathAttr :
let assemblyFormat = "`<` $value `>`";
}
+//===----------------------------------------------------------------------===//
+// IntegerOverflowFlags
----------------
superbobry wrote:
This seems to break the Python bindings, since now both the arith and llvm dialects define `IntegerOverflowFlags`:
```
Traceback (most recent call last):
...
File "[...]/mlir/ir.py", line 14, in decorator_builder
AttrBuilder.insert(kind, func, replace=replace)
RuntimeError: Attribute builder for 'IntegerOverflowFlags' is already registered with func: <function _integeroverflowflags at 0x7faf26f8ce00>
```
The repro is
```
from mlir.dialects import arith, llvm
```
https://github.com/llvm/llvm-project/pull/77211
More information about the Mlir-commits
mailing list