1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-globals
2 ; RUN: opt -S -passes=openmp-opt-postlink < %s | FileCheck %s --check-prefix=POSTLINK
3 ; RUN: opt -S -passes=openmp-opt < %s | FileCheck %s --check-prefix=PRELINK
5 @client = internal addrspace(1) global i32 zeroinitializer, align 8
6 @__llvm_libc_rpc_client = protected local_unnamed_addr addrspace(1) global ptr addrspacecast (ptr addrspace(1) @client to ptr), align 8
9 ; POSTLINK-NOT: @[[CLIENT:[a-zA-Z0-9_$"\\.-]+]] = internal addrspace(1) global i32 0, align 8
10 ; POSTLINK-NOT: @[[__LLVM_LIBC_RPC_CLIENT:[a-zA-Z0-9_$"\\.-]+]] = protected local_unnamed_addr addrspace(1) global ptr addrspacecast (ptr addrspace(1) @client to ptr), align 8
12 ; PRELINK: @[[CLIENT:[a-zA-Z0-9_$"\\.-]+]] = internal addrspace(1) global i32 0, align 8
13 ; PRELINK: @[[__LLVM_LIBC_RPC_CLIENT:[a-zA-Z0-9_$"\\.-]+]] = protected local_unnamed_addr addrspace(1) global ptr addrspacecast (ptr addrspace(1) @client to ptr), align 8
16 ; POSTLINK-LABEL: define {{[^@]+}}@a() {
17 ; POSTLINK-NEXT: ret void
19 ; PRELINK-LABEL: define {{[^@]+}}@a() {
20 ; PRELINK-NEXT: ret void
25 !llvm.module.flags = !{!0, !1, !2}
27 !0 = !{i32 1, !"wchar_size", i32 4}
28 !1 = !{i32 7, !"openmp", i32 50}
29 !2 = !{i32 7, !"openmp-device", i32 50}