Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 4.61 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 !17, metadata !18), !dbg !19
  9.   call void @llvm.dbg.value(metadata i32 %y, i64 0, metadata !20, metadata !18), !dbg !21
  10.   %add = add nsw i32 %x, %y, !dbg !22
  11.   call void @llvm.dbg.value(metadata i32 %add, i64 0, metadata !23, metadata !18), !dbg !24
  12.   ret i32 %add, !dbg !25
  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 !26, metadata !18), !dbg !27
  19.   call void @llvm.dbg.value(metadata i8** %argv, i64 0, metadata !28, metadata !18), !dbg !29
  20.   call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !17, metadata !18), !dbg !30
  21.   call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !20, metadata !18), !dbg !32
  22.   %add.i = shl nsw i32 %argc, 1, !dbg !33
  23.   call void @llvm.dbg.value(metadata i32 %add.i, i64 0, metadata !23, metadata !18), !dbg !34
  24.   call void @llvm.dbg.value(metadata i32 %add.i, i64 0, metadata !35, metadata !18), !dbg !36
  25.   ret i32 %add.i, !dbg !37
  26.  
  27. ; uselistorder directives
  28.   uselistorder void (metadata, i64, metadata, metadata)* @llvm.dbg.value, { 5, 0, 1, 2, 4, 3, 7, 6, 8 }
  29.   uselistorder i64 0, { 5, 0, 1, 2, 4, 3, 7, 6, 8 }
  30. }
  31.  
  32. ; Function Attrs: nounwind readnone
  33. declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #1
  34.  
  35. 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" }
  36. attributes #1 = { nounwind readnone }
  37.  
  38. !llvm.dbg.cu = !{!0}
  39. !llvm.ident = !{!14}
  40. !llvm.module.flags = !{!15, !16}
  41.  
  42. !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)
  43. !1 = !DIFile(filename: "../hello/src/hello.c", directory: "/home/carr27/research/datashield/test/myspec/build2")
  44. !2 = !{}
  45. !3 = !{!4, !8}
  46. !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)
  47. !5 = !DISubroutineType(types: !6)
  48. !6 = !{!7, !7, !7}
  49. !7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
  50. !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)
  51. !9 = !DISubroutineType(types: !10)
  52. !10 = !{!7, !7, !11}
  53. !11 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !12, size: 64, align: 64)
  54. !12 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 64, align: 64)
  55. !13 = !DIBasicType(name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
  56. !14 = !{!"clang version 3.9.0 "}
  57. !15 = !{i32 2, !"Dwarf Version", i32 4}
  58. !16 = !{i32 2, !"Debug Info Version", i32 3}
  59. !17 = !DILocalVariable(name: "x", arg: 1, scope: !4, file: !1, line: 4, type: !7)
  60. !18 = !DIExpression()
  61. !19 = !DILocation(line: 4, column: 13, scope: !4)
  62. !20 = !DILocalVariable(name: "y", arg: 2, scope: !4, file: !1, line: 4, type: !7)
  63. !21 = !DILocation(line: 4, column: 16, scope: !4)
  64. !22 = !DILocation(line: 5, column: 13, scope: !4)
  65. !23 = !DILocalVariable(name: "z", scope: !4, file: !1, line: 5, type: !7)
  66. !24 = !DILocation(line: 5, column: 7, scope: !4)
  67. !25 = !DILocation(line: 6, column: 3, scope: !4)
  68. !26 = !DILocalVariable(name: "argc", arg: 1, scope: !8, file: !1, line: 9, type: !7)
  69. !27 = !DILocation(line: 9, column: 14, scope: !8)
  70. !28 = !DILocalVariable(name: "argv", arg: 2, scope: !8, file: !1, line: 9, type: !11)
  71. !29 = !DILocation(line: 9, column: 27, scope: !8)
  72. !30 = !DILocation(line: 4, column: 13, scope: !4, inlinedAt: !31)
  73. !31 = distinct !DILocation(line: 10, column: 11, scope: !8)
  74. !32 = !DILocation(line: 4, column: 16, scope: !4, inlinedAt: !31)
  75. !33 = !DILocation(line: 5, column: 13, scope: !4, inlinedAt: !31)
  76. !34 = !DILocation(line: 5, column: 7, scope: !4, inlinedAt: !31)
  77. !35 = !DILocalVariable(name: "r", scope: !8, file: !1, line: 10, type: !7)
  78. !36 = !DILocation(line: 10, column: 7, scope: !8)
  79. !37 = !DILocation(line: 11, column: 3, scope: !8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement