llvm/mlir/lib/Bindings/Python
Stella Laurenzo 8e6c55c92c [mlir][python] Extend C/Python API to be usable for CFG construction.
* It is pretty clear that no one has tried this yet since it was both incomplete and broken.
* Fixes a symbol hiding issues keeping even the generic builder from constructing an operation with successors.
* Adds ODS support for successors.
* Adds CAPI `mlirBlockGetParentRegion`, `mlirRegionEqual` + tests (and missing test for `mlirBlockGetParentOperation`).
* Adds Python property: `Block.region`.
* Adds Python methods: `Block.create_before` and `Block.create_after`.
* Adds Python property: `InsertionPoint.block`.
* Adds new blocks.py test to verify a plausible CFG construction case.

Differential Revision: https://reviews.llvm.org/D108898
2021-08-30 08:28:00 -07:00
..
Conversions Re-engineer MLIR python build support. 2021-07-27 15:54:58 +00:00
Transforms Re-engineer MLIR python build support. 2021-07-27 15:54:58 +00:00
AllPassesRegistration.cpp
AsyncPasses.cpp
DialectLinalg.cpp
Dialects.h
DialectSparseTensor.cpp
ExecutionEngineModule.cpp Break apart the MLIR ExecutionEngine from core python module. 2021-07-28 23:59:32 +00:00
Globals.h
GPUPasses.cpp
IRAffine.cpp
IRAttributes.cpp
IRCore.cpp [mlir][python] Extend C/Python API to be usable for CFG construction. 2021-08-30 08:28:00 -07:00
IRModule.cpp
IRModule.h [MLIR] [Python] Allow 'operation.parent' to return 'None' 2021-08-16 22:38:07 -07:00
IRTypes.cpp
LinalgPasses.cpp
MainModule.cpp Break apart the MLIR ExecutionEngine from core python module. 2021-07-28 23:59:32 +00:00
Pass.cpp
Pass.h
PybindUtils.cpp
PybindUtils.h
SparseTensorPasses.cpp