llvm-project/mlir/test/Bindings/Python
Stella Laurenzo 7abb0ff7e0 Add Operation to python bindings.
* Fixes a rather egregious bug with respect to the inability to return arbitrary objects from py::init (was causing aliasing of multiple py::object -> native instance).
* Makes Modules and Operations referencable types so that they can be reliably depended on.
* Uniques python operation instances within a context. Opens the door for further accounting.
* Next I will retrofit region and block to be dependent on the operation, and I will attempt to model the API to avoid detached regions/blocks, which will simplify things a lot (in that world, only operations can be detached).
* Added quite a bit of test coverage to check for leaks and reference issues.
* Supercedes: https://reviews.llvm.org/D87213

Differential Revision: https://reviews.llvm.org/D87958
2020-09-23 07:57:50 -07:00
..
context_lifecycle.py First pass on MLIR python context lifetime management. 2020-09-18 12:17:50 -07:00
ir_attributes.py Add Operation to python bindings. 2020-09-23 07:57:50 -07:00
ir_location.py Add Operation to python bindings. 2020-09-23 07:57:50 -07:00
ir_module.py Add Operation to python bindings. 2020-09-23 07:57:50 -07:00
ir_operation.py Add Operation to python bindings. 2020-09-23 07:57:50 -07:00
ir_types.py Add Operation to python bindings. 2020-09-23 07:57:50 -07:00
lit.local.cfg