[llvm] [AMDGPU][Verifier] Check address space of `alloca` instruction (PR #135820)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 26 12:39:47 PDT 2025
================
@@ -4395,6 +4395,11 @@ void Verifier::visitAllocaInst(AllocaInst &AI) {
verifySwiftErrorValue(&AI);
}
+ if (TT.isAMDGPU()) {
+ Check(AI.getAddressSpace() == AMDGPUAS::PRIVATE_ADDRESS,
+ "alloca on amdgpu must be in addrspace(5)", &AI);
----------------
nikic wrote:
I'm fine with leaving it at that for now.
https://github.com/llvm/llvm-project/pull/135820
More information about the llvm-commits
mailing list