Issue 114253
Summary Python AffineMapAttr missing the value property to access the underlying AffineMap
Labels new issue
Assignees
Reporter GregoryMorse
    Currently, though C++ `getValue()`/`getAffineMap()` is exposed well in the C++ API, in the Python API although we see the `value` property defined (https://github.com/llvm/llvm-project/blob/main/mlir/lib/Bindings/Python/IRAttributes.cpp#L145) we do not see it in the stubs (https://github.com/llvm/llvm-project/blob/main/mlir/python/mlir/_mlir_libs/_mlir/ir.pyi#L741) nor is it actually exposed currently in `AffineMapAttr`, making resorting to various custom methods around `_CAPIPtr` likely the only way to retrieve it. However, the `value` property should be properly exposed and accessible so parsing and walking an MLIR file can be done properly via Python.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to