Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGenOpenCL / ptx-calls.cl
blob0081152ae40e0180f493b8fe15475759b4cce857
1 // RUN: %clang_cc1 %s -triple nvptx-unknown-unknown -emit-llvm -O0 -o - | FileCheck %s
3 void device_function() {
5 // CHECK-LABEL: define{{.*}} void @device_function()
7 __kernel void kernel_function() {
8 device_function();
10 // CHECK-LABEL: define{{.*}} spir_kernel void @kernel_function()
11 // CHECK: call void @device_function()
12 // CHECK: !{{[0-9]+}} = !{ptr @kernel_function, !"kernel", i32 1}