Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 1.51 KB | None | 0 0
  1. source_filename = "p.c"
  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: nounwind uwtable
  6. define dso_local i32 @foo2(i8* %s) local_unnamed_addr #0 {
  7. entry:
  8.   %call = call i64 @strlen(i8* %s) #2
  9.   %conv = trunc i64 %call to i32
  10.   ret i32 %conv
  11. }
  12.  
  13. ; Function Attrs: argmemonly nounwind readonly
  14. declare dso_local i64 @strlen(i8* nocapture) local_unnamed_addr #1
  15.  
  16. attributes #0 = { nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
  17. attributes #1 = { argmemonly nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
  18. attributes #2 = { nounwind readonly }
  19.  
  20. !llvm.module.flags = !{!0}
  21. !llvm.ident = !{!1}
  22.  
  23. !0 = !{i32 1, !"wchar_size", i32 4}
  24. !1 = !{!"clang version 8.0.0 (trunk 341296)"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement