1 ; RUN: opt -passes=openmp-opt-cgscc -pass-remarks-analysis=openmp-opt -openmp-print-gpu-kernels -disable-output < %s 2>&1 | FileCheck %s --implicit-check-not=non_kernel
3 ; CHECK-DAG: remark: <unknown>:0:0: OpenMP GPU kernel kernel1
4 ; CHECK-DAG: remark: <unknown>:0:0: OpenMP GPU kernel kernel2
6 define void @kernel1() "kernel" {
10 define void @kernel2() "kernel" {
14 define void @non_kernel() {
18 ; Needed to trigger the openmp-opt pass
19 declare dso_local void @__kmpc_kernel_prepare_parallel(ptr)
21 !llvm.module.flags = !{!4}
22 !nvvm.annotations = !{!2, !0, !1, !3, !1, !2}
24 !0 = !{ptr @kernel1, !"kernel", i32 1}
25 !1 = !{ptr @non_kernel, !"non_kernel", i32 1}
26 !2 = !{null, !"align", i32 1}
27 !3 = !{ptr @kernel2, !"kernel", i32 1}
28 !4 = !{i32 7, !"openmp", i32 50}