Home | History | Annotate | Download | only in CodeGenOpenCL
      1 // REQUIRES: amdgpu-registered-target
      2 // RUN: %clang_cc1 -triple amdgcn-unknown-unknown -S -emit-llvm -o - %s | FileCheck %s
      3 // CHECK: define amdgpu_kernel void @test_call_kernel(i32 addrspace(1)* nocapture %out)
      4 // CHECK: store i32 4, i32 addrspace(1)* %out, align 4
      5 
      6 kernel void test_kernel(global int *out)
      7 {
      8   out[0] = 4;
      9 }
     10 
     11 __kernel void test_call_kernel(__global int *out)
     12 {
     13   test_kernel(out);
     14 }
     15