1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes
2 ; RUN: opt < %s -S -passes=openmp-opt-cgscc | FileCheck %s
4 declare void @unknown()
7 define void @__kmpc_noinline() noinline nounwind {
8 ; CHECK: Function Attrs: nounwind
9 ; CHECK-LABEL: @__kmpc_noinline(
10 ; CHECK-NEXT: call void @unknown()
11 ; CHECK-NEXT: ret void
17 define void @omp_noinline() noinline nounwind {
18 ; CHECK: Function Attrs: nounwind
19 ; CHECK-LABEL: @omp_noinline(
20 ; CHECK-NEXT: call void @unknown()
21 ; CHECK-NEXT: ret void
27 define void @_ZN4ompx_noinline() noinline nounwind {
28 ; CHECK: Function Attrs: nounwind
29 ; CHECK-LABEL: @_ZN4ompx_noinline(
30 ; CHECK-NEXT: call void @unknown()
31 ; CHECK-NEXT: ret void
39 define void @__kmpc_noinline_optnone() noinline optnone nounwind {
40 ; CHECK: Function Attrs: noinline nounwind optnone
41 ; CHECK-LABEL: @__kmpc_noinline_optnone(
42 ; CHECK-NEXT: call void @unknown()
43 ; CHECK-NEXT: ret void
48 define void @omp_noinline_optnone() noinline optnone nounwind {
49 ; CHECK: Function Attrs: noinline nounwind optnone
50 ; CHECK-LABEL: @omp_noinline_optnone(
51 ; CHECK-NEXT: call void @unknown()
52 ; CHECK-NEXT: ret void
58 define void @_ZN4ompx_noinline_optnone() noinline optnone nounwind {
59 ; CHECK: Function Attrs: noinline nounwind optnone
60 ; CHECK-LABEL: @_ZN4ompx_noinline_optnone(
61 ; CHECK-NEXT: call void @unknown()
62 ; CHECK-NEXT: ret void
67 define void @a___kmpc_noinline() noinline nounwind {
68 ; CHECK: Function Attrs: noinline nounwind
69 ; CHECK-LABEL: @a___kmpc_noinline(
70 ; CHECK-NEXT: call void @unknown()
71 ; CHECK-NEXT: ret void
76 define void @a_omp_noinline() noinline nounwind {
77 ; CHECK: Function Attrs: noinline nounwind
78 ; CHECK-LABEL: @a_omp_noinline(
79 ; CHECK-NEXT: call void @unknown()
80 ; CHECK-NEXT: ret void
85 define void @a__ZN4ompx_noinline() noinline nounwind {
86 ; CHECK: Function Attrs: noinline nounwind
87 ; CHECK-LABEL: @a__ZN4ompx_noinline(
88 ; CHECK-NEXT: call void @unknown()
89 ; CHECK-NEXT: ret void
95 !llvm.module.flags = !{!0, !1}
97 !0 = !{i32 7, !"openmp", i32 50}
98 !1 = !{i32 7, !"openmp-device", i32 50}