This is an archive of the discontinued LLVM Phabricator instance.

[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
region. Use it in the Python bindings to implement
Block.append_to(region).

Diff Detail

Event Timeline

jdd created this revision.Apr 5 2022, 4:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2022, 4:50 PM
jdd requested review of this revision.Apr 5 2022, 4:50 PM
mehdi_amini accepted this revision.Apr 5 2022, 6:27 PM
This revision is now accepted and ready to land.Apr 5 2022, 6:27 PM