Created
December 6, 2018 12:01
-
-
Save rhysd/8be2e2a9a3b1fef6fed915148f58e83a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'foo.c' | |
source_filename = "foo.c" | |
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" | |
target triple = "x86_64-apple-macosx10.12.0" | |
; Function Attrs: noinline nounwind ssp uwtable | |
define i32 @main() #0 { | |
%1 = alloca i32, align 4 | |
%2 = alloca i32, align 4 | |
store i32 0, i32* %1, align 4 | |
%3 = bitcast i32* %2 to i8* | |
call void @llvm.memset.p0i8.i64(i8* %3, i8 1, i64 4, i32 4, i1 false) | |
ret i32 0 | |
} | |
; Function Attrs: argmemonly nounwind | |
declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i32, i1) #1 | |
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,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } | |
attributes #1 = { argmemonly nounwind } | |
!llvm.module.flags = !{!0} | |
!llvm.ident = !{!1} | |
!0 = !{i32 1, !"PIC Level", i32 2} | |
!1 = !{!"Apple LLVM version 9.0.0 (clang-900.0.39.2)"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment