This is an archive of the discontinued LLVM Phabricator instance.

[mlir] reallow null results in TransformEachOpTrait
ClosedPublic

Authored by ftynse on Feb 13 2023, 4:37 AM.

Details

Summary

Previous changes in 98acd7468307b6099e7deae206a749af324ff95f were overly
eager to disallow null payload everywhere. The semantics of
TransformEachOpTrait allows individual applications to return null
payloads as means of filtering out the operations to which they are not
applicable without emitting even a silenceable failure. This is a
questionable choice, but one apparently relied upon. Null payloads are
not supposed to leak outside of the trait.

Diff Detail

Event Timeline

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