From df3a20cd8068c732a0b26bdf8c1857c7d97104b4 Mon Sep 17 00:00:00 2001 From: Nicolai Haehnle Date: Wed, 6 Apr 2016 19:40:20 +0000 Subject: AMDGPU: Add a shader calling convention This makes it possible to distinguish between mesa shaders and other kernels even in the presence of compute shaders. Patch By: Bas Nieuwenhuizen Differential Revision: http://reviews.llvm.org/D18559 llvm-svn: 265589 --- llvm/test/CodeGen/AMDGPU/cayman-loop-bug.ll | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/test/CodeGen/AMDGPU/cayman-loop-bug.ll') diff --git a/llvm/test/CodeGen/AMDGPU/cayman-loop-bug.ll b/llvm/test/CodeGen/AMDGPU/cayman-loop-bug.ll index c7b8c403731..694d922f6d8 100644 --- a/llvm/test/CodeGen/AMDGPU/cayman-loop-bug.ll +++ b/llvm/test/CodeGen/AMDGPU/cayman-loop-bug.ll @@ -8,7 +8,7 @@ ; CHECK-NOT: ALU_PUSH_BEFORE ; CHECK: END_LOOP ; CHECK: END_LOOP -define void @main (<4 x float> inreg %reg0) #0 { +define amdgpu_ps void @main (<4 x float> inreg %reg0) { entry: br label %outer_loop outer_loop: @@ -28,5 +28,3 @@ inner_loop_body: exit: ret void } - -attributes #0 = { "ShaderType"="0" } \ No newline at end of file -- cgit v1.2.3