This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Add more vector conversion patterns
ClosedPublic

Authored by antiagainst on Feb 4 2021, 8:03 AM.

Details

Summary

This patch introduces a few more straightforward patterns
to convert vector ops operating on 1-4 element vectors
to their corresponding SPIR-V counterparts.

This patch also enables converting vector<1xT> to T.

Depends On D96041

Diff Detail

Event Timeline

antiagainst created this revision.Feb 4 2021, 8:03 AM
antiagainst requested review of this revision.Feb 4 2021, 8:03 AM
ThomasRaoux accepted this revision.Feb 4 2021, 8:41 AM
ThomasRaoux added inline comments.
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
33–35

nit: should this function be outside the namespace? Maybe add a doc as well.

This revision is now accepted and ready to land.Feb 4 2021, 8:41 AM

Address comments

antiagainst marked an inline comment as done.Feb 4 2021, 11:32 AM
Harbormaster completed remote builds in B87965: Diff 321528.
This revision was landed with ongoing or failed builds.Feb 5 2021, 6:11 AM
This revision was automatically updated to reflect the committed changes.