-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.ll
More file actions
41 lines (35 loc) · 1.73 KB
/
Copy pathtest.ll
File metadata and controls
41 lines (35 loc) · 1.73 KB
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
37
38
39
40
41
; ModuleID = 'test.cpp'
source_filename = "test.cpp"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.S0 = type { i32, i32 }
%struct.S1 = type { %struct.S0, i32 }
; Function Attrs: mustprogress noinline norecurse nounwind optnone sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.S0, align 4
%3 = alloca %struct.S1, align 4
store i32 0, i32* %1, align 4
%4 = bitcast %struct.S0* %2 to i8*
call void @llvm.memset.p0i8.i64(i8* align 4 %4, i8 0, i64 8, i1 false)
%5 = bitcast %struct.S1* %3 to i8*
call void @llvm.memset.p0i8.i64(i8* align 4 %5, i8 0, i64 12, i1 false)
%6 = bitcast %struct.S1* %3 to %struct.S0*
%7 = getelementptr inbounds %struct.S0, %struct.S0* %6, i32 0, i32 0
store i32 3, i32* %7, align 4
%8 = getelementptr inbounds %struct.S1, %struct.S1* %3, i32 0, i32 1
store i32 4, i32* %8, align 4
ret i32 0
}
; Function Attrs: argmemonly nofree nounwind willreturn writeonly
declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i1 immarg) #1
attributes #0 = { mustprogress noinline norecurse nounwind optnone sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { argmemonly nofree nounwind willreturn writeonly }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 7, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 13.0.1"}