[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenOpenCL / ptx-kernels.cl
blob02a9f8647610ef05c88c9b3c7eb990dac6d470a0
1 // RUN: %clang_cc1 -no-opaque-pointers %s -triple nvptx-unknown-unknown -emit-llvm -o - | FileCheck %s
3 void device_function() {
5 // CHECK-LABEL: define{{.*}} void @device_function()
7 __kernel void kernel_function() {
9 // CHECK-LABEL: define{{.*}} spir_kernel void @kernel_function()
11 // CHECK: !{{[0-9]+}} = !{void ()* @kernel_function, !"kernel", i32 1}