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 ; RUN: opt < %s -S | FileCheck %s
5 ; ModuleID = 'various_ir_values.c'
6 source_filename = "various_ir_values.c"
7 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8 target triple = "x86_64-unknown-linux-gnu"
10 ; Function Attrs: nounwind uwtable
11 define dso_local void @foo(ptr %A) #0 !dbg !7 {
12 ; CHECK-LABEL: define {{[^@]+}}@foo
13 ; CHECK-SAME: (ptr [[A:%.*]]) #[[ATTR0:[0-9]+]] !dbg [[DBG7:![0-9]+]] {
15 ; CHECK-NEXT: [[A_ADDR:%.*]] = alloca ptr, align 8, !DIAssignID [[DIASSIGNID16:![0-9]+]]
16 ; CHECK-NEXT: [[I:%.*]] = alloca i32, align 4
17 ; CHECK-NEXT: 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]+]]
18 ; CHECK-NEXT: store ptr [[A]], ptr [[A_ADDR]], align 8, !tbaa [[TBAA18:![0-9]+]]
19 ; CHECK-NEXT: call void @llvm.dbg.declare(metadata ptr [[A_ADDR]], metadata [[META13]], metadata !DIExpression()), !dbg [[DBG17]]
20 ; CHECK-NEXT: call void @llvm.lifetime.start.p0(i64 4, ptr [[I]]) #[[ATTR3:[0-9]+]], !dbg [[DBG22:![0-9]+]]
21 ; CHECK-NEXT: call void @llvm.dbg.declare(metadata ptr [[I]], metadata [[META14:![0-9]+]], metadata !DIExpression()), !dbg [[DBG23:![0-9]+]]
22 ; CHECK-NEXT: store i32 0, ptr [[I]], align 4, !dbg [[DBG23]], !tbaa [[TBAA24:![0-9]+]]
23 ; CHECK-NEXT: br label [[FOR_COND:%.*]], !dbg [[DBG22]]
25 ; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG26:![0-9]+]], !tbaa [[TBAA24]]
26 ; CHECK-NEXT: [[TMP1:%.*]] = load ptr, ptr [[A_ADDR]], align 8, !dbg [[DBG28:![0-9]+]], !tbaa [[TBAA18]]
27 ; CHECK-NEXT: [[TMP2:%.*]] = load i32, ptr [[TMP1]], align 4, !dbg [[DBG29:![0-9]+]], !tbaa [[TBAA24]]
28 ; CHECK-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP0]], [[TMP2]], !dbg [[DBG30:![0-9]+]]
29 ; CHECK-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_COND_CLEANUP:%.*]], !dbg [[DBG31:![0-9]+]], !prof [[PROF32:![0-9]+]]
30 ; CHECK: for.cond.cleanup:
31 ; CHECK-NEXT: call void @llvm.lifetime.end.p0(i64 4, ptr [[I]]) #[[ATTR3]], !dbg [[DBG33:![0-9]+]]
32 ; CHECK-NEXT: br label [[FOR_END:%.*]]
34 ; CHECK-NEXT: [[TMP3:%.*]] = load ptr, ptr [[A_ADDR]], align 8, !dbg [[DBG34:![0-9]+]], !tbaa [[TBAA18]]
35 ; CHECK-NEXT: [[TMP4:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG35:![0-9]+]], !tbaa [[TBAA24]]
36 ; CHECK-NEXT: [[IDXPROM:%.*]] = sext i32 [[TMP4]] to i64, !dbg [[DBG34]]
37 ; CHECK-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds i32, ptr [[TMP3]], i64 [[IDXPROM]], !dbg [[DBG34]]
38 ; CHECK-NEXT: store i32 0, ptr [[ARRAYIDX]], align 4, !dbg [[DBG36:![0-9]+]], !tbaa [[TBAA24]]
39 ; CHECK-NEXT: br label [[FOR_INC:%.*]], !dbg [[DBG34]]
41 ; CHECK-NEXT: [[TMP5:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG37:![0-9]+]], !tbaa [[TBAA24]]
42 ; CHECK-NEXT: [[INC:%.*]] = add nsw i32 [[TMP5]], 1, !dbg [[DBG37]]
43 ; CHECK-NEXT: store i32 [[INC]], ptr [[I]], align 4, !dbg [[DBG37]], !tbaa [[TBAA24]]
44 ; CHECK-NEXT: br label [[FOR_COND]], !dbg [[DBG33]], !llvm.loop [[LOOP38:![0-9]+]]
46 ; CHECK-NEXT: ret void, !dbg [[DBG40:![0-9]+]]
49 %A.addr = alloca ptr, align 8, !DIAssignID !62
50 %i = alloca i32, align 4
51 call void @llvm.dbg.assign(metadata i1 undef, metadata !13, metadata !DIExpression(), metadata !62, metadata ptr %A.addr, metadata !DIExpression()), !dbg !20
52 store ptr %A, ptr %A.addr, align 8, !tbaa !16
53 call void @llvm.dbg.declare(metadata ptr %A.addr, metadata !13, metadata !DIExpression()), !dbg !20
54 call void @llvm.lifetime.start.p0(i64 4, ptr %i) #3, !dbg !21
55 call void @llvm.dbg.declare(metadata ptr %i, metadata !14, metadata !DIExpression()), !dbg !22
56 store i32 0, ptr %i, align 4, !dbg !22, !tbaa !23
57 br label %for.cond, !dbg !21
59 for.cond: ; preds = %for.inc, %entry
60 %0 = load i32, ptr %i, align 4, !dbg !25, !tbaa !23
61 %1 = load ptr, ptr %A.addr, align 8, !dbg !27, !tbaa !16
62 %2 = load i32, ptr %1, align 4, !dbg !28, !tbaa !23
63 %cmp = icmp slt i32 %0, %2, !dbg !29
64 br i1 %cmp, label %for.body, label %for.cond.cleanup, !dbg !30, !prof !61
66 for.cond.cleanup: ; preds = %for.cond
67 call void @llvm.lifetime.end.p0(i64 4, ptr %i) #3, !dbg !31
70 for.body: ; preds = %for.cond
71 %3 = load ptr, ptr %A.addr, align 8, !dbg !32, !tbaa !16
72 %4 = load i32, ptr %i, align 4, !dbg !33, !tbaa !23
73 %idxprom = sext i32 %4 to i64, !dbg !32
74 %arrayidx = getelementptr inbounds i32, ptr %3, i64 %idxprom, !dbg !32
75 store i32 0, ptr %arrayidx, align 4, !dbg !34, !tbaa !23
76 br label %for.inc, !dbg !32
78 for.inc: ; preds = %for.body
79 %5 = load i32, ptr %i, align 4, !dbg !35, !tbaa !23
80 %inc = add nsw i32 %5, 1, !dbg !35
81 store i32 %inc, ptr %i, align 4, !dbg !35, !tbaa !23
82 br label %for.cond, !dbg !31, !llvm.loop !36
84 for.end: ; preds = %for.cond.cleanup
88 ; Function Attrs: nounwind readnone speculatable willreturn
89 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
91 ; Function Attrs: argmemonly nounwind willreturn
92 declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
94 ; Function Attrs: argmemonly nounwind willreturn
95 declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
97 ; Function Attrs: nounwind uwtable
98 define dso_local void @bar(ptr %A) #0 !dbg !39 {
99 ; CHECK-LABEL: define {{[^@]+}}@bar
100 ; CHECK-SAME: (ptr [[A:%.*]]) #[[ATTR0]] !dbg [[DBG41:![0-9]+]] {
102 ; CHECK-NEXT: [[A_ADDR:%.*]] = alloca ptr, align 8
103 ; CHECK-NEXT: [[I:%.*]] = alloca i32, align 4
104 ; CHECK-NEXT: store ptr [[A]], ptr [[A_ADDR]], align 8, !tbaa [[TBAA18]]
105 ; CHECK-NEXT: call void @llvm.dbg.declare(metadata ptr [[A_ADDR]], metadata [[META43:![0-9]+]], metadata !DIExpression()), !dbg [[DBG46:![0-9]+]]
106 ; CHECK-NEXT: call void @llvm.lifetime.start.p0(i64 4, ptr [[I]]) #[[ATTR3]], !dbg [[DBG47:![0-9]+]]
107 ; CHECK-NEXT: call void @llvm.dbg.declare(metadata ptr [[I]], metadata [[META44:![0-9]+]], metadata !DIExpression()), !dbg [[DBG48:![0-9]+]]
108 ; CHECK-NEXT: store i32 0, ptr [[I]], align 4, !dbg [[DBG48]], !tbaa [[TBAA24]]
109 ; CHECK-NEXT: br label [[FOR_COND:%.*]], !dbg [[DBG47]]
111 ; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG49:![0-9]+]], !tbaa [[TBAA24]]
112 ; CHECK-NEXT: [[TMP1:%.*]] = load ptr, ptr [[A_ADDR]], align 8, !dbg [[DBG51:![0-9]+]], !tbaa [[TBAA18]]
113 ; CHECK-NEXT: [[TMP2:%.*]] = load i32, ptr [[TMP1]], align 4, !dbg [[DBG52:![0-9]+]], !tbaa [[TBAA24]]
114 ; CHECK-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP0]], [[TMP2]], !dbg [[DBG53:![0-9]+]]
115 ; CHECK-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_COND_CLEANUP:%.*]], !dbg [[DBG54:![0-9]+]]
116 ; CHECK: for.cond.cleanup:
117 ; CHECK-NEXT: call void @llvm.lifetime.end.p0(i64 4, ptr [[I]]) #[[ATTR3]], !dbg [[DBG55:![0-9]+]]
118 ; CHECK-NEXT: br label [[FOR_END:%.*]]
120 ; CHECK-NEXT: [[TMP3:%.*]] = load ptr, ptr [[A_ADDR]], align 8, !dbg [[DBG56:![0-9]+]], !tbaa [[TBAA18]]
121 ; CHECK-NEXT: [[TMP4:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG57:![0-9]+]], !tbaa [[TBAA24]]
122 ; CHECK-NEXT: [[IDXPROM:%.*]] = sext i32 [[TMP4]] to i64, !dbg [[DBG56]]
123 ; CHECK-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds i32, ptr [[TMP3]], i64 [[IDXPROM]], !dbg [[DBG56]]
124 ; CHECK-NEXT: store i32 0, ptr [[ARRAYIDX]], align 4, !dbg [[DBG58:![0-9]+]], !tbaa [[TBAA24]]
125 ; CHECK-NEXT: br label [[FOR_INC:%.*]], !dbg [[DBG56]]
127 ; CHECK-NEXT: [[TMP5:%.*]] = load i32, ptr [[I]], align 4, !dbg [[DBG59:![0-9]+]], !tbaa [[TBAA24]]
128 ; CHECK-NEXT: [[INC:%.*]] = add nsw i32 [[TMP5]], 1, !dbg [[DBG59]]
129 ; CHECK-NEXT: store i32 [[INC]], ptr [[I]], align 4, !dbg [[DBG59]], !tbaa [[TBAA24]]
130 ; CHECK-NEXT: br label [[FOR_COND]], !dbg [[DBG55]], !llvm.loop [[LOOP60:![0-9]+]]
132 ; CHECK-NEXT: ret void, !dbg [[DBG62:![0-9]+]]
135 %A.addr = alloca ptr, align 8
136 %i = alloca i32, align 4
137 store ptr %A, ptr %A.addr, align 8, !tbaa !16
138 call void @llvm.dbg.declare(metadata ptr %A.addr, metadata !41, metadata !DIExpression()), !dbg !44
139 call void @llvm.lifetime.start.p0(i64 4, ptr %i) #3, !dbg !45
140 call void @llvm.dbg.declare(metadata ptr %i, metadata !42, metadata !DIExpression()), !dbg !46
141 store i32 0, ptr %i, align 4, !dbg !46, !tbaa !23
142 br label %for.cond, !dbg !45
144 for.cond: ; preds = %for.inc, %entry
145 %0 = load i32, ptr %i, align 4, !dbg !47, !tbaa !23
146 %1 = load ptr, ptr %A.addr, align 8, !dbg !49, !tbaa !16
147 %2 = load i32, ptr %1, align 4, !dbg !50, !tbaa !23
148 %cmp = icmp slt i32 %0, %2, !dbg !51
149 br i1 %cmp, label %for.body, label %for.cond.cleanup, !dbg !52
151 for.cond.cleanup: ; preds = %for.cond
152 call void @llvm.lifetime.end.p0(i64 4, ptr %i) #3, !dbg !53
155 for.body: ; preds = %for.cond
156 %3 = load ptr, ptr %A.addr, align 8, !dbg !54, !tbaa !16
157 %4 = load i32, ptr %i, align 4, !dbg !55, !tbaa !23
158 %idxprom = sext i32 %4 to i64, !dbg !54
159 %arrayidx = getelementptr inbounds i32, ptr %3, i64 %idxprom, !dbg !54
160 store i32 0, ptr %arrayidx, align 4, !dbg !56, !tbaa !23
161 br label %for.inc, !dbg !54
163 for.inc: ; preds = %for.body
164 %5 = load i32, ptr %i, align 4, !dbg !57, !tbaa !23
165 %inc = add nsw i32 %5, 1, !dbg !57
166 store i32 %inc, ptr %i, align 4, !dbg !57, !tbaa !23
167 br label %for.cond, !dbg !53, !llvm.loop !58
169 for.end: ; preds = %for.cond.cleanup
173 declare void @llvm.dbg.assign(metadata, metadata, metadata, metadata, metadata, metadata)
175 attributes #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" }
176 attributes #1 = { nounwind readnone speculatable willreturn }
177 attributes #2 = { argmemonly nounwind willreturn }
178 attributes #3 = { nounwind }
181 !llvm.module.flags = !{!3, !4, !5}
184 !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)
185 !1 = !DIFile(filename: "various_ir_values.c", directory: "/data/build/llvm-project")
187 !3 = !{i32 7, !"Dwarf Version", i32 4}
188 !4 = !{i32 2, !"Debug Info Version", i32 3}
189 !5 = !{i32 1, !"wchar_size", i32 4}
190 !6 = !{!"clang version 11.0.0 (git@github.com:llvm/llvm-project.git 1d5da8cd30fce1c0a2c2fa6ba656dbfaa36192c8)"}
191 !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)
192 !8 = !DISubroutineType(types: !9)
194 !10 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !11, size: 64)
195 !11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
197 !13 = !DILocalVariable(name: "A", arg: 1, scope: !7, file: !1, line: 1, type: !10)
198 !14 = !DILocalVariable(name: "i", scope: !15, file: !1, line: 3, type: !11)
199 !15 = distinct !DILexicalBlock(scope: !7, file: !1, line: 3, column: 3)
200 !16 = !{!17, !17, i64 0}
201 !17 = !{!"any pointer", !18, i64 0}
202 !18 = !{!"omnipotent char", !19, i64 0}
203 !19 = !{!"Simple C/C++ TBAA"}
204 !20 = !DILocation(line: 1, column: 15, scope: !7)
205 !21 = !DILocation(line: 3, column: 8, scope: !15)
206 !22 = !DILocation(line: 3, column: 12, scope: !15)
207 !23 = !{!24, !24, i64 0}
208 !24 = !{!"int", !18, i64 0}
209 !25 = !DILocation(line: 3, column: 19, scope: !26)
210 !26 = distinct !DILexicalBlock(scope: !15, file: !1, line: 3, column: 3)
211 !27 = !DILocation(line: 3, column: 24, scope: !26)
212 !28 = !DILocation(line: 3, column: 23, scope: !26)
213 !29 = !DILocation(line: 3, column: 21, scope: !26)
214 !30 = !DILocation(line: 3, column: 3, scope: !15)
215 !31 = !DILocation(line: 3, column: 3, scope: !26)
216 !32 = !DILocation(line: 4, column: 5, scope: !26)
217 !33 = !DILocation(line: 4, column: 7, scope: !26)
218 !34 = !DILocation(line: 4, column: 10, scope: !26)
219 !35 = !DILocation(line: 3, column: 27, scope: !26)
220 !36 = distinct !{!36, !30, !37}
221 !37 = !DILocation(line: 4, column: 12, scope: !15)
222 !38 = !DILocation(line: 5, column: 1, scope: !7)
223 !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 !41 = !DILocalVariable(name: "A", arg: 1, scope: !39, file: !1, line: 7, type: !10)
226 !42 = !DILocalVariable(name: "i", scope: !43, file: !1, line: 9, type: !11)
227 !43 = distinct !DILexicalBlock(scope: !39, file: !1, line: 9, column: 3)
228 !44 = !DILocation(line: 7, column: 15, scope: !39)
229 !45 = !DILocation(line: 9, column: 8, scope: !43)
230 !46 = !DILocation(line: 9, column: 12, scope: !43)
231 !47 = !DILocation(line: 9, column: 19, scope: !48)
232 !48 = distinct !DILexicalBlock(scope: !43, file: !1, line: 9, column: 3)
233 !49 = !DILocation(line: 9, column: 24, scope: !48)
234 !50 = !DILocation(line: 9, column: 23, scope: !48)
235 !51 = !DILocation(line: 9, column: 21, scope: !48)
236 !52 = !DILocation(line: 9, column: 3, scope: !43)
237 !53 = !DILocation(line: 9, column: 3, scope: !48)
238 !54 = !DILocation(line: 10, column: 5, scope: !48)
239 !55 = !DILocation(line: 10, column: 7, scope: !48)
240 !56 = !DILocation(line: 10, column: 10, scope: !48)
241 !57 = !DILocation(line: 9, column: 27, scope: !48)
242 !58 = distinct !{!58, !52, !59}
243 !59 = !DILocation(line: 10, column: 12, scope: !43)
244 !60 = !DILocation(line: 11, column: 1, scope: !39)
245 !61 = !{!"branch_weights", i32 1, i32 1048575}
246 !62 = distinct !DIAssignID()
248 ; 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" }
249 ; CHECK: attributes #[[ATTR1:[0-9]+]] = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
250 ; CHECK: attributes #[[ATTR2:[0-9]+]] = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
251 ; CHECK: attributes #[[ATTR3]] = { nounwind }
253 ; 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)
254 ; CHECK: [[META1]] = !DIFile(filename: "various_ir_values.c", directory: {{.*}})
255 ; CHECK: [[META2]] = !{}
256 ; CHECK: [[META3:![0-9]+]] = !{i32 7, !"Dwarf Version", i32 4}
257 ; CHECK: [[META4:![0-9]+]] = !{i32 2, !"Debug Info Version", i32 3}
258 ; CHECK: [[META5:![0-9]+]] = !{i32 1, !"wchar_size", i32 4}
259 ; CHECK: [[META6:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"}
260 ; 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]+]])
261 ; CHECK: [[META8]] = !DISubroutineType(types: [[META9:![0-9]+]])
262 ; CHECK: [[META9]] = !{null, [[META10:![0-9]+]]}
263 ; CHECK: [[META10]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: [[META11:![0-9]+]], size: 64)
264 ; CHECK: [[META11]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
265 ; CHECK: [[META12]] = !{[[META13]], [[META14]]}
266 ; CHECK: [[META13]] = !DILocalVariable(name: "A", arg: 1, scope: [[DBG7]], file: [[META1]], line: 1, type: [[META10]])
267 ; CHECK: [[META14]] = !DILocalVariable(name: "i", scope: [[META15:![0-9]+]], file: [[META1]], line: 3, type: [[META11]])
268 ; CHECK: [[META15]] = distinct !DILexicalBlock(scope: [[DBG7]], file: [[META1]], line: 3, column: 3)
269 ; CHECK: [[DIASSIGNID16]] = distinct !DIAssignID()
270 ; CHECK: [[DBG17]] = !DILocation(line: 1, column: 15, scope: [[DBG7]])
271 ; CHECK: [[TBAA18]] = !{[[META19:![0-9]+]], [[META19]], i64 0}
272 ; CHECK: [[META19]] = !{!"any pointer", [[META20:![0-9]+]], i64 0}
273 ; CHECK: [[META20]] = !{!"omnipotent char", [[META21:![0-9]+]], i64 0}
274 ; CHECK: [[META21]] = !{!"Simple C/C++ TBAA"}
275 ; CHECK: [[DBG22]] = !DILocation(line: 3, column: 8, scope: [[META15]])
276 ; CHECK: [[DBG23]] = !DILocation(line: 3, column: 12, scope: [[META15]])
277 ; CHECK: [[TBAA24]] = !{[[META25:![0-9]+]], [[META25]], i64 0}
278 ; CHECK: [[META25]] = !{!"int", [[META20]], i64 0}
279 ; CHECK: [[DBG26]] = !DILocation(line: 3, column: 19, scope: [[META27:![0-9]+]])
280 ; CHECK: [[META27]] = distinct !DILexicalBlock(scope: [[META15]], file: [[META1]], line: 3, column: 3)
281 ; CHECK: [[DBG28]] = !DILocation(line: 3, column: 24, scope: [[META27]])
282 ; CHECK: [[DBG29]] = !DILocation(line: 3, column: 23, scope: [[META27]])
283 ; CHECK: [[DBG30]] = !DILocation(line: 3, column: 21, scope: [[META27]])
284 ; CHECK: [[DBG31]] = !DILocation(line: 3, column: 3, scope: [[META15]])
285 ; CHECK: [[PROF32]] = !{!"branch_weights", i32 1, i32 1048575}
286 ; CHECK: [[DBG33]] = !DILocation(line: 3, column: 3, scope: [[META27]])
287 ; CHECK: [[DBG34]] = !DILocation(line: 4, column: 5, scope: [[META27]])
288 ; CHECK: [[DBG35]] = !DILocation(line: 4, column: 7, scope: [[META27]])
289 ; CHECK: [[DBG36]] = !DILocation(line: 4, column: 10, scope: [[META27]])
290 ; CHECK: [[DBG37]] = !DILocation(line: 3, column: 27, scope: [[META27]])
291 ; CHECK: [[LOOP38]] = distinct !{[[LOOP38]], [[DBG31]], [[META39:![0-9]+]]}
292 ; CHECK: [[META39]] = !DILocation(line: 4, column: 12, scope: [[META15]])
293 ; CHECK: [[DBG40]] = !DILocation(line: 5, column: 1, scope: [[DBG7]])
294 ; 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]+]])
295 ; CHECK: [[META42]] = !{[[META43]], [[META44]]}
296 ; CHECK: [[META43]] = !DILocalVariable(name: "A", arg: 1, scope: [[DBG41]], file: [[META1]], line: 7, type: [[META10]])
297 ; CHECK: [[META44]] = !DILocalVariable(name: "i", scope: [[META45:![0-9]+]], file: [[META1]], line: 9, type: [[META11]])
298 ; CHECK: [[META45]] = distinct !DILexicalBlock(scope: [[DBG41]], file: [[META1]], line: 9, column: 3)
299 ; CHECK: [[DBG46]] = !DILocation(line: 7, column: 15, scope: [[DBG41]])
300 ; CHECK: [[DBG47]] = !DILocation(line: 9, column: 8, scope: [[META45]])
301 ; CHECK: [[DBG48]] = !DILocation(line: 9, column: 12, scope: [[META45]])
302 ; CHECK: [[DBG49]] = !DILocation(line: 9, column: 19, scope: [[META50:![0-9]+]])
303 ; CHECK: [[META50]] = distinct !DILexicalBlock(scope: [[META45]], file: [[META1]], line: 9, column: 3)
304 ; CHECK: [[DBG51]] = !DILocation(line: 9, column: 24, scope: [[META50]])
305 ; CHECK: [[DBG52]] = !DILocation(line: 9, column: 23, scope: [[META50]])
306 ; CHECK: [[DBG53]] = !DILocation(line: 9, column: 21, scope: [[META50]])
307 ; CHECK: [[DBG54]] = !DILocation(line: 9, column: 3, scope: [[META45]])
308 ; CHECK: [[DBG55]] = !DILocation(line: 9, column: 3, scope: [[META50]])
309 ; CHECK: [[DBG56]] = !DILocation(line: 10, column: 5, scope: [[META50]])
310 ; CHECK: [[DBG57]] = !DILocation(line: 10, column: 7, scope: [[META50]])
311 ; CHECK: [[DBG58]] = !DILocation(line: 10, column: 10, scope: [[META50]])
312 ; CHECK: [[DBG59]] = !DILocation(line: 9, column: 27, scope: [[META50]])
313 ; CHECK: [[LOOP60]] = distinct !{[[LOOP60]], [[DBG54]], [[META61:![0-9]+]]}
314 ; CHECK: [[META61]] = !DILocation(line: 10, column: 12, scope: [[META45]])
315 ; CHECK: [[DBG62]] = !DILocation(line: 11, column: 1, scope: [[DBG41]])