[Mlir-commits] [mlir] [mlir][spirv] Handle vectors of integers of unsupported width (PR #118663)
Jakub Kuderski
llvmlistbot at llvm.org
Wed Dec 4 08:28:59 PST 2024
================
@@ -299,6 +299,10 @@ convertScalarType(const spirv::TargetEnv &targetEnv,
/// supported integer types.
static Type convertSubByteIntegerType(const SPIRVConversionOptions &options,
IntegerType type) {
+ if (type.getWidth() > 8) {
+ LLVM_DEBUG(llvm::dbgs() << "not a subbyte type\n");
+ return nullptr;
+ }
----------------
kuhar wrote:
Added a comment. Retuning null on unsupported types follows the general stye of the type conversion in mlir.
https://github.com/llvm/llvm-project/pull/118663
More information about the Mlir-commits
mailing list