This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization][NFC] Put inplacability conflict resolution in op interface
ClosedPublic

Authored by springerm on Jun 1 2022, 1:21 PM.

Details

Summary

The TensorCopyInsertion pass resolves out-of-place bufferization decisions by inserting explicit bufferization.alloc_tensor ops. This change moves that functionality into a new BufferizableOpInterface method, so that it can be overridden by op implementations. Some op bufferizations must insert additional alloc_tensor ops to make sure that certain aliasing invariants are not violated (e.g., scf::ForOp). This will be addressed in a subsequent change.

Depends On D126573

Diff Detail

Event Timeline

springerm created this revision.Jun 1 2022, 1:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 1:21 PM
springerm requested review of this revision.Jun 1 2022, 1:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 1:21 PM
aartbik accepted this revision.Jun 9 2022, 8:50 AM
This revision is now accepted and ready to land.Jun 9 2022, 8:50 AM
This revision was landed with ongoing or failed builds.Jun 9 2022, 1:10 PM
This revision was automatically updated to reflect the committed changes.