brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · 055c3cc Raw
71 lines · plain
1; Generated from frame.c on Darwin with '-arch i386 -g -emit-llvm'2; ModuleID = 'frame.c'3target datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"4target triple = "i386-apple-macosx10.11.0"5 6; Function Attrs: nounwind ssp7define i32 @bar(i32 %b) #0 !dbg !4 {8entry:9  %b.addr = alloca i32, align 410  %var = alloca i32, align 411  store i32 %b, ptr %b.addr, align 412  call void @llvm.dbg.declare(metadata ptr %b.addr, metadata !13, metadata !14), !dbg !1513  call void @llvm.dbg.declare(metadata ptr %var, metadata !16, metadata !14), !dbg !1714  %0 = load i32, ptr %b.addr, align 4, !dbg !1815  %add = add nsw i32 %0, 1, !dbg !1916  store i32 %add, ptr %var, align 4, !dbg !1717  %call = call i32 @foo(ptr %var), !dbg !2018  ret i32 %call, !dbg !2119}20 21; Function Attrs: nounwind readnone22declare void @llvm.dbg.declare(metadata, metadata, metadata) #123 24declare i32 @foo(ptr) #225 26; Function Attrs: nounwind ssp27define i32 @baz(i32 %b) #0 !dbg !8 {28entry:29  %b.addr = alloca i32, align 430  store i32 %b, ptr %b.addr, align 431  call void @llvm.dbg.declare(metadata ptr %b.addr, metadata !22, metadata !14), !dbg !2332  %0 = load i32, ptr %b.addr, align 4, !dbg !2433  %call = call i32 @bar(i32 %0), !dbg !2534  ret i32 %call, !dbg !2635}36 37attributes #0 = { nounwind ssp "less-precise-fpmad"="false" "frame-pointer"="all" "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" }38attributes #1 = { nounwind readnone }39attributes #2 = { "less-precise-fpmad"="false" "frame-pointer"="all" "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 41!llvm.dbg.cu = !{!0}42!llvm.module.flags = !{!9, !10, !11}43!llvm.ident = !{!12}44 45!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!1 = !DIFile(filename: "frame.c", directory: "/tmp")47!2 = !{}48!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, retainedNodes: !2)49!5 = !DISubroutineType(types: !6)50!6 = !{!7, !7}51!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)52!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, retainedNodes: !2)53!9 = !{i32 2, !"Dwarf Version", i32 2}54!10 = !{i32 2, !"Debug Info Version", i32 3}55!11 = !{i32 1, !"PIC Level", i32 2}56!12 = !{!"clang version 3.7.0 (trunk 239176) (llvm/trunk 239190)"}57!13 = !DILocalVariable(name: "b", arg: 1, scope: !4, file: !1, line: 3, type: !7)58!14 = !DIExpression()59!15 = !DILocation(line: 3, column: 13, scope: !4)60!16 = !DILocalVariable(name: "var", scope: !4, file: !1, line: 4, type: !7)61!17 = !DILocation(line: 4, column: 6, scope: !4)62!18 = !DILocation(line: 4, column: 12, scope: !4)63!19 = !DILocation(line: 4, column: 14, scope: !4)64!20 = !DILocation(line: 5, column: 9, scope: !4)65!21 = !DILocation(line: 5, column: 2, scope: !4)66!22 = !DILocalVariable(name: "b", arg: 1, scope: !8, file: !1, line: 8, type: !7)67!23 = !DILocation(line: 8, column: 13, scope: !8)68!24 = !DILocation(line: 9, column: 13, scope: !8)69!25 = !DILocation(line: 9, column: 9, scope: !8)70!26 = !DILocation(line: 9, column: 2, scope: !8)71