-
Notifications
You must be signed in to change notification settings - Fork 0
/
llexample.ll
36 lines (29 loc) · 1.5 KB
/
llexample.ll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
; ModuleID = 'llexample.c'
source_filename = "llexample.c"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Foo = type { i32, i64, float }
@g = common dso_local global i32 0, align 4
; Function Attrs: norecurse nounwind readonly sspstrong uwtable
define dso_local i32 @fun(i32, i8* nocapture readonly) local_unnamed_addr #0 {
%3 = bitcast i8* %1 to i32*
%4 = load i32, i32* %3, align 4, !tbaa !4
%5 = add nsw i32 %4, %0
ret i32 %5
}
; Function Attrs: norecurse nounwind readonly sspstrong uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
%1 = tail call i32 @fun(i32 42, i8* bitcast (i32* @g to i8*))
ret i32 %1
}
attributes #0 = { norecurse nounwind readonly sspstrong uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "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"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
!llvm.module.flags = !{!0, !1, !2}
!llvm.ident = !{!3}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 7, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{!"clang version 9.0.1 "}
!4 = !{!5, !5, i64 0}
!5 = !{!"int", !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}