[mlir][spirv] Fail vector.bitcast conversion with different bitwidth
authorLei Zhang <antiagainst@gmail.com>
Thu, 29 Dec 2022 23:27:29 +0000 (15:27 -0800)
committerLei Zhang <antiagainst@gmail.com>
Thu, 29 Dec 2022 23:43:55 +0000 (15:43 -0800)
commit56c069887b955bfa9f87f5fe8e87d219afbf4063
tree6cb39865a4ba1cafdfda27d38311e528fe8c05bc
parent4ddba3a7061fef81faed2f0fbaba25f4b78f6014
[mlir][spirv] Fail vector.bitcast conversion with different bitwidth

Depending on the target environment, we may need to emulate certain
types, which can cause issue with bitcast.

Reviewed By: ThomasRaoux

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