1fec2927eSJoseph Huber; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs 26fc51c9fSJoseph Huber; RUN: opt -S -passes='openmp-opt' < %s | FileCheck %s 330e36c9bSJoseph Huber; RUN: opt -passes=openmp-opt -pass-remarks=openmp-opt -disable-output < %s 2>&1 | FileCheck %s -check-prefix=CHECK-REMARKS 40136a440SJoseph Huber; RUN: opt -passes=openmp-opt -pass-remarks=openmp-opt -pass-remarks-missed=openmp-opt -disable-output -openmp-opt-shared-limit=4 < %s 2>&1 | FileCheck %s -check-prefix=CHECK-LIMIT 56fc51c9fSJoseph Hubertarget datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64" 66fc51c9fSJoseph Hubertarget triple = "nvptx64" 76fc51c9fSJoseph Huber 857822c3fSJohannes Doerfert; UTC_ARGS: --disable 9fec2927eSJoseph Huber; CHECK-REMARKS: remark: replace_globalization.c:5:7: Replaced globalized variable with 16 bytes of shared memory 10fec2927eSJoseph Huber; CHECK-REMARKS: remark: replace_globalization.c:5:14: Replaced globalized variable with 4 bytes of shared memory 11fec2927eSJoseph Huber; CHECK-REMARKS-NOT: 6 bytes 120136a440SJoseph Huber; CHECK-LIMIT: remark: replace_globalization.c:5:14: Replaced globalized variable with 4 bytes of shared memory 130136a440SJoseph Huber; CHECK-LIMIT: remark: replace_globalization.c:5:7: Found thread data sharing on the GPU. Expect degraded performance due to data globalization 1457822c3fSJohannes Doerfert; UTC_ARGS: --enable 15fec2927eSJoseph Huber 16e2cfbfccSJohannes Doerfert%struct.ident_t = type { i32, i32, i32, i32, i8* } 17e2cfbfccSJohannes Doerfert 1803d7e61cSJoseph Huber@S = external local_unnamed_addr global i8* 19e2cfbfccSJohannes Doerfert@0 = private unnamed_addr constant [113 x i8] c";llvm/test/Transforms/OpenMP/custom_state_machines_remarks.c;__omp_offloading_2a_d80d3d_test_fallback_l11;11;1;;\00", align 1 20e2cfbfccSJohannes Doerfert@1 = private unnamed_addr constant %struct.ident_t { i32 0, i32 2, i32 0, i32 0, i8* getelementptr inbounds ([113 x i8], [113 x i8]* @0, i32 0, i32 0) }, align 8 214166738cSJohannes Doerfert@foo_exec_mode = weak constant i8 1 224166738cSJohannes Doerfert@bar_exec_mode = weak constant i8 1 234166738cSJohannes Doerfert@baz_spmd_exec_mode = weak constant i8 2 2403d7e61cSJoseph Huber 25e2cfbfccSJohannes Doerfert 264166738cSJohannes Doerfertdefine dso_local void @foo() "kernel" { 276fc51c9fSJoseph Huberentry: 28423d34f7SShilei Tian %c = call i32 @__kmpc_target_init(%struct.ident_t* @1, i8 1, i1 true, i1 true) 296e220296SJoseph Huber %x = call align 4 i8* @__kmpc_alloc_shared(i64 4) 3029a3e3ddSGiorgis Georgakoudis call void @unknown_no_openmp() 316fc51c9fSJoseph Huber %x_on_stack = bitcast i8* %x to i32* 326fc51c9fSJoseph Huber %0 = bitcast i32* %x_on_stack to i8* 336fc51c9fSJoseph Huber call void @use(i8* %0) 34754eb1c2SJoseph Huber call void @__kmpc_free_shared(i8* %x, i64 4) 35423d34f7SShilei Tian call void @__kmpc_target_deinit(%struct.ident_t* @1, i8 1, i1 true) 366fc51c9fSJoseph Huber ret void 376fc51c9fSJoseph Huber} 386fc51c9fSJoseph Huber 394166738cSJohannes Doerfertdefine void @bar() "kernel" { 40423d34f7SShilei Tian %c = call i32 @__kmpc_target_init(%struct.ident_t* @1, i8 1, i1 true, i1 true) 4129a3e3ddSGiorgis Georgakoudis call void @unknown_no_openmp() 4257822c3fSJohannes Doerfert %cmp = icmp eq i32 %c, -1 4357822c3fSJohannes Doerfert br i1 %cmp, label %master1, label %exit 4457822c3fSJohannes Doerfertmaster1: 456e220296SJoseph Huber %x = call align 4 i8* @__kmpc_alloc_shared(i64 16), !dbg !11 4657822c3fSJohannes Doerfert %x_on_stack = bitcast i8* %x to [4 x i32]* 4757822c3fSJohannes Doerfert %a0 = bitcast [4 x i32]* %x_on_stack to i8* 4857822c3fSJohannes Doerfert call void @use(i8* %a0) 4957822c3fSJohannes Doerfert call void @__kmpc_free_shared(i8* %x, i64 16) 5057822c3fSJohannes Doerfert br label %next 5157822c3fSJohannes Doerfertnext: 5257822c3fSJohannes Doerfert call void @unknown_no_openmp() 5357822c3fSJohannes Doerfert %b0 = icmp eq i32 %c, -1 5457822c3fSJohannes Doerfert br i1 %b0, label %master2, label %exit 5557822c3fSJohannes Doerfertmaster2: 566e220296SJoseph Huber %y = call align 4 i8* @__kmpc_alloc_shared(i64 4), !dbg !12 5757822c3fSJohannes Doerfert %y_on_stack = bitcast i8* %y to [4 x i32]* 5857822c3fSJohannes Doerfert %b1 = bitcast [4 x i32]* %y_on_stack to i8* 5957822c3fSJohannes Doerfert call void @use(i8* %b1) 6057822c3fSJohannes Doerfert call void @__kmpc_free_shared(i8* %y, i64 4) 6157822c3fSJohannes Doerfert br label %exit 6257822c3fSJohannes Doerfertexit: 63423d34f7SShilei Tian call void @__kmpc_target_deinit(%struct.ident_t* @1, i8 1, i1 true) 646fc51c9fSJoseph Huber ret void 656fc51c9fSJoseph Huber} 666fc51c9fSJoseph Huber 674166738cSJohannes Doerfertdefine void @baz_spmd() "kernel" { 6857822c3fSJohannes Doerfert %c = call i32 @__kmpc_target_init(%struct.ident_t* @1, i8 2, i1 true, i1 true) 6929a3e3ddSGiorgis Georgakoudis call void @unknown_no_openmp() 7057822c3fSJohannes Doerfert %c0 = icmp eq i32 %c, -1 7157822c3fSJohannes Doerfert br i1 %c0, label %master3, label %exit 7257822c3fSJohannes Doerfertmaster3: 736e220296SJoseph Huber %z = call align 4 i8* @__kmpc_alloc_shared(i64 24), !dbg !12 7457822c3fSJohannes Doerfert %z_on_stack = bitcast i8* %z to [6 x i32]* 7557822c3fSJohannes Doerfert %c1 = bitcast [6 x i32]* %z_on_stack to i8* 7657822c3fSJohannes Doerfert call void @use(i8* %c1) 7757822c3fSJohannes Doerfert call void @__kmpc_free_shared(i8* %z, i64 24) 786fc51c9fSJoseph Huber br label %exit 796fc51c9fSJoseph Huberexit: 8057822c3fSJohannes Doerfert call void @__kmpc_target_deinit(%struct.ident_t* @1, i8 2, i1 true) 816fc51c9fSJoseph Huber ret void 826fc51c9fSJoseph Huber} 836fc51c9fSJoseph Huber 846fc51c9fSJoseph Huberdefine void @use(i8* %x) { 856fc51c9fSJoseph Huberentry: 8603d7e61cSJoseph Huber store i8* %x, i8** @S 876fc51c9fSJoseph Huber ret void 886fc51c9fSJoseph Huber} 896fc51c9fSJoseph Huber 90192a34ddSJohannes Doerfert@offset =global i32 undef 91192a34ddSJohannes Doerfert@stack = internal addrspace(3) global [1024 x i8] undef 92192a34ddSJohannes Doerfertdefine private i8* @__kmpc_alloc_shared(i64) { 93192a34ddSJohannes Doerfert %bc = bitcast [1024 x i8] addrspace(3) * @stack to i8 addrspace(3) * 94192a34ddSJohannes Doerfert %ac = addrspacecast i8 addrspace(3) * %bc to i8* 95192a34ddSJohannes Doerfert %l = load i32, i32* @offset 96192a34ddSJohannes Doerfert %gep = getelementptr i8, i8* %ac, i32 %l 97192a34ddSJohannes Doerfert ret i8* %gep 98192a34ddSJohannes Doerfert} 996fc51c9fSJoseph Huber 100754eb1c2SJoseph Huberdeclare void @__kmpc_free_shared(i8*, i64) 1016fc51c9fSJoseph Huber 1026fc51c9fSJoseph Huberdeclare i32 @llvm.nvvm.read.ptx.sreg.tid.x() 1036fc51c9fSJoseph Huber 1046fc51c9fSJoseph Huberdeclare i32 @llvm.nvvm.read.ptx.sreg.ntid.x() 1056fc51c9fSJoseph Huber 1066fc51c9fSJoseph Huberdeclare i32 @llvm.nvvm.read.ptx.sreg.warpsize() 1076fc51c9fSJoseph Huber 108423d34f7SShilei Tiandeclare i32 @__kmpc_target_init(%struct.ident_t*, i8, i1, i1) 109f0628c6fSJohannes Doerfert 110423d34f7SShilei Tiandeclare void @__kmpc_target_deinit(%struct.ident_t*, i8, i1) 111d9659bf6SJohannes Doerfert 11229a3e3ddSGiorgis Georgakoudisdeclare void @unknown_no_openmp() "llvm.assume"="omp_no_openmp" 11329a3e3ddSGiorgis Georgakoudis 1146fc51c9fSJoseph Huber!llvm.dbg.cu = !{!0} 1155ccb7424SJoseph Huber!llvm.module.flags = !{!3, !4, !5, !6} 1164166738cSJohannes Doerfert!nvvm.annotations = !{!7, !8, !13} 1176fc51c9fSJoseph Huber 1186fc51c9fSJoseph Huber!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 12.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None) 1196fc51c9fSJoseph Huber!1 = !DIFile(filename: "replace_globalization.c", directory: "/tmp/replace_globalization.c") 1206fc51c9fSJoseph Huber!2 = !{} 1216fc51c9fSJoseph Huber!3 = !{i32 2, !"Debug Info Version", i32 3} 1226fc51c9fSJoseph Huber!4 = !{i32 1, !"wchar_size", i32 4} 1235ccb7424SJoseph Huber!5 = !{i32 7, !"openmp", i32 50} 1245ccb7424SJoseph Huber!6 = !{i32 7, !"openmp-device", i32 50} 1255ccb7424SJoseph Huber!7 = !{void ()* @foo, !"kernel", i32 1} 1265ccb7424SJoseph Huber!8 = !{void ()* @bar, !"kernel", i32 1} 12757822c3fSJohannes Doerfert!13 = !{void ()* @baz_spmd, !"kernel", i32 1} 1285ccb7424SJoseph Huber!9 = distinct !DISubprogram(name: "bar", scope: !1, file: !1, line: 1, type: !10, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2) 1295ccb7424SJoseph Huber!10 = !DISubroutineType(types: !2) 1305ccb7424SJoseph Huber!11 = !DILocation(line: 5, column: 7, scope: !9) 1315ccb7424SJoseph Huber!12 = !DILocation(line: 5, column: 14, scope: !9) 13229a3e3ddSGiorgis Georgakoudis;. 13329a3e3ddSGiorgis Georgakoudis; CHECK: @[[S:[a-zA-Z0-9_$"\\.-]+]] = external local_unnamed_addr global i8* 13429a3e3ddSGiorgis Georgakoudis; CHECK: @[[GLOB0:[0-9]+]] = private unnamed_addr constant [113 x i8] c" 13529a3e3ddSGiorgis Georgakoudis; CHECK: @[[GLOB1:[0-9]+]] = private unnamed_addr constant [[STRUCT_IDENT_T:%.*]] { i32 0, i32 2, i32 0, i32 0, i8* getelementptr inbounds ([113 x i8], [113 x i8]* @[[GLOB0]], i32 0, i32 0) }, align 8 1364166738cSJohannes Doerfert; CHECK: @[[FOO_EXEC_MODE:[a-zA-Z0-9_$"\\.-]+]] = weak constant i8 1 1374166738cSJohannes Doerfert; CHECK: @[[BAR_EXEC_MODE:[a-zA-Z0-9_$"\\.-]+]] = weak constant i8 1 1384166738cSJohannes Doerfert; CHECK: @[[BAZ_SPMD_EXEC_MODE:[a-zA-Z0-9_$"\\.-]+]] = weak constant i8 2 139192a34ddSJohannes Doerfert; CHECK: @[[OFFSET:[a-zA-Z0-9_$"\\.-]+]] = global i32 undef 140192a34ddSJohannes Doerfert; CHECK: @[[STACK:[a-zA-Z0-9_$"\\.-]+]] = internal addrspace(3) global [1024 x i8] undef 141a1db0e52SJohannes Doerfert; CHECK: @[[X_SHARED:[a-zA-Z0-9_$"\\.-]+]] = internal addrspace(3) global [16 x i8] undef, align 4 142a1db0e52SJohannes Doerfert; CHECK: @[[Y_SHARED:[a-zA-Z0-9_$"\\.-]+]] = internal addrspace(3) global [4 x i8] undef, align 4 14329a3e3ddSGiorgis Georgakoudis;. 1444166738cSJohannes Doerfert; CHECK-LABEL: define {{[^@]+}}@foo 1454166738cSJohannes Doerfert; CHECK-SAME: () #[[ATTR0:[0-9]+]] { 14629a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: entry: 147423d34f7SShilei Tian; CHECK-NEXT: [[C:%.*]] = call i32 @__kmpc_target_init(%struct.ident_t* @[[GLOB1]], i8 1, i1 false, i1 true) 148dbffa407SJoseph Huber; CHECK-NEXT: [[X:%.*]] = call align 4 i8* @__kmpc_alloc_shared(i64 4) #[[ATTR6:[0-9]+]] 149e90bce8fSAugie Fackler; CHECK-NEXT: call void @unknown_no_openmp() 150*bf789b19SJohannes Doerfert; CHECK-NEXT: call void @use.internalized(i8* nofree [[X]]) #[[ATTR7:[0-9]+]] 151dbffa407SJoseph Huber; CHECK-NEXT: call void @__kmpc_free_shared(i8* [[X]], i64 4) #[[ATTR8:[0-9]+]] 152423d34f7SShilei Tian; CHECK-NEXT: call void @__kmpc_target_deinit(%struct.ident_t* @[[GLOB1]], i8 1, i1 true) 15329a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: ret void 15429a3e3ddSGiorgis Georgakoudis; 15529a3e3ddSGiorgis Georgakoudis; 1564166738cSJohannes Doerfert; CHECK-LABEL: define {{[^@]+}}@bar 1574166738cSJohannes Doerfert; CHECK-SAME: () #[[ATTR0]] { 15857822c3fSJohannes Doerfert; CHECK-NEXT: [[C:%.*]] = call i32 @__kmpc_target_init(%struct.ident_t* @[[GLOB1]], i8 1, i1 false, i1 true) 159e90bce8fSAugie Fackler; CHECK-NEXT: call void @unknown_no_openmp() 16057822c3fSJohannes Doerfert; CHECK-NEXT: [[CMP:%.*]] = icmp eq i32 [[C]], -1 16157822c3fSJohannes Doerfert; CHECK-NEXT: br i1 [[CMP]], label [[MASTER1:%.*]], label [[EXIT:%.*]] 16257822c3fSJohannes Doerfert; CHECK: master1: 163*bf789b19SJohannes Doerfert; CHECK-NEXT: call void @use.internalized(i8* nofree addrspacecast (i8 addrspace(3)* getelementptr inbounds ([16 x i8], [16 x i8] addrspace(3)* @x_shared, i32 0, i32 0) to i8*)) #[[ATTR7]] 16457822c3fSJohannes Doerfert; CHECK-NEXT: br label [[NEXT:%.*]] 16557822c3fSJohannes Doerfert; CHECK: next: 166e90bce8fSAugie Fackler; CHECK-NEXT: call void @unknown_no_openmp() 167*bf789b19SJohannes Doerfert; CHECK-NEXT: [[B0:%.*]] = icmp eq i32 [[C]], -1 168*bf789b19SJohannes Doerfert; CHECK-NEXT: br i1 [[B0]], label [[MASTER2:%.*]], label [[EXIT]] 16957822c3fSJohannes Doerfert; CHECK: master2: 170*bf789b19SJohannes Doerfert; CHECK-NEXT: call void @use.internalized(i8* nofree addrspacecast (i8 addrspace(3)* getelementptr inbounds ([4 x i8], [4 x i8] addrspace(3)* @y_shared, i32 0, i32 0) to i8*)) #[[ATTR7]] 17157822c3fSJohannes Doerfert; CHECK-NEXT: br label [[EXIT]] 17257822c3fSJohannes Doerfert; CHECK: exit: 173423d34f7SShilei Tian; CHECK-NEXT: call void @__kmpc_target_deinit(%struct.ident_t* @[[GLOB1]], i8 1, i1 true) 17429a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: ret void 17529a3e3ddSGiorgis Georgakoudis; 17629a3e3ddSGiorgis Georgakoudis; 1774166738cSJohannes Doerfert; CHECK-LABEL: define {{[^@]+}}@baz_spmd 1784166738cSJohannes Doerfert; CHECK-SAME: () #[[ATTR0]] { 17957822c3fSJohannes Doerfert; CHECK-NEXT: [[C:%.*]] = call i32 @__kmpc_target_init(%struct.ident_t* @[[GLOB1]], i8 2, i1 true, i1 true) 180e90bce8fSAugie Fackler; CHECK-NEXT: call void @unknown_no_openmp() 18157822c3fSJohannes Doerfert; CHECK-NEXT: [[C0:%.*]] = icmp eq i32 [[C]], -1 18257822c3fSJohannes Doerfert; CHECK-NEXT: br i1 [[C0]], label [[MASTER3:%.*]], label [[EXIT:%.*]] 18357822c3fSJohannes Doerfert; CHECK: master3: 184dbffa407SJoseph Huber; CHECK-NEXT: [[Z:%.*]] = call align 4 i8* @__kmpc_alloc_shared(i64 24) #[[ATTR6]], !dbg [[DBG10:![0-9]+]] 185*bf789b19SJohannes Doerfert; CHECK-NEXT: call void @use.internalized(i8* nofree [[Z]]) #[[ATTR7]] 186dbffa407SJoseph Huber; CHECK-NEXT: call void @__kmpc_free_shared(i8* [[Z]], i64 24) #[[ATTR8]] 18729a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: br label [[EXIT]] 18829a3e3ddSGiorgis Georgakoudis; CHECK: exit: 18957822c3fSJohannes Doerfert; CHECK-NEXT: call void @__kmpc_target_deinit(%struct.ident_t* @[[GLOB1]], i8 2, i1 true) 19029a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: ret void 19129a3e3ddSGiorgis Georgakoudis; 19229a3e3ddSGiorgis Georgakoudis; 193*bf789b19SJohannes Doerfert; CHECK: Function Attrs: nofree norecurse nounwind writeonly 19429a3e3ddSGiorgis Georgakoudis; CHECK-LABEL: define {{[^@]+}}@use.internalized 1954166738cSJohannes Doerfert; CHECK-SAME: (i8* nofree [[X:%.*]]) #[[ATTR1:[0-9]+]] { 19629a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: entry: 19729a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: store i8* [[X]], i8** @S, align 8 19829a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: ret void 19929a3e3ddSGiorgis Georgakoudis; 20029a3e3ddSGiorgis Georgakoudis; 20129a3e3ddSGiorgis Georgakoudis; CHECK-LABEL: define {{[^@]+}}@use 20229a3e3ddSGiorgis Georgakoudis; CHECK-SAME: (i8* [[X:%.*]]) { 20329a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: entry: 20429a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: store i8* [[X]], i8** @S, align 8 20529a3e3ddSGiorgis Georgakoudis; CHECK-NEXT: ret void 20629a3e3ddSGiorgis Georgakoudis; 207192a34ddSJohannes Doerfert; 208192a34ddSJohannes Doerfert; CHECK-LABEL: define {{[^@]+}}@__kmpc_alloc_shared 2094166738cSJohannes Doerfert; CHECK-SAME: (i64 [[TMP0:%.*]]) #[[ATTR2:[0-9]+]] { 210192a34ddSJohannes Doerfert; CHECK-NEXT: [[L:%.*]] = load i32, i32* @offset, align 4 211192a34ddSJohannes Doerfert; CHECK-NEXT: [[GEP:%.*]] = getelementptr i8, i8* addrspacecast (i8 addrspace(3)* getelementptr inbounds ([1024 x i8], [1024 x i8] addrspace(3)* @stack, i32 0, i32 0) to i8*), i32 [[L]] 212192a34ddSJohannes Doerfert; CHECK-NEXT: ret i8* [[GEP]] 213192a34ddSJohannes Doerfert; 21429a3e3ddSGiorgis Georgakoudis;. 2154166738cSJohannes Doerfert; CHECK: attributes #[[ATTR0]] = { "kernel" } 216*bf789b19SJohannes Doerfert; CHECK: attributes #[[ATTR1]] = { nofree norecurse nounwind writeonly } 2174166738cSJohannes Doerfert; CHECK: attributes #[[ATTR2]] = { nosync nounwind readonly allocsize(0) } 2184166738cSJohannes Doerfert; CHECK: attributes #[[ATTR3:[0-9]+]] = { nosync nounwind } 219dbffa407SJoseph Huber; CHECK: attributes #[[ATTR4:[0-9]+]] = { nocallback nofree nosync nounwind readnone speculatable willreturn } 220dbffa407SJoseph Huber; CHECK: attributes #[[ATTR5:[0-9]+]] = { "llvm.assume"="omp_no_openmp" } 221dbffa407SJoseph Huber; CHECK: attributes #[[ATTR6]] = { nounwind readonly } 222dbffa407SJoseph Huber; CHECK: attributes #[[ATTR7]] = { nounwind writeonly } 223dbffa407SJoseph Huber; CHECK: attributes #[[ATTR8]] = { nounwind } 22429a3e3ddSGiorgis Georgakoudis;. 22529a3e3ddSGiorgis Georgakoudis; CHECK: [[META0:![0-9]+]] = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 12.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None) 22629a3e3ddSGiorgis Georgakoudis; CHECK: [[META1:![0-9]+]] = !DIFile(filename: "replace_globalization.c", directory: "/tmp/replace_globalization.c") 22729a3e3ddSGiorgis Georgakoudis; CHECK: [[META2:![0-9]+]] = !{} 22829a3e3ddSGiorgis Georgakoudis; CHECK: [[META3:![0-9]+]] = !{i32 2, !"Debug Info Version", i32 3} 22929a3e3ddSGiorgis Georgakoudis; CHECK: [[META4:![0-9]+]] = !{i32 1, !"wchar_size", i32 4} 23029a3e3ddSGiorgis Georgakoudis; CHECK: [[META5:![0-9]+]] = !{i32 7, !"openmp", i32 50} 23129a3e3ddSGiorgis Georgakoudis; CHECK: [[META6:![0-9]+]] = !{i32 7, !"openmp-device", i32 50} 23229a3e3ddSGiorgis Georgakoudis; CHECK: [[META7:![0-9]+]] = !{void ()* @foo, !"kernel", i32 1} 23329a3e3ddSGiorgis Georgakoudis; CHECK: [[META8:![0-9]+]] = !{void ()* @bar, !"kernel", i32 1} 2344166738cSJohannes Doerfert; CHECK: [[META9:![0-9]+]] = !{void ()* @baz_spmd, !"kernel", i32 1} 2354166738cSJohannes Doerfert; CHECK: [[DBG10]] = !DILocation(line: 5, column: 14, scope: !11) 2364166738cSJohannes Doerfert; CHECK: [[META11:![0-9]+]] = distinct !DISubprogram(name: "bar", scope: !1, file: !1, line: 1, type: !12, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2) 2374166738cSJohannes Doerfert; CHECK: [[META12:![0-9]+]] = !DISubroutineType(types: !2) 23829a3e3ddSGiorgis Georgakoudis;. 239