This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Add missing support for scalable vectors
ClosedPublic

Authored by awarzynski on Aug 7 2023, 3:31 AM.

Details

Summary

This patch adds the missing logic so that the
TransferReadPermutationLowering can be used for scalable vectors. To
this end:

  • TransferOp custom C++ builder is updated to support scalable vectors,
  • TransferOpReduceRank is also updated to support scalable vectors.

This pattern is relevant when lowering linalg.matmul via
vector_multi_reduction for scalable vectors.

Depends on D157092

Diff Detail

Event Timeline

awarzynski created this revision.Aug 7 2023, 3:31 AM
Herald added a project: Restricted Project. · View Herald Transcript
awarzynski requested review of this revision.Aug 7 2023, 3:31 AM
dcaballe accepted this revision.Aug 7 2023, 10:35 AM

Thanks!

mlir/lib/Dialect/Vector/IR/VectorOps.cpp
4953

nit: move ub to variable

This revision is now accepted and ready to land.Aug 7 2023, 10:35 AM