1use rustc_errors::DiagMessage;
4use rustc_hir::{self as hir, LangItem};
5use rustc_middle::traits::{ObligationCause, ObligationCauseCode};
6use rustc_middle::ty::{self, Const, Ty, TyCtxt};
7use rustc_span::def_id::LocalDefId;
8use rustc_span::{Span, Symbol, sym};
9
10use crate::check::check_function_signature;
11use crate::errors::{UnrecognizedIntrinsicFunction, WrongNumberOfGenericArgumentsToIntrinsic};
12
13fn equate_intrinsic_type<'tcx>(
14 tcx: TyCtxt<'tcx>,
15 span: Span,
16 def_id: LocalDefId,
17 n_tps: usize,
18 n_lts: usize,
19 n_cts: usize,
20 sig: ty::PolyFnSig<'tcx>,
21) {
22 let (generics, span) = match tcx.hir_node_by_def_id(def_id) {
23 hir::Node::Item(hir::Item { kind: hir::ItemKind::Fn { generics, .. }, .. }) => {
24 (tcx.generics_of(def_id), generics.span)
25 }
26 _ => tcx.dcx().span_bug(span, "intrinsic must be a function"),
27 };
28 let own_counts = generics.own_counts();
29
30 let gen_count_ok = |found: usize, expected: usize, descr: &str| -> bool {
31 if found != expected {
32 tcx.dcx().emit_err(WrongNumberOfGenericArgumentsToIntrinsic {
33 span,
34 found,
35 expected,
36 descr,
37 });
38 false
39 } else {
40 true
41 }
42 };
43
44 if gen_count_ok(own_counts.lifetimes, n_lts, "lifetime")
47 && gen_count_ok(own_counts.types, n_tps, "type")
48 && gen_count_ok(own_counts.consts, n_cts, "const")
49 {
50 let _ = check_function_signature(
51 tcx,
52 ObligationCause::new(span, def_id, ObligationCauseCode::IntrinsicType),
53 def_id.into(),
54 sig,
55 );
56 }
57}
58
59fn intrinsic_operation_unsafety(tcx: TyCtxt<'_>, intrinsic_id: LocalDefId) -> hir::Safety {
61 let is_in_list = match tcx.item_name(intrinsic_id) {
62 | sym::abort
69 | sym::add_with_overflow
70 | sym::aggregate_raw_ptr
71 | sym::align_of
72 | sym::amdgpu_dispatch_ptr
73 | sym::assert_inhabited
74 | sym::assert_mem_uninitialized_valid
75 | sym::assert_zero_valid
76 | sym::autodiff
77 | sym::bitreverse
78 | sym::black_box
79 | sym::breakpoint
80 | sym::bswap
81 | sym::caller_location
82 | sym::carrying_mul_add
83 | sym::carryless_mul
84 | sym::ceilf16
85 | sym::ceilf32
86 | sym::ceilf64
87 | sym::ceilf128
88 | sym::cold_path
89 | sym::const_eval_select
90 | sym::contract_check_ensures
91 | sym::contract_check_requires
92 | sym::contract_checks
93 | sym::copysignf16
94 | sym::copysignf32
95 | sym::copysignf64
96 | sym::copysignf128
97 | sym::cosf16
98 | sym::cosf32
99 | sym::cosf64
100 | sym::cosf128
101 | sym::ctlz
102 | sym::ctpop
103 | sym::cttz
104 | sym::discriminant_value
105 | sym::exp2f16
106 | sym::exp2f32
107 | sym::exp2f64
108 | sym::exp2f128
109 | sym::expf16
110 | sym::expf32
111 | sym::expf64
112 | sym::expf128
113 | sym::fabs
114 | sym::fadd_algebraic
115 | sym::fdiv_algebraic
116 | sym::field_offset
117 | sym::field_representing_type_actual_type_id
118 | sym::floorf16
119 | sym::floorf32
120 | sym::floorf64
121 | sym::floorf128
122 | sym::fmaf16
123 | sym::fmaf32
124 | sym::fmaf64
125 | sym::fmaf128
126 | sym::fmul_algebraic
127 | sym::fmuladdf16
128 | sym::fmuladdf32
129 | sym::fmuladdf64
130 | sym::fmuladdf128
131 | sym::forget
132 | sym::frem_algebraic
133 | sym::fsub_algebraic
134 | sym::gpu_launch_sized_workgroup_mem
135 | sym::is_val_statically_known
136 | sym::log2f16
137 | sym::log2f32
138 | sym::log2f64
139 | sym::log2f128
140 | sym::log10f16
141 | sym::log10f32
142 | sym::log10f64
143 | sym::log10f128
144 | sym::logf16
145 | sym::logf32
146 | sym::logf64
147 | sym::logf128
148 | sym::maximum_number_nsz_f16
149 | sym::maximum_number_nsz_f32
150 | sym::maximum_number_nsz_f64
151 | sym::maximum_number_nsz_f128
152 | sym::maximumf16
153 | sym::maximumf32
154 | sym::maximumf64
155 | sym::maximumf128
156 | sym::minimum_number_nsz_f16
157 | sym::minimum_number_nsz_f32
158 | sym::minimum_number_nsz_f64
159 | sym::minimum_number_nsz_f128
160 | sym::minimumf16
161 | sym::minimumf32
162 | sym::minimumf64
163 | sym::minimumf128
164 | sym::mul_with_overflow
165 | sym::needs_drop
166 | sym::offload
167 | sym::offset_of
168 | sym::overflow_checks
169 | sym::powf16
170 | sym::powf32
171 | sym::powf64
172 | sym::powf128
173 | sym::powif16
174 | sym::powif32
175 | sym::powif64
176 | sym::powif128
177 | sym::prefetch_read_data
178 | sym::prefetch_read_instruction
179 | sym::prefetch_write_data
180 | sym::prefetch_write_instruction
181 | sym::ptr_guaranteed_cmp
182 | sym::ptr_mask
183 | sym::ptr_metadata
184 | sym::return_address
185 | sym::rotate_left
186 | sym::rotate_right
187 | sym::round_ties_even_f16
188 | sym::round_ties_even_f32
189 | sym::round_ties_even_f64
190 | sym::round_ties_even_f128
191 | sym::roundf16
192 | sym::roundf32
193 | sym::roundf64
194 | sym::roundf128
195 | sym::rustc_peek
196 | sym::saturating_add
197 | sym::saturating_sub
198 | sym::select_unpredictable
199 | sym::sinf16
200 | sym::sinf32
201 | sym::sinf64
202 | sym::sinf128
203 | sym::size_of
204 | sym::size_of_type_id
205 | sym::sqrtf16
206 | sym::sqrtf32
207 | sym::sqrtf64
208 | sym::sqrtf128
209 | sym::sub_with_overflow
210 | sym::three_way_compare
211 | sym::truncf16
212 | sym::truncf32
213 | sym::truncf64
214 | sym::truncf128
215 | sym::type_id
216 | sym::type_id_eq
217 | sym::type_id_field_representing_type
218 | sym::type_id_fields
219 | sym::type_id_variants
220 | sym::type_id_vtable
221 | sym::type_name
222 | sym::type_of
223 | sym::ub_checks
224 | sym::va_copy
225 | sym::variant_count
226 | sym::wrapping_add
227 | sym::wrapping_mul
228 | sym::wrapping_sub
229 | sym::write_box_via_move
230 => hir::Safety::Safe,
232 _ => hir::Safety::Unsafe,
233 };
234
235 if tcx.fn_sig(intrinsic_id).skip_binder().safety() != is_in_list {
236 tcx.dcx().struct_span_err(
237 tcx.def_span(intrinsic_id),
238 DiagMessage::from(::alloc::__export::must_use({
::alloc::fmt::format(format_args!("intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `{0}`",
tcx.item_name(intrinsic_id)))
})format!(
239 "intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `{}`",
240 tcx.item_name(intrinsic_id)
241 )
242 )).emit();
243 }
244
245 is_in_list
246}
247
248pub(crate) fn check_intrinsic_type(
251 tcx: TyCtxt<'_>,
252 intrinsic_id: LocalDefId,
253 span: Span,
254 intrinsic_name: Symbol,
255) {
256 let generics = tcx.generics_of(intrinsic_id);
257 let param = |n| {
258 if let &ty::GenericParamDef { name, kind: ty::GenericParamDefKind::Type { .. }, .. } =
259 generics.param_at(n as usize, tcx)
260 {
261 Ty::new_param(tcx, n, name)
262 } else {
263 Ty::new_error_with_message(tcx, span, "expected param")
264 }
265 };
266
267 let bound_vars = tcx.mk_bound_variable_kinds(&[
268 ty::BoundVariableKind::Region(ty::BoundRegionKind::Anon),
269 ty::BoundVariableKind::Region(ty::BoundRegionKind::Anon),
270 ty::BoundVariableKind::Region(ty::BoundRegionKind::ClosureEnv),
271 ]);
272 let mk_va_list_ty = |mutbl| {
273 let did = tcx.require_lang_item(LangItem::VaList, span);
274 let region = ty::Region::new_bound(
275 tcx,
276 ty::INNERMOST,
277 ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon },
278 );
279 let env_region = ty::Region::new_bound(
280 tcx,
281 ty::INNERMOST,
282 ty::BoundRegion {
283 var: ty::BoundVar::from_u32(2),
284 kind: ty::BoundRegionKind::ClosureEnv,
285 },
286 );
287 let va_list_ty = tcx.type_of(did).instantiate(tcx, &[region.into()]).skip_norm_wip();
288 (Ty::new_ref(tcx, env_region, va_list_ty, mutbl), va_list_ty)
289 };
290 let type_id_ty = || tcx.type_of(tcx.lang_items().type_id().unwrap()).no_bound_vars().unwrap();
291
292 let safety = intrinsic_operation_unsafety(tcx, intrinsic_id);
293 let n_lts = 0;
294 let (n_tps, n_cts, inputs, output) = match intrinsic_name {
295 sym::autodiff => (4, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(3)),
296 sym::abort => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.never),
297 sym::amdgpu_dispatch_ptr => (0, 0, ::alloc::vec::Vec::new()vec![], Ty::new_imm_ptr(tcx, tcx.types.unit)),
298 sym::unreachable => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.never),
299 sym::breakpoint => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit),
300 sym::size_of | sym::align_of | sym::variant_count => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.usize),
301 sym::size_of_val | sym::align_of_val => {
302 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], tcx.types.usize)
303 }
304 sym::size_of_type_id => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[type_id_ty()]))vec![type_id_ty()], Ty::new_option(tcx, tcx.types.usize)),
305 sym::offset_of => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.u32, tcx.types.u32]))vec![tcx.types.u32, tcx.types.u32], tcx.types.usize),
306 sym::field_offset => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.usize),
307 sym::rustc_peek => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(0)),
308 sym::caller_location => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.caller_location_ty()),
309 sym::gpu_launch_sized_workgroup_mem => (1, 0, ::alloc::vec::Vec::new()vec![], Ty::new_mut_ptr(tcx, param(0))),
310 sym::assert_inhabited | sym::assert_zero_valid | sym::assert_mem_uninitialized_valid => {
311 (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit)
312 }
313 sym::forget => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], tcx.types.unit),
314 sym::transmute | sym::transmute_unchecked => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(1)),
315 sym::prefetch_read_data
316 | sym::prefetch_write_data
317 | sym::prefetch_read_instruction
318 | sym::prefetch_write_instruction => {
319 (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], tcx.types.unit)
320 }
321 sym::needs_drop => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.bool),
322
323 sym::type_name => (1, 0, ::alloc::vec::Vec::new()vec![], Ty::new_static_str(tcx)),
324 sym::type_id => (1, 0, ::alloc::vec::Vec::new()vec![], type_id_ty()),
325 sym::type_id_eq => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[type_id_ty(), type_id_ty()]))vec![type_id_ty(), type_id_ty()], tcx.types.bool),
326 sym::type_id_field_representing_type => {
327 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[type_id_ty(), tcx.types.usize, tcx.types.usize]))vec![type_id_ty(), tcx.types.usize, tcx.types.usize], type_id_ty())
328 }
329 sym::type_id_fields => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[type_id_ty(), tcx.types.usize]))vec![type_id_ty(), tcx.types.usize], tcx.types.usize),
330 sym::type_id_variants => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[type_id_ty()]))vec![type_id_ty()], tcx.types.usize),
331 sym::type_id_vtable => {
332 let dyn_metadata = tcx.require_lang_item(LangItem::DynMetadata, span);
333 let dyn_metadata_adt_ref = tcx.adt_def(dyn_metadata);
334 let dyn_metadata_args =
335 tcx.mk_args(&[Ty::new_ptr(tcx, tcx.types.unit, ty::Mutability::Not).into()]);
336 let dyn_ty = Ty::new_adt(tcx, dyn_metadata_adt_ref, dyn_metadata_args);
337
338 let option_did = tcx.require_lang_item(LangItem::Option, span);
339 let option_adt_ref = tcx.adt_def(option_did);
340 let option_args = tcx.mk_args(&[dyn_ty.into()]);
341 let ret_ty = Ty::new_adt(tcx, option_adt_ref, option_args);
342
343 (0, 0, ::alloc::vec::from_elem(type_id_ty(), 2)vec![type_id_ty(); 2], ret_ty)
344 }
345 sym::type_of => (
346 0,
347 0,
348 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[type_id_ty()]))vec![type_id_ty()],
349 tcx.type_of(tcx.lang_items().type_struct().unwrap()).no_bound_vars().unwrap(),
350 ),
351 sym::field_representing_type_actual_type_id => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[type_id_ty()]))vec![type_id_ty()], type_id_ty()),
352 sym::offload => (
353 3,
354 0,
355 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0),
Ty::new_array_with_const_len(tcx, tcx.types.u32,
Const::from_target_usize(tcx, 3)),
Ty::new_array_with_const_len(tcx, tcx.types.u32,
Const::from_target_usize(tcx, 3)), tcx.types.u32,
param(1)]))vec![
356 param(0),
357 Ty::new_array_with_const_len(tcx, tcx.types.u32, Const::from_target_usize(tcx, 3)),
358 Ty::new_array_with_const_len(tcx, tcx.types.u32, Const::from_target_usize(tcx, 3)),
359 tcx.types.u32,
360 param(1),
361 ],
362 param(2),
363 ),
364 sym::offset => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1)]))vec![param(0), param(1)], param(0)),
365 sym::arith_offset => (
366 1,
367 0,
368 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0)), tcx.types.isize]))vec![Ty::new_imm_ptr(tcx, param(0)), tcx.types.isize],
369 Ty::new_imm_ptr(tcx, param(0)),
370 ),
371 sym::slice_get_unchecked => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(1), tcx.types.usize]))vec![param(1), tcx.types.usize], param(0)),
372 sym::ptr_mask => (
373 1,
374 0,
375 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize]))vec![Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize],
376 Ty::new_imm_ptr(tcx, param(0)),
377 ),
378
379 sym::copy | sym::copy_nonoverlapping => (
380 1,
381 0,
382 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0)), Ty::new_mut_ptr(tcx, param(0)),
tcx.types.usize]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_mut_ptr(tcx, param(0)), tcx.types.usize],
383 tcx.types.unit,
384 ),
385 sym::volatile_copy_memory | sym::volatile_copy_nonoverlapping_memory => (
386 1,
387 0,
388 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0)),
tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize],
389 tcx.types.unit,
390 ),
391 sym::compare_bytes => {
392 let byte_ptr = Ty::new_imm_ptr(tcx, tcx.types.u8);
393 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[byte_ptr, byte_ptr, tcx.types.usize]))vec![byte_ptr, byte_ptr, tcx.types.usize], tcx.types.i32)
394 }
395 sym::write_bytes | sym::volatile_set_memory => (
396 1,
397 0,
398 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), tcx.types.u8, tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, param(0)), tcx.types.u8, tcx.types.usize],
399 tcx.types.unit,
400 ),
401
402 sym::sqrtf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
403 sym::sqrtf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
404 sym::sqrtf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
405 sym::sqrtf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
406
407 sym::powif16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.i32]))vec![tcx.types.f16, tcx.types.i32], tcx.types.f16),
408 sym::powif32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.i32]))vec![tcx.types.f32, tcx.types.i32], tcx.types.f32),
409 sym::powif64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.i32]))vec![tcx.types.f64, tcx.types.i32], tcx.types.f64),
410 sym::powif128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.i32]))vec![tcx.types.f128, tcx.types.i32], tcx.types.f128),
411
412 sym::sinf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
413 sym::sinf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
414 sym::sinf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
415 sym::sinf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
416
417 sym::cosf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
418 sym::cosf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
419 sym::cosf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
420 sym::cosf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
421
422 sym::powf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
423 sym::powf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
424 sym::powf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
425 sym::powf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
426
427 sym::expf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
428 sym::expf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
429 sym::expf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
430 sym::expf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
431
432 sym::exp2f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
433 sym::exp2f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
434 sym::exp2f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
435 sym::exp2f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
436
437 sym::logf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
438 sym::logf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
439 sym::logf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
440 sym::logf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
441
442 sym::log10f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
443 sym::log10f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
444 sym::log10f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
445 sym::log10f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
446
447 sym::log2f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
448 sym::log2f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
449 sym::log2f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
450 sym::log2f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
451
452 sym::fmaf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16, tcx.types.f16], tcx.types.f16),
453 sym::fmaf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32, tcx.types.f32], tcx.types.f32),
454 sym::fmaf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64, tcx.types.f64], tcx.types.f64),
455 sym::fmaf128 => {
456 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128, tcx.types.f128], tcx.types.f128)
457 }
458
459 sym::fmuladdf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16, tcx.types.f16], tcx.types.f16),
460 sym::fmuladdf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32, tcx.types.f32], tcx.types.f32),
461 sym::fmuladdf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64, tcx.types.f64], tcx.types.f64),
462 sym::fmuladdf128 => {
463 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128, tcx.types.f128], tcx.types.f128)
464 }
465
466 sym::fabs => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(0)),
467
468 sym::minimum_number_nsz_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
469 sym::minimum_number_nsz_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
470 sym::minimum_number_nsz_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
471 sym::minimum_number_nsz_f128 => {
472 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128)
473 }
474
475 sym::minimumf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
476 sym::minimumf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
477 sym::minimumf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
478 sym::minimumf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
479
480 sym::maximum_number_nsz_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
481 sym::maximum_number_nsz_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
482 sym::maximum_number_nsz_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
483 sym::maximum_number_nsz_f128 => {
484 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128)
485 }
486
487 sym::maximumf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
488 sym::maximumf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
489 sym::maximumf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
490 sym::maximumf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
491
492 sym::copysignf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
493 sym::copysignf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
494 sym::copysignf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
495 sym::copysignf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
496
497 sym::floorf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
498 sym::floorf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
499 sym::floorf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
500 sym::floorf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
501
502 sym::ceilf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
503 sym::ceilf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
504 sym::ceilf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
505 sym::ceilf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
506
507 sym::truncf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
508 sym::truncf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
509 sym::truncf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
510 sym::truncf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
511
512 sym::round_ties_even_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
513 sym::round_ties_even_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
514 sym::round_ties_even_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
515 sym::round_ties_even_f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
516
517 sym::roundf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
518 sym::roundf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
519 sym::roundf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
520 sym::roundf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
521
522 sym::volatile_load | sym::unaligned_volatile_load => {
523 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0))
524 }
525 sym::volatile_store | sym::unaligned_volatile_store => {
526 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
527 }
528
529 sym::ctpop | sym::ctlz | sym::ctlz_nonzero | sym::cttz | sym::cttz_nonzero => {
530 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], tcx.types.u32)
531 }
532
533 sym::bswap | sym::bitreverse => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(0)),
534
535 sym::three_way_compare => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], tcx.ty_ordering_enum(span)),
536
537 sym::add_with_overflow | sym::sub_with_overflow | sym::mul_with_overflow => {
538 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], Ty::new_tup(tcx, &[param(0), tcx.types.bool]))
539 }
540
541 sym::carrying_mul_add => (2, 0, ::alloc::vec::from_elem(param(0), 4)vec![param(0); 4], Ty::new_tup(tcx, &[param(1), param(0)])),
542
543 sym::ptr_guaranteed_cmp => (
544 1,
545 0,
546 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
547 tcx.types.u8,
548 ),
549
550 sym::const_allocate => {
551 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.usize, tcx.types.usize]))vec![tcx.types.usize, tcx.types.usize], Ty::new_mut_ptr(tcx, tcx.types.u8))
552 }
553 sym::const_deallocate => (
554 0,
555 0,
556 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, tcx.types.u8), tcx.types.usize,
tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, tcx.types.u8), tcx.types.usize, tcx.types.usize],
557 tcx.types.unit,
558 ),
559 sym::const_make_global => {
560 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, tcx.types.u8)]))vec![Ty::new_mut_ptr(tcx, tcx.types.u8)], Ty::new_imm_ptr(tcx, tcx.types.u8))
561 }
562
563 sym::ptr_offset_from => (
564 1,
565 0,
566 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
567 tcx.types.isize,
568 ),
569 sym::ptr_offset_from_unsigned => (
570 1,
571 0,
572 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
573 tcx.types.usize,
574 ),
575 sym::unchecked_div | sym::unchecked_rem | sym::exact_div | sym::disjoint_bitor => {
576 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(0))
577 }
578 sym::unchecked_shl | sym::unchecked_shr => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1)]))vec![param(0), param(1)], param(0)),
579 sym::rotate_left | sym::rotate_right => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), tcx.types.u32]))vec![param(0), tcx.types.u32], param(0)),
580 sym::unchecked_funnel_shl | sym::unchecked_funnel_shr => {
581 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0), tcx.types.u32]))vec![param(0), param(0), tcx.types.u32], param(0))
582 }
583 sym::unchecked_add | sym::unchecked_sub | sym::unchecked_mul => {
584 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(0))
585 }
586 sym::wrapping_add | sym::wrapping_sub | sym::wrapping_mul => {
587 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(0))
588 }
589 sym::saturating_add | sym::saturating_sub => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(0)),
590 sym::carryless_mul => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(0)),
591 sym::fadd_fast | sym::fsub_fast | sym::fmul_fast | sym::fdiv_fast | sym::frem_fast => {
592 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(0))
593 }
594 sym::fadd_algebraic
595 | sym::fsub_algebraic
596 | sym::fmul_algebraic
597 | sym::fdiv_algebraic
598 | sym::frem_algebraic => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(0)),
599 sym::float_to_int_unchecked => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(1)),
600
601 sym::assume => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.bool]))vec![tcx.types.bool], tcx.types.unit),
602 sym::select_unpredictable => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[tcx.types.bool, param(0), param(0)]))vec![tcx.types.bool, param(0), param(0)], param(0)),
603 sym::cold_path => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit),
604
605 sym::read_via_copy => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0)),
606 sym::write_via_move => {
607 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
608 }
609 sym::write_box_via_move => {
610 let t = param(0);
611 let maybe_uninit_t = Ty::new_maybe_uninit(tcx, t);
612 let box_mu_t = Ty::new_box(tcx, maybe_uninit_t);
613
614 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[box_mu_t, param(0)]))vec![box_mu_t, param(0)], box_mu_t)
615 }
616
617 sym::typed_swap_nonoverlapping => {
618 (1, 0, ::alloc::vec::from_elem(Ty::new_mut_ptr(tcx, param(0)), 2)vec![Ty::new_mut_ptr(tcx, param(0)); 2], tcx.types.unit)
619 }
620
621 sym::discriminant_value => {
622 let assoc_items = tcx.associated_item_def_ids(
623 tcx.require_lang_item(hir::LangItem::DiscriminantKind, span),
624 );
625 let discriminant_def_id = assoc_items[0];
626
627 let br = ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon };
628 (
629 1,
630 0,
631 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br),
param(0))]))vec![Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0))],
632 Ty::new_projection_from_args(
633 tcx,
634 discriminant_def_id,
635 tcx.mk_args(&[param(0).into()]),
636 ),
637 )
638 }
639
640 sym::catch_unwind => {
641 let mut_data = Ty::new_mut_ptr(tcx, param(0));
642 let mut_u8 = Ty::new_mut_ptr(tcx, tcx.types.u8);
643 let try_fn_ty =
644 ty::Binder::dummy(tcx.mk_fn_sig_unsafe_rust_abi([mut_data], tcx.types.unit));
645 let catch_fn_ty = ty::Binder::dummy(
646 tcx.mk_fn_sig_unsafe_rust_abi([mut_data, mut_u8], tcx.types.unit),
647 );
648 (
649 1,
650 0,
651 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_fn_ptr(tcx, try_fn_ty), mut_data,
Ty::new_fn_ptr(tcx, catch_fn_ty)]))vec![Ty::new_fn_ptr(tcx, try_fn_ty), mut_data, Ty::new_fn_ptr(tcx, catch_fn_ty)],
652 tcx.types.bool,
653 )
654 }
655
656 sym::va_copy => {
657 let (va_list_ref_ty, va_list_ty) = mk_va_list_ty(hir::Mutability::Not);
658 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[va_list_ref_ty]))vec![va_list_ref_ty], va_list_ty)
659 }
660
661 sym::va_start | sym::va_end => {
662 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[mk_va_list_ty(hir::Mutability::Mut).0]))vec![mk_va_list_ty(hir::Mutability::Mut).0], tcx.types.unit)
663 }
664
665 sym::va_arg => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[mk_va_list_ty(hir::Mutability::Mut).0]))vec![mk_va_list_ty(hir::Mutability::Mut).0], param(0)),
666
667 sym::nontemporal_store => {
668 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
669 }
670
671 sym::raw_eq => {
672 let br = ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon };
673 let param_ty_lhs =
674 Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0));
675 let br =
676 ty::BoundRegion { var: ty::BoundVar::from_u32(1), kind: ty::BoundRegionKind::Anon };
677 let param_ty_rhs =
678 Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0));
679 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param_ty_lhs, param_ty_rhs]))vec![param_ty_lhs, param_ty_rhs], tcx.types.bool)
680 }
681
682 sym::black_box => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(0)),
683
684 sym::is_val_statically_known => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], tcx.types.bool),
685
686 sym::const_eval_select => (4, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(3)),
687
688 sym::vtable_size | sym::vtable_align => {
689 (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, tcx.types.unit)]))vec![Ty::new_imm_ptr(tcx, tcx.types.unit)], tcx.types.usize)
690 }
691
692 sym::aggregate_raw_ptr => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(1), param(2)]))vec![param(1), param(2)], param(0)),
695 sym::ptr_metadata => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(1)),
696
697 sym::ub_checks | sym::overflow_checks => (0, 0, Vec::new(), tcx.types.bool),
698
699 sym::contract_check_requires => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], tcx.types.unit),
701 sym::contract_check_ensures => {
702 (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_option(tcx, param(0)), param(1)]))vec![Ty::new_option(tcx, param(0)), param(1)], param(1))
703 }
704
705 sym::simd_eq | sym::simd_ne | sym::simd_lt | sym::simd_le | sym::simd_gt | sym::simd_ge => {
706 (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(1))
707 }
708 sym::simd_add
709 | sym::simd_sub
710 | sym::simd_mul
711 | sym::simd_rem
712 | sym::simd_div
713 | sym::simd_shl
714 | sym::simd_shr
715 | sym::simd_and
716 | sym::simd_or
717 | sym::simd_xor
718 | sym::simd_minimum_number_nsz
719 | sym::simd_maximum_number_nsz
720 | sym::simd_saturating_add
721 | sym::simd_saturating_sub
722 | sym::simd_carryless_mul => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(0)),
723 sym::simd_arith_offset => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1)]))vec![param(0), param(1)], param(0)),
724 sym::simd_neg
725 | sym::simd_bswap
726 | sym::simd_bitreverse
727 | sym::simd_ctlz
728 | sym::simd_cttz
729 | sym::simd_ctpop
730 | sym::simd_fsqrt
731 | sym::simd_fsin
732 | sym::simd_fcos
733 | sym::simd_fexp
734 | sym::simd_fexp2
735 | sym::simd_flog2
736 | sym::simd_flog10
737 | sym::simd_flog
738 | sym::simd_fabs
739 | sym::simd_ceil
740 | sym::simd_floor
741 | sym::simd_round
742 | sym::simd_round_ties_even
743 | sym::simd_trunc => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(0)),
744 sym::simd_fma | sym::simd_relaxed_fma | sym::simd_funnel_shl | sym::simd_funnel_shr => {
745 (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0), param(0)]))vec![param(0), param(0), param(0)], param(0))
746 }
747 sym::simd_gather => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(0)),
748 sym::simd_masked_load => (3, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(2)),
749 sym::simd_masked_store => (3, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], tcx.types.unit),
750 sym::simd_scatter => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], tcx.types.unit),
751 sym::simd_insert | sym::simd_insert_dyn => {
752 (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), tcx.types.u32, param(1)]))vec![param(0), tcx.types.u32, param(1)], param(0))
753 }
754 sym::simd_extract | sym::simd_extract_dyn => {
755 (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), tcx.types.u32]))vec![param(0), tcx.types.u32], param(1))
756 }
757 sym::simd_splat => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(1)]))vec![param(1)], param(0)),
758 sym::simd_cast
759 | sym::simd_as
760 | sym::simd_cast_ptr
761 | sym::simd_expose_provenance
762 | sym::simd_with_exposed_provenance => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(1)),
763 sym::simd_bitmask => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(1)),
764 sym::simd_select | sym::simd_select_bitmask => {
765 (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1), param(1)]))vec![param(0), param(1), param(1)], param(1))
766 }
767 sym::simd_reduce_all | sym::simd_reduce_any => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], tcx.types.bool),
768 sym::simd_reduce_add_ordered | sym::simd_reduce_mul_ordered => {
769 (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1)]))vec![param(0), param(1)], param(1))
770 }
771 sym::simd_reduce_add_unordered
772 | sym::simd_reduce_mul_unordered
773 | sym::simd_reduce_and
774 | sym::simd_reduce_or
775 | sym::simd_reduce_xor
776 | sym::simd_reduce_min
777 | sym::simd_reduce_max => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(1)),
778 sym::simd_shuffle => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0), param(1)]))vec![param(0), param(0), param(1)], param(2)),
779 sym::simd_shuffle_const_generic => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(1)),
780
781 sym::sve_cast => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(1)),
782 sym::sve_tuple_create2 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0)]))vec![param(0), param(0)], param(1)),
783 sym::sve_tuple_create3 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0), param(0)]))vec![param(0), param(0), param(0)], param(1)),
784 sym::sve_tuple_create4 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(0), param(0), param(0)]))vec![param(0), param(0), param(0), param(0)], param(1)),
785 sym::sve_tuple_get => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0)]))vec![param(0)], param(1)),
786 sym::sve_tuple_set => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[param(0), param(1)]))vec![param(0), param(1)], param(0)),
787
788 sym::atomic_cxchg | sym::atomic_cxchgweak => (
789 1,
790 2,
791 ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), param(0), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0), param(0)],
792 Ty::new_tup(tcx, &[param(0), tcx.types.bool]),
793 ),
794 sym::atomic_load => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0)),
795 sym::atomic_store => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit),
796
797 sym::atomic_xchg
798 | sym::atomic_max
799 | sym::atomic_min
800 | sym::atomic_umax
801 | sym::atomic_umin => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], param(0)),
802 sym::atomic_xadd
803 | sym::atomic_xsub
804 | sym::atomic_and
805 | sym::atomic_nand
806 | sym::atomic_or
807 | sym::atomic_xor => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
[Ty::new_mut_ptr(tcx, param(0)), param(1)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(1)], param(0)),
808 sym::atomic_fence | sym::atomic_singlethreadfence => (0, 1, Vec::new(), tcx.types.unit),
809
810 sym::return_address => (0, 0, ::alloc::vec::Vec::new()vec![], Ty::new_imm_ptr(tcx, tcx.types.unit)),
811
812 other => {
813 tcx.dcx().emit_err(UnrecognizedIntrinsicFunction { span, name: other });
814 return;
815 }
816 };
817 let sig = tcx.mk_fn_sig_rust_abi(inputs, output, safety);
818 let sig = ty::Binder::bind_with_vars(sig, bound_vars);
819 equate_intrinsic_type(tcx, span, intrinsic_id, n_tps, n_lts, n_cts, sig)
820}