[llvm-branch-commits] [llvm] [SPIRV][SPIRVPrepareGlobals] Map AMD's dynamic LDS 0-element globals to arrays with UINT32_MAX elements (PR #166952)
Steven Perron via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 10 06:56:44 PST 2025
Juan Manuel Martinez =?utf-8?q?CaamaƱo?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/166952 at github.com>
================
@@ -52,6 +76,9 @@ bool SPIRVPrepareGlobals::runOnModule(Module &M) {
if (GlobalVariable *Bitcode = M.getNamedGlobal("llvm.embedded.module"))
Changed |= tryExtendLLVMBitcodeMarker(*Bitcode);
+ for (GlobalVariable &GV : make_early_inc_range(M.globals()))
+ Changed |= tryExtendDynamicLDSGlobal(GV);
----------------
s-perron wrote:
You can add a comment explaining why yo want to change the type. I'm not familiar with`HIP`, and if I was looking at this without looking at the commit message I would think it is odd.
https://github.com/llvm/llvm-project/pull/166952
More information about the llvm-branch-commits
mailing list