Update remaining PyAttribute-returning APIs to return MlirAttribute instead,
so that they go through the downcasting mechanism.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D154462
[mlir][python] Downcast attributes in more places ClosedPublic Authored by rkayaith on Jul 4 2023, 1:55 PM.
Details Summary Update remaining PyAttribute-returning APIs to return MlirAttribute instead,
Diff Detail
Event Timelinerkayaith added a child revision: D154468: [mlir][python] Replace PythonAttr mappings with downcasting.Jul 4 2023, 8:19 PM This revision is now accepted and ready to land.Jul 5 2023, 1:04 PM Closed by commit rG974c1596abde: [mlir][python] Downcast attributes in more places (authored by rkayaith). · Explain WhyJul 10 2023, 7:01 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 537172 mlir/lib/Bindings/Python/IRAttributes.cpp
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/Bindings/Python/IRModule.h
mlir/lib/Bindings/Python/IRTypes.cpp
mlir/test/python/ir/array_attributes.py
mlir/test/python/ir/attributes.py
mlir/test/python/ir/builtin_types.py
mlir/test/python/ir/operation.py
mlir/test/python/ir/symbol_table.py
|