This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Fix spv.CompositeConstruct assembly and validation
ClosedPublic

Authored by antiagainst on Jul 27 2022, 3:47 PM.

Details

Summary

This commit fixes spv.CompositeConstruct to assembly to list
operand types to enable vector construction out of smaller vectors.
Validation is also fixed to properly check the cases for vector
construction.

Diff Detail

Event Timeline

antiagainst created this revision.Jul 27 2022, 3:47 PM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested review of this revision.Jul 27 2022, 3:47 PM
ThomasRaoux accepted this revision.Jul 27 2022, 4:12 PM
ThomasRaoux added inline comments.
mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
1656

nit: use SmallVector<unsigned>

This revision is now accepted and ready to land.Jul 27 2022, 4:12 PM
This revision was landed with ongoing or failed builds.Jul 27 2022, 4:21 PM
This revision was automatically updated to reflect the committed changes.
antiagainst marked an inline comment as done.