Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 6.59 KB | None | 0 0
  1. ; ModuleID = '<stdin>'
  2. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  3. target triple = "x86_64-unknown-linux-gnu"
  4.  
  5. ; Function Attrs: norecurse nounwind readnone uwtable
  6. define i32 @add(i32 %x, i32 %y) #0 !dbg !4 {
  7. entry:
  8.   call void @llvm.dbg.value(metadata i32 %x, i64 0, metadata !18, metadata !19), !dbg !20
  9.   call void @llvm.dbg.value(metadata i32 %y, i64 0, metadata !21, metadata !19), !dbg !22
  10.   %add = add nsw i32 %x, %y, !dbg !23
  11.   call void @llvm.dbg.value(metadata i32 %add, i64 0, metadata !24, metadata !19), !dbg !25
  12.   ret i32 %add, !dbg !26
  13. }
  14.  
  15. ; Function Attrs: norecurse nounwind readnone uwtable
  16. define i32 @main(i32 %argc, i8** nocapture readnone %argv) #0 !dbg !8 {
  17. entry:
  18.   call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !27, metadata !19), !dbg !28
  19.   call void @llvm.dbg.value(metadata i8** %argv, i64 0, metadata !29, metadata !19), !dbg !30
  20.   call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !18, metadata !19), !dbg !31
  21.   call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !21, metadata !19), !dbg !33
  22.   %add.i = shl nsw i32 %argc, 1, !dbg !34
  23.   call void @llvm.dbg.value(metadata i32 %add.i, i64 0, metadata !24, metadata !19), !dbg !35
  24.   call void @llvm.dbg.value(metadata i32 %add.i, i64 0, metadata !36, metadata !19), !dbg !37
  25.   ret i32 %add.i, !dbg !38
  26. }
  27.  
  28. ; Function Attrs: nounwind readnone
  29. declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #1
  30.  
  31. ; Function Attrs: norecurse nounwind readnone uwtable
  32. define i32 @main.1(i32 %argc, i8** nocapture readnone %argv) #0 !dbg !14 {
  33. entry:
  34.   call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !39, metadata !19), !dbg !40
  35.   call void @llvm.dbg.value(metadata i8** %argv, i64 0, metadata !41, metadata !19), !dbg !42
  36.   call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !43, metadata !19), !dbg !45
  37.   call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !47, metadata !19), !dbg !48
  38.   %add.i = shl nsw i32 %argc, 1, !dbg !49
  39.   call void @llvm.dbg.value(metadata i32 %add.i, i64 0, metadata !50, metadata !19), !dbg !51
  40.   call void @llvm.dbg.value(metadata i32 %add.i, i64 0, metadata !52, metadata !19), !dbg !53
  41.   ret i32 %add.i, !dbg !54
  42. }
  43.  
  44. attributes #0 = { norecurse nounwind readnone uwtable "disable-tail-calls"="false" "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
  45. attributes #1 = { nounwind readnone }
  46.  
  47. !llvm.dbg.cu = !{!0}
  48. !llvm.ident = !{!15}
  49. !llvm.module.flags = !{!16, !17}
  50.  
  51. !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.9.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !2, subprograms: !3)
  52. !1 = !DIFile(filename: "../hello/src/hello.c", directory: "/home/carr27/research/datashield/test/myspec/build2")
  53. !2 = !{}
  54. !3 = !{!4, !8, !14}
  55. !4 = distinct !DISubprogram(name: "add", scope: !1, file: !1, line: 4, type: !5, isLocal: false, isDefinition: true, scopeLine: 4, flags: DIFlagPrototyped, isOptimized: false, variables: !2)
  56. !5 = !DISubroutineType(types: !6)
  57. !6 = !{!7, !7, !7}
  58. !7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
  59. !8 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 9, type: !9, isLocal: false, isDefinition: true, scopeLine: 9, flags: DIFlagPrototyped, isOptimized: false, variables: !2)
  60. !9 = !DISubroutineType(types: !10)
  61. !10 = !{!7, !7, !11}
  62. !11 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !12, size: 64, align: 64)
  63. !12 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 64, align: 64)
  64. !13 = !DIBasicType(name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
  65. !14 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 9, type: !9, isLocal: false, isDefinition: true, scopeLine: 9, flags: DIFlagPrototyped, isOptimized: false, variables: !2)
  66. !15 = !{!"clang version 3.9.0 "}
  67. !16 = !{i32 2, !"Dwarf Version", i32 4}
  68. !17 = !{i32 2, !"Debug Info Version", i32 3}
  69. !18 = !DILocalVariable(name: "x", arg: 1, scope: !4, file: !1, line: 4, type: !7)
  70. !19 = !DIExpression()
  71. !20 = !DILocation(line: 4, column: 13, scope: !4)
  72. !21 = !DILocalVariable(name: "y", arg: 2, scope: !4, file: !1, line: 4, type: !7)
  73. !22 = !DILocation(line: 4, column: 16, scope: !4)
  74. !23 = !DILocation(line: 5, column: 13, scope: !4)
  75. !24 = !DILocalVariable(name: "z", scope: !4, file: !1, line: 5, type: !7)
  76. !25 = !DILocation(line: 5, column: 7, scope: !4)
  77. !26 = !DILocation(line: 6, column: 3, scope: !4)
  78. !27 = !DILocalVariable(name: "argc", arg: 1, scope: !8, file: !1, line: 9, type: !7)
  79. !28 = !DILocation(line: 9, column: 14, scope: !8)
  80. !29 = !DILocalVariable(name: "argv", arg: 2, scope: !8, file: !1, line: 9, type: !11)
  81. !30 = !DILocation(line: 9, column: 27, scope: !8)
  82. !31 = !DILocation(line: 4, column: 13, scope: !4, inlinedAt: !32)
  83. !32 = distinct !DILocation(line: 10, column: 11, scope: !8)
  84. !33 = !DILocation(line: 4, column: 16, scope: !4, inlinedAt: !32)
  85. !34 = !DILocation(line: 5, column: 13, scope: !4, inlinedAt: !32)
  86. !35 = !DILocation(line: 5, column: 7, scope: !4, inlinedAt: !32)
  87. !36 = !DILocalVariable(name: "r", scope: !8, file: !1, line: 10, type: !7)
  88. !37 = !DILocation(line: 10, column: 7, scope: !8)
  89. !38 = !DILocation(line: 11, column: 3, scope: !8)
  90. !39 = !DILocalVariable(name: "argc", arg: 1, scope: !14, file: !1, line: 9, type: !7)
  91. !40 = !DILocation(line: 9, column: 14, scope: !14)
  92. !41 = !DILocalVariable(name: "argv", arg: 2, scope: !14, file: !1, line: 9, type: !11)
  93. !42 = !DILocation(line: 9, column: 27, scope: !14)
  94. !43 = !DILocalVariable(name: "x", arg: 1, scope: !44, file: !1, line: 4, type: !7)
  95. !44 = distinct !DISubprogram(name: "add", scope: !1, file: !1, line: 4, type: !5, isLocal: false, isDefinition: true, scopeLine: 4, flags: DIFlagPrototyped, isOptimized: false, variables: !2)
  96. !45 = !DILocation(line: 4, column: 13, scope: !44, inlinedAt: !46)
  97. !46 = distinct !DILocation(line: 10, column: 11, scope: !14)
  98. !47 = !DILocalVariable(name: "y", arg: 2, scope: !44, file: !1, line: 4, type: !7)
  99. !48 = !DILocation(line: 4, column: 16, scope: !44, inlinedAt: !46)
  100. !49 = !DILocation(line: 5, column: 13, scope: !44, inlinedAt: !46)
  101. !50 = !DILocalVariable(name: "z", scope: !44, file: !1, line: 5, type: !7)
  102. !51 = !DILocation(line: 5, column: 7, scope: !44, inlinedAt: !46)
  103. !52 = !DILocalVariable(name: "r", scope: !14, file: !1, line: 10, type: !7)
  104. !53 = !DILocation(line: 10, column: 7, scope: !14)
  105. !54 = !DILocation(line: 11, column: 3, scope: !14)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement