This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Enable distribution over multiple dimensions
ClosedPublic

Authored by antiagainst on Aug 14 2023, 3:50 PM.

Details

Summary

This commit starts enabling vector distruction over multiple
dimensions. It requires delinearize the lane ID to match the
expected rank. shape_cast and transfer_read now can properly
handle multiple dimensions.

Diff Detail

Event Timeline

antiagainst created this revision.Aug 14 2023, 3:50 PM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested review of this revision.Aug 14 2023, 3:50 PM
hanchung accepted this revision.Aug 16 2023, 10:50 AM

Overall looks good to me, just one optional nit. Thanks!

mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
732

[optional] I'm not a fan about combining computation statement and check statement into a single check. Can you break it into two lines?

This revision is now accepted and ready to land.Aug 16 2023, 10:50 AM
This revision was automatically updated to reflect the committed changes.
antiagainst marked an inline comment as done.