1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes --version 3
2 ; RUN: opt < %s -S -passes=openmp-opt | FileCheck %s
4 source_filename = "bug66687.ll"
5 target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
6 target triple = "nvptx64-nvidia-cuda"
8 define weak void @openmp_kernel() "kernel" {
9 ; CHECK-LABEL: define weak void @openmp_kernel(
10 ; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
11 ; CHECK-NEXT: ret void
16 define weak_odr void @non_openmp_kernel() {
17 ; CHECK-LABEL: define weak_odr void @non_openmp_kernel() {
18 ; CHECK-NEXT: ret void
23 !llvm.module.flags = !{!0, !1}
24 !nvvm.annotations = !{!2, !3}
26 !0 = !{i32 7, !"openmp", i32 51}
27 !1 = !{i32 7, !"openmp-device", i32 51}
28 !2 = !{ptr @openmp_kernel, !"kernel", i32 1}
29 !3 = !{ptr @non_openmp_kernel, !"kernel", i32 1}