[mlir][spirv] Check type legality using converter for vectors
authorLei Zhang <antiagainst@google.com>
Mon, 15 May 2023 22:36:08 +0000 (22:36 +0000)
committerLei Zhang <antiagainst@google.com>
Mon, 15 May 2023 23:29:37 +0000 (23:29 +0000)
commit71703a097859a24883aa32c3ee258647412c311e
tree7599097e6ec387ed3f10e22153d08cccea29d3e7
parentf649599ea93301bd0d0a2b8e450d1f77425ea92e
[mlir][spirv] Check type legality using converter for vectors

This allows `index` vectors to be converted to SPIR-V.

Reviewed By: ThomasRaoux

Differential Revision: https://reviews.llvm.org/D150616
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
mlir/test/Conversion/VectorToSPIRV/vector-to-spirv.mlir