llvm-project
12 строк · 397.0 Байт
1// RUN: %clang_cc1 %s -triple nvptx-unknown-unknown -emit-llvm -O0 -o - | FileCheck %s
2
3void device_function() {
4}
5// CHECK-LABEL: define{{.*}} void @device_function()
6
7__kernel void kernel_function() {
8device_function();
9}
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}
13
14