-
- Downloads
[MLIR] Add block detach func to CAPI and use it in Python bindings
Adds `mlirBlockDetach` to the CAPI to remove a block from its parent region. Use it in the Python bindings to implement `Block.append_to(region)`. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D123165
Showing
- mlir/include/mlir-c/IR.h 3 additions, 0 deletionsmlir/include/mlir-c/IR.h
- mlir/lib/Bindings/Python/IRCore.cpp 9 additions, 0 deletionsmlir/lib/Bindings/Python/IRCore.cpp
- mlir/lib/CAPI/IR/IR.cpp 5 additions, 0 deletionsmlir/lib/CAPI/IR/IR.cpp
- mlir/test/CAPI/ir.c 13 additions, 0 deletionsmlir/test/CAPI/ir.c
- mlir/test/python/ir/blocks.py 24 additions, 0 deletionsmlir/test/python/ir/blocks.py
Loading
Please register or sign in to comment