1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-globals 2; Just run it through opt, no passes needed. 3; This tests debug intrinsics, so we must explicitly disable records. 4; RUN: opt < %s -S --write-experimental-debuginfo=false | FileCheck %s 5 6; ModuleID = 'various_ir_values.c' 7source_filename = "various_ir_values.c" 8target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 9target triple = "x86_64-unknown-linux-gnu" 10 11; Function Attrs: nounwind uwtable 12define dso_local void @foo(ptr %A) #0 !dbg !7 { 13; CHECK-LABEL: define {{[^@]+}}@foo 14; CHECK-SAME: (ptr [[A:%.*]]) #[[ATTR0:[0-9]+]] !dbg [[DBG7:![0-9]+]] { 15; CHECK-NEXT: entry: 16; CHECK-NEXT: [[A_ADDR:%.*]] = alloca ptr, align 8, !DIAssignID [[DIASSIGNID16:![0-9]+]] 17; CHECK-NEXT: [[I:%.*]] = alloca i32, align 4 18; CHECK-NEXT: tail call void @llvm.dbg.assign(metadata i1 undef, metadata [[META13:![0-9]+]], metadata !DIExpression(), metadata [[DIASSIGNID16]], metadata ptr [[A_ADDR]], metadata !DIExpression()), !dbg [[DBG17:![0-9]+]] 19; CHECK-NEXT: store ptr [[A]], ptr [[A_ADDR]], align 8, !tbaa [[TBAA18:![0-9]+]] 20; CHECK-NEXT: tail call void @llvm.dbg.declare(metadata ptr [[A_ADDR]], metadata [[META13]], metadata !DIExpression()), !dbg [[DBG17]] 21; CHECK-NEXT: call void @llvm.lifetime.start.p0(i64 4, ptr [[I]]) #[[ATTR3:[0-9]+]], !dbg [[DBG22:![0-9]+]] 22; CHECK-NEXT: tail call void @llvm.dbg.declare(metadata ptr [[I]], metadata [[META14:![0-9]+]], metadata !DIExpression()), !dbg [[DBG23:![0-9]+]] 23; CHECK-NEXT: store i32 0, ptr [[I]], align 4, !dbg [[DBG23]], !tbaa [[TBAA24:![0-9]+]] 24; CHECK-NEXT: br label [[FOR_COND:%.*]], !dbg [[DBG22]] 25; CHECK: for.cond: 26; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG26:![0-9]+]], !tbaa [[TBAA24]] 27; CHECK-NEXT: [[TMP1:%.*]] = load ptr, ptr [[A_ADDR]], align 8, !dbg [[DBG28:![0-9]+]], !tbaa [[TBAA18]] 28; CHECK-NEXT: [[TMP2:%.*]] = load i32, ptr [[TMP1]], align 4, !dbg [[DBG29:![0-9]+]], !tbaa [[TBAA24]] 29; CHECK-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP0]], [[TMP2]], !dbg [[DBG30:![0-9]+]] 30; CHECK-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_COND_CLEANUP:%.*]], !dbg [[DBG31:![0-9]+]], !prof [[PROF32:![0-9]+]] 31; CHECK: for.cond.cleanup: 32; CHECK-NEXT: call void @llvm.lifetime.end.p0(i64 4, ptr [[I]]) #[[ATTR3]], !dbg [[DBG33:![0-9]+]] 33; CHECK-NEXT: br label [[FOR_END:%.*]] 34; CHECK: for.body: 35; CHECK-NEXT: [[TMP3:%.*]] = load ptr, ptr [[A_ADDR]], align 8, !dbg [[DBG34:![0-9]+]], !tbaa [[TBAA18]] 36; CHECK-NEXT: [[TMP4:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG35:![0-9]+]], !tbaa [[TBAA24]] 37; CHECK-NEXT: [[IDXPROM:%.*]] = sext i32 [[TMP4]] to i64, !dbg [[DBG34]] 38; CHECK-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds i32, ptr [[TMP3]], i64 [[IDXPROM]], !dbg [[DBG34]] 39; CHECK-NEXT: store i32 0, ptr [[ARRAYIDX]], align 4, !dbg [[DBG36:![0-9]+]], !tbaa [[TBAA24]] 40; CHECK-NEXT: br label [[FOR_INC:%.*]], !dbg [[DBG34]] 41; CHECK: for.inc: 42; CHECK-NEXT: [[TMP5:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG37:![0-9]+]], !tbaa [[TBAA24]] 43; CHECK-NEXT: [[INC:%.*]] = add nsw i32 [[TMP5]], 1, !dbg [[DBG37]] 44; CHECK-NEXT: store i32 [[INC]], ptr [[I]], align 4, !dbg [[DBG37]], !tbaa [[TBAA24]] 45; CHECK-NEXT: br label [[FOR_COND]], !dbg [[DBG33]], !llvm.loop [[LOOP38:![0-9]+]] 46; CHECK: for.end: 47; CHECK-NEXT: ret void, !dbg [[DBG40:![0-9]+]] 48; 49entry: 50 %A.addr = alloca ptr, align 8, !DIAssignID !62 51 %i = alloca i32, align 4 52 tail call void @llvm.dbg.assign(metadata i1 undef, metadata !13, metadata !DIExpression(), metadata !62, metadata ptr %A.addr, metadata !DIExpression()), !dbg !20 53 store ptr %A, ptr %A.addr, align 8, !tbaa !16 54 tail call void @llvm.dbg.declare(metadata ptr %A.addr, metadata !13, metadata !DIExpression()), !dbg !20 55 call void @llvm.lifetime.start.p0(i64 4, ptr %i) #3, !dbg !21 56 tail call void @llvm.dbg.declare(metadata ptr %i, metadata !14, metadata !DIExpression()), !dbg !22 57 store i32 0, ptr %i, align 4, !dbg !22, !tbaa !23 58 br label %for.cond, !dbg !21 59 60for.cond: ; preds = %for.inc, %entry 61 %0 = load i32, ptr %i, align 4, !dbg !25, !tbaa !23 62 %1 = load ptr, ptr %A.addr, align 8, !dbg !27, !tbaa !16 63 %2 = load i32, ptr %1, align 4, !dbg !28, !tbaa !23 64 %cmp = icmp slt i32 %0, %2, !dbg !29 65 br i1 %cmp, label %for.body, label %for.cond.cleanup, !dbg !30, !prof !61 66 67for.cond.cleanup: ; preds = %for.cond 68 call void @llvm.lifetime.end.p0(i64 4, ptr %i) #3, !dbg !31 69 br label %for.end 70 71for.body: ; preds = %for.cond 72 %3 = load ptr, ptr %A.addr, align 8, !dbg !32, !tbaa !16 73 %4 = load i32, ptr %i, align 4, !dbg !33, !tbaa !23 74 %idxprom = sext i32 %4 to i64, !dbg !32 75 %arrayidx = getelementptr inbounds i32, ptr %3, i64 %idxprom, !dbg !32 76 store i32 0, ptr %arrayidx, align 4, !dbg !34, !tbaa !23 77 br label %for.inc, !dbg !32 78 79for.inc: ; preds = %for.body 80 %5 = load i32, ptr %i, align 4, !dbg !35, !tbaa !23 81 %inc = add nsw i32 %5, 1, !dbg !35 82 store i32 %inc, ptr %i, align 4, !dbg !35, !tbaa !23 83 br label %for.cond, !dbg !31, !llvm.loop !36 84 85for.end: ; preds = %for.cond.cleanup 86 ret void, !dbg !38 87} 88 89; Function Attrs: nounwind readnone speculatable willreturn 90declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 91 92; Function Attrs: argmemonly nounwind willreturn 93declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 94 95; Function Attrs: argmemonly nounwind willreturn 96declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 97 98; Function Attrs: nounwind uwtable 99define dso_local void @bar(ptr %A) #0 !dbg !39 { 100; CHECK-LABEL: define {{[^@]+}}@bar 101; CHECK-SAME: (ptr [[A:%.*]]) #[[ATTR0]] !dbg [[DBG41:![0-9]+]] { 102; CHECK-NEXT: entry: 103; CHECK-NEXT: [[A_ADDR:%.*]] = alloca ptr, align 8 104; CHECK-NEXT: [[I:%.*]] = alloca i32, align 4 105; CHECK-NEXT: store ptr [[A]], ptr [[A_ADDR]], align 8, !tbaa [[TBAA18]] 106; CHECK-NEXT: tail call void @llvm.dbg.declare(metadata ptr [[A_ADDR]], metadata [[META43:![0-9]+]], metadata !DIExpression()), !dbg [[DBG46:![0-9]+]] 107; CHECK-NEXT: call void @llvm.lifetime.start.p0(i64 4, ptr [[I]]) #[[ATTR3]], !dbg [[DBG47:![0-9]+]] 108; CHECK-NEXT: tail call void @llvm.dbg.declare(metadata ptr [[I]], metadata [[META44:![0-9]+]], metadata !DIExpression()), !dbg [[DBG48:![0-9]+]] 109; CHECK-NEXT: store i32 0, ptr [[I]], align 4, !dbg [[DBG48]], !tbaa [[TBAA24]] 110; CHECK-NEXT: br label [[FOR_COND:%.*]], !dbg [[DBG47]] 111; CHECK: for.cond: 112; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG49:![0-9]+]], !tbaa [[TBAA24]] 113; CHECK-NEXT: [[TMP1:%.*]] = load ptr, ptr [[A_ADDR]], align 8, !dbg [[DBG51:![0-9]+]], !tbaa [[TBAA18]] 114; CHECK-NEXT: [[TMP2:%.*]] = load i32, ptr [[TMP1]], align 4, !dbg [[DBG52:![0-9]+]], !tbaa [[TBAA24]] 115; CHECK-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP0]], [[TMP2]], !dbg [[DBG53:![0-9]+]] 116; CHECK-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_COND_CLEANUP:%.*]], !dbg [[DBG54:![0-9]+]] 117; CHECK: for.cond.cleanup: 118; CHECK-NEXT: call void @llvm.lifetime.end.p0(i64 4, ptr [[I]]) #[[ATTR3]], !dbg [[DBG55:![0-9]+]] 119; CHECK-NEXT: br label [[FOR_END:%.*]] 120; CHECK: for.body: 121; CHECK-NEXT: [[TMP3:%.*]] = load ptr, ptr [[A_ADDR]], align 8, !dbg [[DBG56:![0-9]+]], !tbaa [[TBAA18]] 122; CHECK-NEXT: [[TMP4:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG57:![0-9]+]], !tbaa [[TBAA24]] 123; CHECK-NEXT: [[IDXPROM:%.*]] = sext i32 [[TMP4]] to i64, !dbg [[DBG56]] 124; CHECK-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds i32, ptr [[TMP3]], i64 [[IDXPROM]], !dbg [[DBG56]] 125; CHECK-NEXT: store i32 0, ptr [[ARRAYIDX]], align 4, !dbg [[DBG58:![0-9]+]], !tbaa [[TBAA24]] 126; CHECK-NEXT: br label [[FOR_INC:%.*]], !dbg [[DBG56]] 127; CHECK: for.inc: 128; CHECK-NEXT: [[TMP5:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG59:![0-9]+]], !tbaa [[TBAA24]] 129; CHECK-NEXT: [[INC:%.*]] = add nsw i32 [[TMP5]], 1, !dbg [[DBG59]] 130; CHECK-NEXT: store i32 [[INC]], ptr [[I]], align 4, !dbg [[DBG59]], !tbaa [[TBAA24]] 131; CHECK-NEXT: br label [[FOR_COND]], !dbg [[DBG55]], !llvm.loop [[LOOP60:![0-9]+]] 132; CHECK: for.end: 133; CHECK-NEXT: ret void, !dbg [[DBG62:![0-9]+]] 134; 135entry: 136 %A.addr = alloca ptr, align 8 137 %i = alloca i32, align 4 138 store ptr %A, ptr %A.addr, align 8, !tbaa !16 139 tail call void @llvm.dbg.declare(metadata ptr %A.addr, metadata !41, metadata !DIExpression()), !dbg !44 140 call void @llvm.lifetime.start.p0(i64 4, ptr %i) #3, !dbg !45 141 tail call void @llvm.dbg.declare(metadata ptr %i, metadata !42, metadata !DIExpression()), !dbg !46 142 store i32 0, ptr %i, align 4, !dbg !46, !tbaa !23 143 br label %for.cond, !dbg !45 144 145for.cond: ; preds = %for.inc, %entry 146 %0 = load i32, ptr %i, align 4, !dbg !47, !tbaa !23 147 %1 = load ptr, ptr %A.addr, align 8, !dbg !49, !tbaa !16 148 %2 = load i32, ptr %1, align 4, !dbg !50, !tbaa !23 149 %cmp = icmp slt i32 %0, %2, !dbg !51 150 br i1 %cmp, label %for.body, label %for.cond.cleanup, !dbg !52 151 152for.cond.cleanup: ; preds = %for.cond 153 call void @llvm.lifetime.end.p0(i64 4, ptr %i) #3, !dbg !53 154 br label %for.end 155 156for.body: ; preds = %for.cond 157 %3 = load ptr, ptr %A.addr, align 8, !dbg !54, !tbaa !16 158 %4 = load i32, ptr %i, align 4, !dbg !55, !tbaa !23 159 %idxprom = sext i32 %4 to i64, !dbg !54 160 %arrayidx = getelementptr inbounds i32, ptr %3, i64 %idxprom, !dbg !54 161 store i32 0, ptr %arrayidx, align 4, !dbg !56, !tbaa !23 162 br label %for.inc, !dbg !54 163 164for.inc: ; preds = %for.body 165 %5 = load i32, ptr %i, align 4, !dbg !57, !tbaa !23 166 %inc = add nsw i32 %5, 1, !dbg !57 167 store i32 %inc, ptr %i, align 4, !dbg !57, !tbaa !23 168 br label %for.cond, !dbg !53, !llvm.loop !58 169 170for.end: ; preds = %for.cond.cleanup 171 ret void, !dbg !60 172} 173 174declare void @llvm.dbg.assign(metadata, metadata, metadata, metadata, metadata, metadata) 175 176attributes #0 = { nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "denormal-fp-math"="ieee,ieee" "denormal-fp-math-f32"="ieee,ieee" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } 177attributes #1 = { nounwind readnone speculatable willreturn } 178attributes #2 = { argmemonly nounwind willreturn } 179attributes #3 = { nounwind } 180 181!llvm.dbg.cu = !{!0} 182!llvm.module.flags = !{!3, !4, !5} 183!llvm.ident = !{!6} 184 185!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 11.0.0 (git@github.com:llvm/llvm-project.git 1d5da8cd30fce1c0a2c2fa6ba656dbfaa36192c8)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None) 186!1 = !DIFile(filename: "various_ir_values.c", directory: "/data/build/llvm-project") 187!2 = !{} 188!3 = !{i32 7, !"Dwarf Version", i32 4} 189!4 = !{i32 2, !"Debug Info Version", i32 3} 190!5 = !{i32 1, !"wchar_size", i32 4} 191!6 = !{!"clang version 11.0.0 (git@github.com:llvm/llvm-project.git 1d5da8cd30fce1c0a2c2fa6ba656dbfaa36192c8)"} 192!7 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !12) 193!8 = !DISubroutineType(types: !9) 194!9 = !{null, !10} 195!10 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !11, size: 64) 196!11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 197!12 = !{!13, !14} 198!13 = !DILocalVariable(name: "A", arg: 1, scope: !7, file: !1, line: 1, type: !10) 199!14 = !DILocalVariable(name: "i", scope: !15, file: !1, line: 3, type: !11) 200!15 = distinct !DILexicalBlock(scope: !7, file: !1, line: 3, column: 3) 201!16 = !{!17, !17, i64 0} 202!17 = !{!"any pointer", !18, i64 0} 203!18 = !{!"omnipotent char", !19, i64 0} 204!19 = !{!"Simple C/C++ TBAA"} 205!20 = !DILocation(line: 1, column: 15, scope: !7) 206!21 = !DILocation(line: 3, column: 8, scope: !15) 207!22 = !DILocation(line: 3, column: 12, scope: !15) 208!23 = !{!24, !24, i64 0} 209!24 = !{!"int", !18, i64 0} 210!25 = !DILocation(line: 3, column: 19, scope: !26) 211!26 = distinct !DILexicalBlock(scope: !15, file: !1, line: 3, column: 3) 212!27 = !DILocation(line: 3, column: 24, scope: !26) 213!28 = !DILocation(line: 3, column: 23, scope: !26) 214!29 = !DILocation(line: 3, column: 21, scope: !26) 215!30 = !DILocation(line: 3, column: 3, scope: !15) 216!31 = !DILocation(line: 3, column: 3, scope: !26) 217!32 = !DILocation(line: 4, column: 5, scope: !26) 218!33 = !DILocation(line: 4, column: 7, scope: !26) 219!34 = !DILocation(line: 4, column: 10, scope: !26) 220!35 = !DILocation(line: 3, column: 27, scope: !26) 221!36 = distinct !{!36, !30, !37} 222!37 = !DILocation(line: 4, column: 12, scope: !15) 223!38 = !DILocation(line: 5, column: 1, scope: !7) 224!39 = distinct !DISubprogram(name: "bar", scope: !1, file: !1, line: 7, type: !8, scopeLine: 7, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !40) 225!40 = !{!41, !42} 226!41 = !DILocalVariable(name: "A", arg: 1, scope: !39, file: !1, line: 7, type: !10) 227!42 = !DILocalVariable(name: "i", scope: !43, file: !1, line: 9, type: !11) 228!43 = distinct !DILexicalBlock(scope: !39, file: !1, line: 9, column: 3) 229!44 = !DILocation(line: 7, column: 15, scope: !39) 230!45 = !DILocation(line: 9, column: 8, scope: !43) 231!46 = !DILocation(line: 9, column: 12, scope: !43) 232!47 = !DILocation(line: 9, column: 19, scope: !48) 233!48 = distinct !DILexicalBlock(scope: !43, file: !1, line: 9, column: 3) 234!49 = !DILocation(line: 9, column: 24, scope: !48) 235!50 = !DILocation(line: 9, column: 23, scope: !48) 236!51 = !DILocation(line: 9, column: 21, scope: !48) 237!52 = !DILocation(line: 9, column: 3, scope: !43) 238!53 = !DILocation(line: 9, column: 3, scope: !48) 239!54 = !DILocation(line: 10, column: 5, scope: !48) 240!55 = !DILocation(line: 10, column: 7, scope: !48) 241!56 = !DILocation(line: 10, column: 10, scope: !48) 242!57 = !DILocation(line: 9, column: 27, scope: !48) 243!58 = distinct !{!58, !52, !59} 244!59 = !DILocation(line: 10, column: 12, scope: !43) 245!60 = !DILocation(line: 11, column: 1, scope: !39) 246!61 = !{!"branch_weights", i32 1, i32 1048575} 247!62 = distinct !DIAssignID() 248;. 249; CHECK: attributes #[[ATTR0]] = { nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "denormal-fp-math"="ieee,ieee" "denormal-fp-math-f32"="ieee,ieee" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } 250; CHECK: attributes #[[ATTR1:[0-9]+]] = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } 251; CHECK: attributes #[[ATTR2:[0-9]+]] = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } 252; CHECK: attributes #[[ATTR3]] = { nounwind } 253;. 254; CHECK: [[META0:![0-9]+]] = distinct !DICompileUnit(language: DW_LANG_C99, file: [[META1:![0-9]+]], producer: "{{.*}}clang version {{.*}}", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: [[META2:![0-9]+]], splitDebugInlining: false, nameTableKind: None) 255; CHECK: [[META1]] = !DIFile(filename: "various_ir_values.c", directory: {{.*}}) 256; CHECK: [[META2]] = !{} 257; CHECK: [[META3:![0-9]+]] = !{i32 7, !"Dwarf Version", i32 4} 258; CHECK: [[META4:![0-9]+]] = !{i32 2, !"Debug Info Version", i32 3} 259; CHECK: [[META5:![0-9]+]] = !{i32 1, !"wchar_size", i32 4} 260; CHECK: [[META6:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"} 261; CHECK: [[DBG7]] = distinct !DISubprogram(name: "foo", scope: [[META1]], file: [[META1]], line: 1, type: [[META8:![0-9]+]], scopeLine: 1, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: [[META0]], retainedNodes: [[META12:![0-9]+]]) 262; CHECK: [[META8]] = !DISubroutineType(types: [[META9:![0-9]+]]) 263; CHECK: [[META9]] = !{null, [[META10:![0-9]+]]} 264; CHECK: [[META10]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: [[META11:![0-9]+]], size: 64) 265; CHECK: [[META11]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 266; CHECK: [[META12]] = !{[[META13]], [[META14]]} 267; CHECK: [[META13]] = !DILocalVariable(name: "A", arg: 1, scope: [[DBG7]], file: [[META1]], line: 1, type: [[META10]]) 268; CHECK: [[META14]] = !DILocalVariable(name: "i", scope: [[META15:![0-9]+]], file: [[META1]], line: 3, type: [[META11]]) 269; CHECK: [[META15]] = distinct !DILexicalBlock(scope: [[DBG7]], file: [[META1]], line: 3, column: 3) 270; CHECK: [[DIASSIGNID16]] = distinct !DIAssignID() 271; CHECK: [[DBG17]] = !DILocation(line: 1, column: 15, scope: [[DBG7]]) 272; CHECK: [[TBAA18]] = !{[[META19:![0-9]+]], [[META19]], i64 0} 273; CHECK: [[META19]] = !{!"any pointer", [[META20:![0-9]+]], i64 0} 274; CHECK: [[META20]] = !{!"omnipotent char", [[META21:![0-9]+]], i64 0} 275; CHECK: [[META21]] = !{!"Simple C/C++ TBAA"} 276; CHECK: [[DBG22]] = !DILocation(line: 3, column: 8, scope: [[META15]]) 277; CHECK: [[DBG23]] = !DILocation(line: 3, column: 12, scope: [[META15]]) 278; CHECK: [[TBAA24]] = !{[[META25:![0-9]+]], [[META25]], i64 0} 279; CHECK: [[META25]] = !{!"int", [[META20]], i64 0} 280; CHECK: [[DBG26]] = !DILocation(line: 3, column: 19, scope: [[META27:![0-9]+]]) 281; CHECK: [[META27]] = distinct !DILexicalBlock(scope: [[META15]], file: [[META1]], line: 3, column: 3) 282; CHECK: [[DBG28]] = !DILocation(line: 3, column: 24, scope: [[META27]]) 283; CHECK: [[DBG29]] = !DILocation(line: 3, column: 23, scope: [[META27]]) 284; CHECK: [[DBG30]] = !DILocation(line: 3, column: 21, scope: [[META27]]) 285; CHECK: [[DBG31]] = !DILocation(line: 3, column: 3, scope: [[META15]]) 286; CHECK: [[PROF32]] = !{!"branch_weights", i32 1, i32 1048575} 287; CHECK: [[DBG33]] = !DILocation(line: 3, column: 3, scope: [[META27]]) 288; CHECK: [[DBG34]] = !DILocation(line: 4, column: 5, scope: [[META27]]) 289; CHECK: [[DBG35]] = !DILocation(line: 4, column: 7, scope: [[META27]]) 290; CHECK: [[DBG36]] = !DILocation(line: 4, column: 10, scope: [[META27]]) 291; CHECK: [[DBG37]] = !DILocation(line: 3, column: 27, scope: [[META27]]) 292; CHECK: [[LOOP38]] = distinct !{[[LOOP38]], [[DBG31]], [[META39:![0-9]+]]} 293; CHECK: [[META39]] = !DILocation(line: 4, column: 12, scope: [[META15]]) 294; CHECK: [[DBG40]] = !DILocation(line: 5, column: 1, scope: [[DBG7]]) 295; CHECK: [[DBG41]] = distinct !DISubprogram(name: "bar", scope: [[META1]], file: [[META1]], line: 7, type: [[META8]], scopeLine: 7, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: [[META0]], retainedNodes: [[META42:![0-9]+]]) 296; CHECK: [[META42]] = !{[[META43]], [[META44]]} 297; CHECK: [[META43]] = !DILocalVariable(name: "A", arg: 1, scope: [[DBG41]], file: [[META1]], line: 7, type: [[META10]]) 298; CHECK: [[META44]] = !DILocalVariable(name: "i", scope: [[META45:![0-9]+]], file: [[META1]], line: 9, type: [[META11]]) 299; CHECK: [[META45]] = distinct !DILexicalBlock(scope: [[DBG41]], file: [[META1]], line: 9, column: 3) 300; CHECK: [[DBG46]] = !DILocation(line: 7, column: 15, scope: [[DBG41]]) 301; CHECK: [[DBG47]] = !DILocation(line: 9, column: 8, scope: [[META45]]) 302; CHECK: [[DBG48]] = !DILocation(line: 9, column: 12, scope: [[META45]]) 303; CHECK: [[DBG49]] = !DILocation(line: 9, column: 19, scope: [[META50:![0-9]+]]) 304; CHECK: [[META50]] = distinct !DILexicalBlock(scope: [[META45]], file: [[META1]], line: 9, column: 3) 305; CHECK: [[DBG51]] = !DILocation(line: 9, column: 24, scope: [[META50]]) 306; CHECK: [[DBG52]] = !DILocation(line: 9, column: 23, scope: [[META50]]) 307; CHECK: [[DBG53]] = !DILocation(line: 9, column: 21, scope: [[META50]]) 308; CHECK: [[DBG54]] = !DILocation(line: 9, column: 3, scope: [[META45]]) 309; CHECK: [[DBG55]] = !DILocation(line: 9, column: 3, scope: [[META50]]) 310; CHECK: [[DBG56]] = !DILocation(line: 10, column: 5, scope: [[META50]]) 311; CHECK: [[DBG57]] = !DILocation(line: 10, column: 7, scope: [[META50]]) 312; CHECK: [[DBG58]] = !DILocation(line: 10, column: 10, scope: [[META50]]) 313; CHECK: [[DBG59]] = !DILocation(line: 9, column: 27, scope: [[META50]]) 314; CHECK: [[LOOP60]] = distinct !{[[LOOP60]], [[DBG54]], [[META61:![0-9]+]]} 315; CHECK: [[META61]] = !DILocation(line: 10, column: 12, scope: [[META45]]) 316; CHECK: [[DBG62]] = !DILocation(line: 11, column: 1, scope: [[DBG41]]) 317;. 318