2012-05-25 01:43:12 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple nvptx-unknown-unknown -emit-llvm -O0 -o - | FileCheck %s
|
2011-10-06 01:58:44 +08:00
|
|
|
|
|
|
|
void device_function() {
|
|
|
|
}
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LABEL: define void @device_function()
|
2011-10-06 01:58:44 +08:00
|
|
|
|
|
|
|
__kernel void kernel_function() {
|
|
|
|
device_function();
|
|
|
|
}
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LABEL: define void @kernel_function()
|
2013-03-30 22:38:24 +08:00
|
|
|
// CHECK: call void @device_function()
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: !{{[0-9]+}} = !{void ()* @kernel_function, !"kernel", i32 1}
|
2011-10-06 01:58:44 +08:00
|
|
|
|