[Mlir-commits] [mlir] [MLIR][Spirv] Don't lower tensors that can't be represented by an ArrayType (PR #171002)

Jakub Kuderski llvmlistbot at llvm.org
Mon Dec 8 10:02:58 PST 2025


================
@@ -502,6 +502,11 @@ static Type convertTensorType(const spirv::TargetEnv &targetEnv,
                << type << " illegal: cannot handle zero-element tensors\n");
     return nullptr;
   }
+  if (arrayElemCount > std::numeric_limits<unsigned>::max()) {
----------------
kuhar wrote:

yep. Do you have write access or do you want me to merge?

https://github.com/llvm/llvm-project/pull/171002


More information about the Mlir-commits mailing list