aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenOpenCL/kernel-metadata.cl
blob: ef3758fccaa0727bcdcfc26a46e0aeb75bd8eb2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s

void normal_function() {
}

__kernel void kernel_function() {
}

// CHECK: !opencl.kernels = !{!0}
// CHECK: !0 = !{void ()* @kernel_function, !1, !2, !3, !4, !5}
// CHECK: !1 = !{!"kernel_arg_addr_space"}
// CHECK: !2 = !{!"kernel_arg_access_qual"}
// CHECK: !3 = !{!"kernel_arg_type"}
// CHECK: !4 = !{!"kernel_arg_base_type"}
// CHECK: !5 = !{!"kernel_arg_type_qual"}