[llvm] [SPIRV] Do not use OpTypeRuntimeArray in Kernel env. (PR #149522)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 09:43:27 PDT 2025
================
@@ -2367,6 +2371,29 @@ void SPIRVEmitIntrinsics::applyDemangledPtrArgTypes(IRBuilder<> &B) {
}
}
+GetElementPtrInst *
+SPIRVEmitIntrinsics::simplifyZeroLengthArrayGepInst(GetElementPtrInst *GEP) {
----------------
Keenuts wrote:
I think this is OK for us:
- `RWStructuredBuffer` uses `[0 x T]`, but it never gets converted to a GEP
- unbounded arrays are not allowed inside those buffers so no GEP with `[0 x T]`
- `RWStructuredBuffer arrayOfBuffer[]` is not implemented yet, but would probably not use an llvm runtime array?
@s-perron am I missing something?
https://github.com/llvm/llvm-project/pull/149522
More information about the llvm-commits
mailing list