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).
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Paths 
  |  Differential  D123165  
[MLIR] Add block detach func to CAPI and use it in Python bindings ClosedPublic Authored by jdd on Apr 5 2022, 4:50 PM. 
Details Summary Adds mlirBlockDetach to the CAPI to remove a block from its parent 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Apr 5 2022, 6:27 PM Closed by commit rG8d8738f6fed3: [MLIR] Add block detach func to CAPI and use it in Python bindings (authored by jdd).  ·  Explain WhyApr 6 2022, 1:21 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 420660 mlir/include/mlir-c/IR.h
 mlir/lib/Bindings/Python/IRCore.cpp
 mlir/lib/CAPI/IR/IR.cpp
 mlir/test/CAPI/ir.c
 mlir/test/python/ir/blocks.py
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||