This is an archive of the discontinued LLVM Phabricator instance.

Add a `mlirModuleGetBody()` accessor to the C API and bind it in Python
ClosedPublic

Authored by mehdi_amini on Oct 27 2020, 10:58 PM.

Details

Summary

Getting the body of a Module is a common need which justifies a
dedicated accessor instead of forcing users to go through the
region->blocks->front unwrapping manually.

Diff Detail

Event Timeline

mehdi_amini created this revision.Oct 27 2020, 10:58 PM
mehdi_amini requested review of this revision.Oct 27 2020, 10:58 PM
ftynse accepted this revision.Oct 28 2020, 2:03 AM
This revision is now accepted and ready to land.Oct 28 2020, 2:03 AM
stellaraccident accepted this revision.Oct 28 2020, 7:03 AM

Thanks! Been meaning to do this for a while!

This revision was landed with ongoing or failed builds.Oct 28 2020, 10:54 AM
This revision was automatically updated to reflect the committed changes.