This is an archive of the discontinued LLVM Phabricator instance.

[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
to be implemented.

Diff Detail

Event Timeline

antiagainst created this revision.Apr 25 2022, 5:03 AM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested review of this revision.Apr 25 2022, 5:03 AM
hanchung accepted this revision.Apr 26 2022, 11:07 PM
hanchung added inline comments.
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
265

nit: we can use getVectorType() method. (and we don't have to check if dyn_cast succeeds or not.

This revision is now accepted and ready to land.Apr 26 2022, 11:07 PM
antiagainst marked an inline comment as done.Apr 27 2022, 7:28 AM
antiagainst added inline comments.
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
265

I don't think there is a getVectorType() API right now.

This revision was automatically updated to reflect the committed changes.
antiagainst marked an inline comment as done.