Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. ; ModuleID = '/Users/augustonoronha/Developer/llvm-pass-skeleton-xcode/test.ll'
  2. source_filename = "test.c"
  3. target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
  4. target triple = "x86_64-apple-macosx10.14.0"
  5.  
  6. ; Function Attrs: noinline nounwind ssp uwtable
  7. define i32 @f(i32) #0 {
  8. br label %2
  9.  
  10. 2: ; preds = %10, %1
  11. %.02 = phi i32 [ 30, %1 ], [ %9, %10 ]
  12. %.01 = phi i32 [ 0, %1 ], [ %.1, %10 ]
  13. %.0 = phi i32 [ 0, %1 ], [ %11, %10 ]
  14. %3 = icmp slt i32 %.0, 60
  15. br i1 %3, label %4, label %12
  16.  
  17. 4: ; preds = %2
  18. %5 = icmp eq i1 false, true
  19. br i1 %5, label %6, label %8
  20.  
  21. 6: ; preds = %4
  22. %7 = add nsw i32 %.01, %.0
  23. br label %8
  24.  
  25. 8: ; preds = %6, %4
  26. %.1 = phi i32 [ %7, %6 ], [ %.01, %4 ]
  27. %9 = add nsw i32 %.02, 1
  28. br label %10
  29.  
  30. 10: ; preds = %8
  31. %11 = add nsw i32 %.0, 2
  32. br label %2
  33.  
  34. 12: ; preds = %2
  35. br label %13
  36.  
  37. 13: ; preds = %21, %12
  38. %.02newLoop = phi i32 [ %.02, %12 ], [ %20, %21 ]
  39. %.01newLoop = phi i32 [ %.01, %12 ], [ %.1newLoop, %21 ]
  40. %.0newLoop = phi i32 [ %.0, %12 ], [ %22, %21 ]
  41. %14 = icmp slt i32 %.0newLoop, %0
  42. br i1 %14, label %15, label %23
  43.  
  44. 15: ; preds = %13
  45. %16 = icmp eq i1 false, false
  46. br i1 %16, label %17, label %19
  47.  
  48. 17: ; preds = %15
  49. %18 = add nsw i32 %.01newLoop, %.0newLoop
  50. br label %19
  51.  
  52. 19: ; preds = %17, %15
  53. %.1newLoop = phi i32 [ %18, %17 ], [ %.01newLoop, %15 ]
  54. %20 = add nsw i32 %.02newLoop, 1
  55. br label %21
  56.  
  57. 21: ; preds = %19
  58. %22 = add nsw i32 %.0newLoop, 2
  59. br label %13
  60.  
  61. 23: ; preds = %13
  62. %.01.lcssa = phi i32 [ %.01newLoop, %13 ]
  63. ret i32 %.01.lcssa
  64. }
  65.  
  66. attributes #0 = { noinline nounwind ssp uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "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-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"="penryn" "target-features"="+cx16,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
  67.  
  68. !llvm.module.flags = !{!0, !1, !2}
  69. !llvm.ident = !{!3}
  70.  
  71. !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 10, i32 14]}
  72. !1 = !{i32 1, !"wchar_size", i32 4}
  73. !2 = !{i32 7, !"PIC Level", i32 2}
  74. !3 = !{!"Apple LLVM version 10.0.1 (clang-1001.0.46.4)"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement