summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorNikolay Haustov <Nikolay.Haustov@amd.com>2016-05-06 09:07:29 +0000
committerNikolay Haustov <Nikolay.Haustov@amd.com>2016-05-06 09:07:29 +0000
commit1f7732abfab990d56f3aa7ad4180a292fbf9d4fc (patch)
treee2e50e39e9b39c7f7f4b66b8a5c5423fcfc7848d /llvm/test/CodeGen
parenta609e37ebd9911eed50235e52f241c4407678d69 (diff)
downloadbcm5719-llvm-1f7732abfab990d56f3aa7ad4180a292fbf9d4fc.tar.gz
bcm5719-llvm-1f7732abfab990d56f3aa7ad4180a292fbf9d4fc.zip
AMDGPU/SI: Add amdgpu_kernel calling convention. Part 1.
Summary: This will be used for AMDGPU_HSA_KERNEL symbol type in output ELF. Also, in the future unused non-kernels may be optimized. For now, also accept SPIR_KERNEL for HCC frontend. Also, add bitcode compatibility tests for missing calling conventions except AVR_BUILTIN which doesn't have parse code. Reviewers: tstellarAMD, arsenm Subscribers: arsenm, joker.eph, llvm-commits llvm-svn: 268717
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AMDGPU/hsa.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/hsa.ll b/llvm/test/CodeGen/AMDGPU/hsa.ll
index 9017b6253d2..1f07242d29a 100644
--- a/llvm/test/CodeGen/AMDGPU/hsa.ll
+++ b/llvm/test/CodeGen/AMDGPU/hsa.ll
@@ -53,7 +53,7 @@
; HSA: .Lfunc_end0:
; HSA: .size simple, .Lfunc_end0-simple
-define void @simple(i32 addrspace(1)* %out) {
+define amdgpu_kernel void @simple(i32 addrspace(1)* %out) {
entry:
store i32 0, i32 addrspace(1)* %out
ret void
OpenPOWER on IntegriCloud