Add Location, Region and Block to MLIR Python bindings.
authorStella Laurenzo <stellaraccident@gmail.com>
Thu, 27 Aug 2020 06:48:42 +0000 (23:48 -0700)
committerStella Laurenzo <stellaraccident@gmail.com>
Fri, 28 Aug 2020 22:26:05 +0000 (15:26 -0700)
commit2d1362e09af2e35c93aca59852211a735d865a54
tree4f8b5a5f30b7e829e3411661e80080cf0f7b2135
parent1b201914b5a481b17a85dacc3cb675a35a9a7b97
Add Location, Region and Block to MLIR Python bindings.

* This is just enough to create regions/blocks and iterate over them.
* Does not yet implement the preferred iteration strategy (python pseudo containers).
* Refinements need to come after doing basic mappings of operations and values so that the whole hierarchy can be used.

Differential Revision: https://reviews.llvm.org/D86683
mlir/include/mlir-c/IR.h
mlir/lib/Bindings/Python/IRModules.cpp
mlir/lib/Bindings/Python/IRModules.h
mlir/lib/Bindings/Python/PybindUtils.h
mlir/lib/CAPI/IR/IR.cpp
mlir/test/Bindings/Python/ir_location.py [new file with mode: 0644]
mlir/test/Bindings/Python/ir_operation.py [new file with mode: 0644]