[llvm] [AMDGPU] Introduce address space 13 for VGPR as memory (PR #208557)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 12:56:28 PDT 2026
================
@@ -122,8 +122,16 @@ void llvm::verifyAMDGPUAlloca(VerifierSupport &VS, const AllocaInst &AI) {
if (!VS.TT.isAMDGPU())
return;
- if (AI.getAddressSpace() != AMDGPUAS::PRIVATE_ADDRESS)
- VS.CheckFailed("alloca on amdgpu must be in addrspace(5)", &AI);
+ if (AI.getAddressSpace() != AMDGPUAS::PRIVATE_ADDRESS &&
+ AI.getAddressSpace() != AMDGPUAS::VGPR)
+ VS.CheckFailed("alloca on amdgpu must be in addrspace(5) or addrspace(13)",
----------------
arsenm wrote:
It has dispatch lifetime, like LDS? It's unclear to me how you implement this using alloca
https://github.com/llvm/llvm-project/pull/208557
More information about the llvm-commits
mailing list