[llvm] [SPIRV] Unify unsized array handling for AMGCN flavoured SPIR-V (PR #175848)

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 14 07:33:12 PST 2026


================
@@ -876,6 +876,9 @@ SPIRVType *SPIRVGlobalRegistry::getOpTypeArray(uint32_t NumElems,
   SPIRVType *ArrayType = nullptr;
   const SPIRVSubtarget &ST =
       cast<SPIRVSubtarget>(MIRBuilder.getMF().getSubtarget());
+  if (NumElems == 0 &&
----------------
maarquitos14 wrote:

I was going to ask a similar question. Maybe we're missing something and `UINT32_MAX` can't be used as size for arrays, but I'd like to know why if that is the case.

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


More information about the llvm-commits mailing list