-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path08F2F01EBE64F2D8.ll
More file actions
115 lines (93 loc) · 4.98 KB
/
08F2F01EBE64F2D8.ll
File metadata and controls
115 lines (93 loc) · 4.98 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
; ModuleID = '/usr/local/google/home/aeubanks/repos/test-suite/SingleSource/Regression/C++/EH/recursive-throw.cpp'
source_filename = "/usr/local/google/home/aeubanks/repos/test-suite/SingleSource/Regression/C++/EH/recursive-throw.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-unknown-linux-gnu"
$_ZTS13TestException = comdat any
$_ZTI13TestException = comdat any
@thrown = dso_local local_unnamed_addr global i8 0, align 1
@caught = dso_local local_unnamed_addr global i8 0, align 1
@_ZTVN10__cxxabiv117__class_type_infoE = external global ptr
@_ZTS13TestException = linkonce_odr dso_local constant [16 x i8] c"13TestException\00", comdat, align 1
@_ZTI13TestException = linkonce_odr dso_local constant { ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv117__class_type_infoE, i64 2), ptr @_ZTS13TestException }, comdat, align 8
; Function Attrs: noreturn uwtable
define dso_local void @_Z3thri(i32 %n) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
entry:
store i8 1, ptr @thrown, align 1, !tbaa !5
%exception = tail call ptr @__cxa_allocate_exception(i64 1) #5
tail call void @__cxa_throw(ptr %exception, ptr nonnull @_ZTI13TestException, ptr null) #6
unreachable
}
declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr
declare i32 @__gxx_personality_v0(...)
declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr
; Function Attrs: mustprogress noinline uwtable
define dso_local void @_Z3runv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
entry:
invoke void @_Z3thri(i32 poison)
to label %invoke.cont.unreachable unwind label %lpad
invoke.cont.unreachable: ; preds = %entry
unreachable
lpad: ; preds = %entry
%0 = landingpad { ptr, i32 }
catch ptr @_ZTI13TestException
%1 = extractvalue { ptr, i32 } %0, 1
%2 = tail call i32 @llvm.eh.typeid.for(ptr nonnull @_ZTI13TestException) #5
%matches = icmp eq i32 %1, %2
br i1 %matches, label %catch, label %eh.resume
catch: ; preds = %lpad
%3 = extractvalue { ptr, i32 } %0, 0
%4 = tail call ptr @__cxa_begin_catch(ptr %3) #5
store i8 1, ptr @caught, align 1, !tbaa !5
tail call void @__cxa_end_catch()
ret void
eh.resume: ; preds = %lpad
resume { ptr, i32 } %0
}
; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #2
; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for(ptr) #3
declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr
declare void @__cxa_end_catch() local_unnamed_addr
; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %argc, ptr nocapture noundef readnone %argv) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
entry:
invoke void @_Z3runv()
to label %try.cont unwind label %lpad
lpad: ; preds = %entry
%0 = landingpad { ptr, i32 }
catch ptr null
%1 = extractvalue { ptr, i32 } %0, 0
%2 = tail call ptr @__cxa_begin_catch(ptr %1) #5
tail call void @abort() #7
unreachable
try.cont: ; preds = %entry
%3 = load i8, ptr @thrown, align 1, !tbaa !5, !range !9, !noundef !10
%tobool.not = icmp eq i8 %3, 0
%4 = load i8, ptr @caught, align 1, !range !9
%tobool1.not = icmp eq i8 %4, 0
%or.cond = select i1 %tobool.not, i1 true, i1 %tobool1.not
%retval.0 = zext i1 %or.cond to i32
ret i32 %retval.0
}
attributes #0 = { noreturn uwtable "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 = { mustprogress noinline uwtable "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 #2 = { noreturn nounwind "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 #3 = { nofree nosync nounwind memory(none) }
attributes #4 = { mustprogress norecurse nounwind uwtable "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 #5 = { nounwind }
attributes #6 = { noreturn }
attributes #7 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 17.0.0"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}