summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2019-06-25 11:52:30 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2019-06-25 11:52:30 +0000
commit2710171a15e8eef351c53e3c3555fa89476268f0 (patch)
treeac67d18f75381204115f372d595d2c4a60965533 /llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll
parent08e8cb576021ce493329bbc9fa29e31cb77bfbda (diff)
downloadbcm5719-llvm-2710171a15e8eef351c53e3c3555fa89476268f0.tar.gz
bcm5719-llvm-2710171a15e8eef351c53e3c3555fa89476268f0.zip
AMDGPU: Write LDS objects out as global symbols in code generation
Summary: The symbols use the processor-specific SHN_AMDGPU_LDS section index introduced with a previous change. The linker is then expected to resolve relocations, which are also emitted. Initially disabled for HSA and PAL environments until they have caught up in terms of linker and runtime loader. Some notes: - The llvm.amdgcn.groupstaticsize intrinsics can no longer be lowered to a constant at compile times, which means some tests can no longer be applied. The current "solution" is a terrible hack, but the intrinsic isn't used by Mesa, so we can keep it for now. - We no longer know the full LDS size per kernel at compile time, which means that we can no longer generate a relevant error message at compile time. It would be possible to add a check for the size of individual variables, but ultimately the linker will have to perform the final check. Change-Id: If66dbf33fccfbf3609aefefa2558ac0850d42275 Reviewers: arsenm, rampitec, t-tye, b-sumner, jsjodin Subscribers: qcolombet, kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D61494 llvm-svn: 364297
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll b/llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll
index a3b3d7b341f..367dd173f78 100644
--- a/llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll
+++ b/llvm/test/CodeGen/AMDGPU/lds-zero-initializer.ll
@@ -1,7 +1,7 @@
; RUN: not llc -march=amdgcn -mcpu=tahiti < %s 2>&1 | FileCheck %s
; RUN: not llc -march=amdgcn -mcpu=tonga < %s 2>&1 | FileCheck %s
-; CHECK: in function load_zeroinit_lds_global{{.*}}: unsupported initializer for address space
+; CHECK: lds: unsupported initializer for address space
@lds = addrspace(3) global [256 x i32] zeroinitializer
OpenPOWER on IntegriCloud