This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Avoid creating local OpBuilders in Standard-to-LLVM conversion
ClosedPublic

Authored by ftynse on Jun 26 2020, 5:48 AM.

Details

Summary

Conversions of allocation-related operations in Standard-to-LLVM need
declarations of "malloc" and "free" (or equivalents). They use locally created
OpBuilders pointed at the module level to declare these functions if necessary.
This is poorly compatible with the pattern infrastructure that is unaware of
new operations being created. Update the insertion point of the main rewriter
instead.

Diff Detail

Event Timeline

ftynse created this revision.Jun 26 2020, 5:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2020, 5:48 AM
nicolasvasilache accepted this revision.Jun 26 2020, 6:02 AM
This revision is now accepted and ready to land.Jun 26 2020, 6:02 AM
This revision was automatically updated to reflect the committed changes.