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
Paths
| Differential D96042
[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 This patch also enables converting vector<1xT> to T. Depends On D96041
Diff Detail
Event TimelineThomasRaoux added inline comments.
This revision is now accepted and ready to land.Feb 4 2021, 8:41 AM This revision was landed with ongoing or failed builds.Feb 5 2021, 6:11 AM Closed by commit rG9f622b3d5d6a: [mlir][spirv] Add more vector conversion patterns (authored by antiagainst). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 321735 mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp
mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir
mlir/test/Conversion/StandardToSPIRV/std-types-to-spirv.mlir
mlir/test/Conversion/VectorToSPIRV/simple.mlir
|
nit: should this function be outside the namespace? Maybe add a doc as well.