This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] Generalize getBufferType
ClosedPublic

Authored by springerm on Aug 29 2022, 9:11 AM.

Details

Summary

This change generalizes getBufferType. This function can be used to predict the buffer type of any tensor value (not just BlockArguments) without changing any IR. It also subsumes getMemorySpace. This is useful for loop bufferization, where the precise buffer type of an iter_arg cannot be known without examining the loop body.

Diff Detail

Event Timeline

springerm created this revision.Aug 29 2022, 9:11 AM
springerm requested review of this revision.Aug 29 2022, 9:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2022, 9:11 AM
bkramer accepted this revision.Aug 30 2022, 6:02 AM

looks good

This revision is now accepted and ready to land.Aug 30 2022, 6:02 AM
This revision was automatically updated to reflect the committed changes.