@@ -64,43 +64,7 @@ target triple = "@CFG_LLVM_TRIPLE@"
64
64
@.str = private unnamed_addr constant [42 x i8] c"attempt to cast values of differing sizes\00", align 1
65
65
@.str1 = private unnamed_addr constant [15 x i8] c"intrinsics.cpp\00", align 1
66
66
67
- define linkonce_odr i32 @rust_intrinsic_vec_len(%struct.rust_task* nocapture %task, %struct.type_desc* nocapture %ty, %struct.rust_vec* nocapture %v) nounwind readonly {
68
- entry:
69
- %fill = getelementptr inbounds %struct.rust_vec* %v, i32 0, i32 2
70
- %tmp1 = load i32* %fill, align 4, !tbaa !0
71
- %size = getelementptr inbounds %struct.type_desc* %ty, i32 0, i32 1
72
- %tmp3 = load i32* %size, align 4, !tbaa !0
73
- %div = udiv i32 %tmp1, %tmp3
74
- ret i32 %div
75
- }
76
-
77
- define linkonce_odr i32 @rust_intrinsic_ivec_len(%struct.rust_task* nocapture %task, %struct.type_desc* nocapture %ty, %struct.rust_ivec* nocapture %v) nounwind readonly {
78
- entry:
79
- %fill1 = getelementptr inbounds %struct.rust_ivec* %v, i32 0, i32 0
80
- %tmp2 = load i32* %fill1, align 4, !tbaa !0
81
- %tobool = icmp eq i32 %tmp2, 0
82
- br i1 %tobool, label %if.else, label %if.end17
83
-
84
- if.else: ; preds = %entry
85
- %ptr = getelementptr inbounds %struct.rust_ivec* %v, i32 0, i32 2, i32 0
86
- %tmp7 = load %struct.rust_ivec_heap** %ptr, align 4, !tbaa !3
87
- %tobool8 = icmp eq %struct.rust_ivec_heap* %tmp7, null
88
- br i1 %tobool8, label %if.end17, label %if.then9
89
-
90
- if.then9: ; preds = %if.else
91
- %fill14 = getelementptr inbounds %struct.rust_ivec_heap* %tmp7, i32 0, i32 0
92
- %tmp15 = load i32* %fill14, align 4, !tbaa !0
93
- br label %if.end17
94
-
95
- if.end17: ; preds = %if.else, %entry, %if.then9
96
- %fill.0 = phi i32 [ %tmp15, %if.then9 ], [ %tmp2, %entry ], [ 0, %if.else ]
97
- %size = getelementptr inbounds %struct.type_desc* %ty, i32 0, i32 1
98
- %tmp20 = load i32* %size, align 4, !tbaa !0
99
- %div = udiv i32 %fill.0, %tmp20
100
- ret i32 %div
101
- }
102
-
103
- define linkonce_odr void @rust_intrinsic_vec_len_2(%struct.rust_task* nocapture %task, i32* nocapture %retptr, %struct.type_desc* nocapture %ty, %struct.rust_vec* nocapture %v) nounwind {
67
+ define linkonce_odr void @rust_intrinsic_vec_len(%struct.rust_task* nocapture %task, i32* nocapture %retptr, %struct.type_desc* nocapture %ty, %struct.rust_vec* nocapture %v) nounwind {
104
68
entry:
105
69
%fill = getelementptr inbounds %struct.rust_vec* %v, i32 0, i32 2
106
70
%tmp1 = load i32* %fill, align 4, !tbaa !0
@@ -111,7 +75,7 @@ entry:
111
75
ret void
112
76
}
113
77
114
- define linkonce_odr void @rust_intrinsic_ivec_len_2 (%struct.rust_task* nocapture %task, i32* nocapture %retptr, %struct.type_desc* nocapture %ty, %struct.rust_ivec* nocapture %v) nounwind {
78
+ define linkonce_odr void @rust_intrinsic_ivec_len (%struct.rust_task* nocapture %task, i32* nocapture %retptr, %struct.type_desc* nocapture %ty, %struct.rust_ivec* nocapture %v) nounwind {
115
79
entry:
116
80
%fill1 = getelementptr inbounds %struct.rust_ivec* %v, i32 0, i32 0
117
81
%tmp2 = load i32* %fill1, align 4, !tbaa !0
@@ -158,7 +122,7 @@ entry:
158
122
br i1 %cmp, label %if.end, label %if.then
159
123
160
124
if.then: ; preds = %entry
161
- tail call void @upcall_fail(%struct.rust_task* %task, i8* getelementptr inbounds ([42 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8]* @.str1, i32 0, i32 0), i32 64 )
125
+ tail call void @upcall_fail(%struct.rust_task* %task, i8* getelementptr inbounds ([42 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8]* @.str1, i32 0, i32 0), i32 45 )
162
126
br label %return
163
127
164
128
if.end: ; preds = %entry
0 commit comments