This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Add VectorInsertDynamicOp and vector.insertelement lowering
ClosedPublic

Authored by abialas on Nov 6 2020, 3:17 AM.

Details

Summary

VectorInsertDynamicOp in SPIRV dialect
conversion from vector.insertelement to spirv VectorInsertDynamicOp

Diff Detail

Event Timeline

abialas created this revision.Nov 6 2020, 3:17 AM
abialas requested review of this revision.Nov 6 2020, 3:17 AM
ThomasRaoux added inline comments.Nov 6 2020, 9:09 AM
mlir/include/mlir/Dialect/SPIRV/SPIRVCompositeOps.td
257

nit: alignment

285

Do we need $component type? This looks redundant as it needs to match vector element type.

abialas updated this revision to Diff 303756.Nov 8 2020, 11:33 PM

Added changes requested by Thomas

ThomasRaoux accepted this revision.Nov 9 2020, 8:45 AM

Looks good!

mlir/include/mlir/Dialect/SPIRV/SPIRVCompositeOps.td
230

nit: Can you break this line so that it doesn't go beyond 80 columns

This revision is now accepted and ready to land.Nov 9 2020, 8:45 AM