Only supports addition and multiplication for now; other cases
to be implemented.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D124380
[mlir][spirv] Add conversion from vector.reduction ClosedPublic Authored by antiagainst on Apr 25 2022, 5:03 AM.
Details Summary Only supports addition and multiplication for now; other cases
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 26 2022, 11:07 PM antiagainst added inline comments.
Closed by commit rGd137c05fc9a3: [mlir][spirv] Add conversion from vector.reduction (authored by antiagainst). · Explain WhyApr 27 2022, 7:29 AM This revision was automatically updated to reflect the committed changes. antiagainst marked an inline comment as done.
Revision Contents
Diff 425517 mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
mlir/test/Conversion/VectorToSPIRV/simple.mlir
mlir/test/Conversion/VectorToSPIRV/vector-to-spirv.mlir
|
nit: we can use getVectorType() method. (and we don't have to check if dyn_cast succeeds or not.