Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGenOpenCL / amdgpu-call-kernel.cl
blobe4678abf3350099d9b64bd76c60dc81881b196a0
1 // REQUIRES: amdgpu-registered-target
2 // RUN: %clang_cc1 -triple amdgcn-unknown-unknown -emit-llvm -o - %s | FileCheck %s
3 // CHECK: define{{.*}} amdgpu_kernel void @test_call_kernel(ptr addrspace(1) nocapture noundef writeonly align 4 %out)
4 // CHECK: store i32 4, ptr addrspace(1) %out, align 4
6 kernel void test_kernel(global int *out)
8 out[0] = 4;
11 __kernel void test_call_kernel(__global int *out)
13 test_kernel(out);