This is an archive of the discontinued LLVM Phabricator instance.

[mlir] teach expensive-checks transform mode about empty handle
ClosedPublic

Authored by ftynse on May 26 2023, 6:19 AM.

Details

Summary

The transform dialect interpreter features the expensive-checks mode
that acts as an embedded sanitizer to track use-after-consume of
transform handles. Its logic is based on the relations between payload
operations, which made it silently ignore empty handles that are
consumed. Also catch and report this case because the remaining code may
hit an assertion on attempting to access a consumed handle (that is
removed from the mapping).

Diff Detail

Event Timeline

ftynse created this revision.May 26 2023, 6:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 6:19 AM
ftynse requested review of this revision.May 26 2023, 6:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 6:19 AM
nicolasvasilache accepted this revision.May 26 2023, 6:21 AM
This revision is now accepted and ready to land.May 26 2023, 6:21 AM