This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Convert some 0-D vector extract/insertelement ops
ClosedPublic

Authored by antiagainst on Sep 1 2022, 8:37 PM.

Diff Detail

Event Timeline

antiagainst created this revision.Sep 1 2022, 8:37 PM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested review of this revision.Sep 1 2022, 8:37 PM
kuhar added a subscriber: Mogball.Sep 1 2022, 8:55 PM
kuhar added inline comments.
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
65–66

nit: Type resultType = ? In D132613, @Mogball suggested using Type instead of auto in this case, but I'm not sure how much consensus there is on this

Also in the other matchAndRewrite below.

mlir/test/Conversion/VectorToSPIRV/vector-to-spirv.mlir
125

why not .+?

antiagainst marked 2 inline comments as done.

Address comments

antiagainst added inline comments.Sep 2 2022, 2:39 PM
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
65–66

Yeah, I think from the code it's clearly some Type. So not sure how much additional benefits it brings. Though given auto and Type are both 4 chars, I'm fine switching to Type since it's not longer.

kuhar accepted this revision.Sep 2 2022, 2:40 PM
This revision is now accepted and ready to land.Sep 2 2022, 2:40 PM
This revision was landed with ongoing or failed builds.Sep 2 2022, 2:49 PM
This revision was automatically updated to reflect the committed changes.