This is an archive of the discontinued LLVM Phabricator instance.

[mlir] provide Python bindings for the Transform dialect
ClosedPublic

Authored by ftynse on May 23 2022, 7:43 AM.

Details

Summary

Python bindings for extensions of the Transform dialect are defined in separate
Python source files that can be imported on-demand, i.e., that are not imported
with the "main" transform dialect. This requires a minor addition to the
ODS-based bindings generator. This approach is consistent with the current
model for downstream projects that are expected to bundle MLIR Python bindings:
such projects can include their custom extensions into the bundle similarly to
how they include their dialects.

Diff Detail

Event Timeline

ftynse created this revision.May 23 2022, 7:43 AM
ftynse requested review of this revision.May 23 2022, 7:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2022, 7:43 AM
nicolasvasilache accepted this revision.May 30 2022, 2:38 AM

Nice, thanks!

This revision is now accepted and ready to land.May 30 2022, 2:38 AM
ftynse updated this revision to Diff 432907.May 30 2022, 6:15 AM

Add bindings for ops added by recently landed commits

This revision was automatically updated to reflect the committed changes.