1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes --check-attributes --check-globals --include-generated-funcs
2 ; RUN: opt -passes=openmp-opt -S < %s | FileCheck %s --check-prefixes=CHECK
4 @IsSPMDMode = internal addrspace(3) global i32 undef
6 ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)
7 declare void @llvm.assume(i1 noundef) #0
9 define weak_odr amdgpu_kernel void @__omp_offloading_16_2e1d69__ZN11qmcplusplus7ompBLAS9gemv_implIfEEiRiciiT_PKS3_iS5_iS3_PS3_i_l44() {
11 %i36 = load i32, ptr addrspace(3) @IsSPMDMode, align 4
12 %i37 = icmp eq i32 %i36, 0
13 tail call void @llvm.assume(i1 %i37)
17 attributes #0 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) }
19 !llvm.module.flags = !{!0, !1}
21 !0 = !{i32 7, !"openmp", i32 50}
22 !1 = !{i32 7, !"openmp-device", i32 50}
24 ; CHECK: @IsSPMDMode = internal addrspace(3) global i32 undef
26 ; CHECK-LABEL: define {{[^@]+}}@__omp_offloading_16_2e1d69__ZN11qmcplusplus7ompBLAS9gemv_implIfEEiRiciiT_PKS3_iS5_iS3_PS3_i_l44() {
28 ; CHECK-NEXT: tail call void @llvm.assume(i1 true)
29 ; CHECK-NEXT: ret void
32 ; CHECK: attributes #[[ATTR0:[0-9]+]] = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
34 ; CHECK: [[META0:![0-9]+]] = !{i32 7, !"openmp", i32 50}
35 ; CHECK: [[META1:![0-9]+]] = !{i32 7, !"openmp-device", i32 50}