[Mlir-commits] [mlir] [mlir-python] Emit only dialect `EnumAttr` registrations. (PR #117918)
Maksim Levental
llvmlistbot at llvm.org
Mon Dec 2 17:49:32 PST 2024
makslevental wrote:
I have added a failing case that demonstrates the problem already exists upstream:
```python
# mlir/test/python/dialects/affine.py
@constructAndPrintInModule
def test_double_AtomicRMWKindAttr_registration():
from mlir.dialects import _affine_enum_gen
```
Note that `affine.py` itself doesn't import _affine_enum_gen` as a workaround/hack for this very problem:
https://github.com/llvm/llvm-project/blob/d50fbe43c9887e776cdfe95deaf312fb9cecfeaf/mlir/python/mlir/dialects/affine.py#L5-L6
https://github.com/llvm/llvm-project/pull/117918
More information about the Mlir-commits
mailing list