This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Use public PybindAdaptors in Linalg dialect bindings
ClosedPublic

Authored by ftynse on Jan 5 2022, 4:07 AM.

Details

Summary

Previously, the Python bindings for the Linalg dialect relied on the internal
implementation of core bindings. Most of that functionality was moved, and the
remaining one does not need access to the implementation: it used to accept a
dialect pointer as argument, but it can always be extracted from the operation
that it also accepts; operations are available through PybindAdaptors in an
opaque way. Change the bindings in that direction.

This enables the decoupling of the Linalg dialect Python extension from the
core IR Python extension.

Diff Detail

Event Timeline

ftynse created this revision.Jan 5 2022, 4:07 AM
ftynse requested review of this revision.Jan 5 2022, 4:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2022, 4:07 AM
nicolasvasilache accepted this revision.Jan 5 2022, 5:37 AM
This revision is now accepted and ready to land.Jan 5 2022, 5:37 AM
This revision was automatically updated to reflect the committed changes.