xref: /aosp_15_r20/external/llvm/test/tools/dsymutil/Inputs/frame-dw4.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; Generated from frame.c on Darwin with '-arch i386 -gdwarf-4 -emit-llvm'
2*9880d681SAndroid Build Coastguard Worker; ModuleID = 'frame.c'
3*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"
4*9880d681SAndroid Build Coastguard Workertarget triple = "i386-apple-macosx10.11.0"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind ssp
7*9880d681SAndroid Build Coastguard Workerdefine i32 @bar(i32 %b) #0 !dbg !4 {
8*9880d681SAndroid Build Coastguard Workerentry:
9*9880d681SAndroid Build Coastguard Worker  %b.addr = alloca i32, align 4
10*9880d681SAndroid Build Coastguard Worker  %var = alloca i32, align 4
11*9880d681SAndroid Build Coastguard Worker  store i32 %b, i32* %b.addr, align 4
12*9880d681SAndroid Build Coastguard Worker  call void @llvm.dbg.declare(metadata i32* %b.addr, metadata !13, metadata !14), !dbg !15
13*9880d681SAndroid Build Coastguard Worker  call void @llvm.dbg.declare(metadata i32* %var, metadata !16, metadata !14), !dbg !17
14*9880d681SAndroid Build Coastguard Worker  %0 = load i32, i32* %b.addr, align 4, !dbg !18
15*9880d681SAndroid Build Coastguard Worker  %add = add nsw i32 %0, 1, !dbg !19
16*9880d681SAndroid Build Coastguard Worker  store i32 %add, i32* %var, align 4, !dbg !17
17*9880d681SAndroid Build Coastguard Worker  %call = call i32 @foo(i32* %var), !dbg !20
18*9880d681SAndroid Build Coastguard Worker  ret i32 %call, !dbg !21
19*9880d681SAndroid Build Coastguard Worker}
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone
22*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.declare(metadata, metadata, metadata) #1
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Workerdeclare i32 @foo(i32*) #2
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind ssp
27*9880d681SAndroid Build Coastguard Workerdefine i32 @baz(i32 %b) #0 !dbg !8 {
28*9880d681SAndroid Build Coastguard Workerentry:
29*9880d681SAndroid Build Coastguard Worker  %b.addr = alloca i32, align 4
30*9880d681SAndroid Build Coastguard Worker  store i32 %b, i32* %b.addr, align 4
31*9880d681SAndroid Build Coastguard Worker  call void @llvm.dbg.declare(metadata i32* %b.addr, metadata !22, metadata !14), !dbg !23
32*9880d681SAndroid Build Coastguard Worker  %0 = load i32, i32* %b.addr, align 4, !dbg !24
33*9880d681SAndroid Build Coastguard Worker  %call = call i32 @bar(i32 %0), !dbg !25
34*9880d681SAndroid Build Coastguard Worker  ret i32 %call, !dbg !26
35*9880d681SAndroid Build Coastguard Worker}
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind ssp "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="yonah" "target-features"="+cx16,+sse,+sse2,+sse3" "unsafe-fp-math"="false" "use-soft-float"="false" }
38*9880d681SAndroid Build Coastguard Workerattributes #1 = { nounwind readnone }
39*9880d681SAndroid Build Coastguard Workerattributes #2 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="yonah" "target-features"="+cx16,+sse,+sse2,+sse3" "unsafe-fp-math"="false" "use-soft-float"="false" }
40*9880d681SAndroid Build Coastguard Worker
41*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0}
42*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!9, !10, !11}
43*9880d681SAndroid Build Coastguard Worker!llvm.ident = !{!12}
44*9880d681SAndroid Build Coastguard Worker
45*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.7.0 (trunk 239176) (llvm/trunk 239190)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !2)
46*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "frame.c", directory: "/tmp")
47*9880d681SAndroid Build Coastguard Worker!2 = !{}
48*9880d681SAndroid Build Coastguard Worker!4 = distinct !DISubprogram(name: "bar", scope: !1, file: !1, line: 3, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2)
49*9880d681SAndroid Build Coastguard Worker!5 = !DISubroutineType(types: !6)
50*9880d681SAndroid Build Coastguard Worker!6 = !{!7, !7}
51*9880d681SAndroid Build Coastguard Worker!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
52*9880d681SAndroid Build Coastguard Worker!8 = distinct !DISubprogram(name: "baz", scope: !1, file: !1, line: 8, type: !5, isLocal: false, isDefinition: true, scopeLine: 8, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2)
53*9880d681SAndroid Build Coastguard Worker!9 = !{i32 2, !"Dwarf Version", i32 4}
54*9880d681SAndroid Build Coastguard Worker!10 = !{i32 2, !"Debug Info Version", i32 3}
55*9880d681SAndroid Build Coastguard Worker!11 = !{i32 1, !"PIC Level", i32 2}
56*9880d681SAndroid Build Coastguard Worker!12 = !{!"clang version 3.7.0 (trunk 239176) (llvm/trunk 239190)"}
57*9880d681SAndroid Build Coastguard Worker!13 = !DILocalVariable(name: "b", arg: 1, scope: !4, file: !1, line: 3, type: !7)
58*9880d681SAndroid Build Coastguard Worker!14 = !DIExpression()
59*9880d681SAndroid Build Coastguard Worker!15 = !DILocation(line: 3, column: 13, scope: !4)
60*9880d681SAndroid Build Coastguard Worker!16 = !DILocalVariable(name: "var", scope: !4, file: !1, line: 4, type: !7)
61*9880d681SAndroid Build Coastguard Worker!17 = !DILocation(line: 4, column: 6, scope: !4)
62*9880d681SAndroid Build Coastguard Worker!18 = !DILocation(line: 4, column: 12, scope: !4)
63*9880d681SAndroid Build Coastguard Worker!19 = !DILocation(line: 4, column: 14, scope: !4)
64*9880d681SAndroid Build Coastguard Worker!20 = !DILocation(line: 5, column: 9, scope: !4)
65*9880d681SAndroid Build Coastguard Worker!21 = !DILocation(line: 5, column: 2, scope: !4)
66*9880d681SAndroid Build Coastguard Worker!22 = !DILocalVariable(name: "b", arg: 1, scope: !8, file: !1, line: 8, type: !7)
67*9880d681SAndroid Build Coastguard Worker!23 = !DILocation(line: 8, column: 13, scope: !8)
68*9880d681SAndroid Build Coastguard Worker!24 = !DILocation(line: 9, column: 13, scope: !8)
69*9880d681SAndroid Build Coastguard Worker!25 = !DILocation(line: 9, column: 9, scope: !8)
70*9880d681SAndroid Build Coastguard Worker!26 = !DILocation(line: 9, column: 2, scope: !8)
71