This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor][bufferize] Implement getBufferType for CastOp
ClosedPublic

Authored by springerm on Feb 1 2023, 3:59 AM.

Details

Summary

This interface method is used to compute the buffer type of a value during bufferization. It was missing. This is interface method is used during loop bufferization.

Also fix a bug where a cast from an unranked tensor to a ranked tensor type did not always apply a fully dynamic layout map on the result memref.

Diff Detail

Event Timeline

springerm created this revision.Feb 1 2023, 3:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2023, 3:59 AM
springerm requested review of this revision.Feb 1 2023, 3:59 AM
pifon2a accepted this revision.Feb 1 2023, 4:02 AM
This revision is now accepted and ready to land.Feb 1 2023, 4:02 AM
jreiffers accepted this revision.Feb 1 2023, 4:29 AM

Thanks for the fix!