Skip to main content

rustc_hir_analysis/check/
intrinsic.rs

1//! Type-checking for the `#[rustc_intrinsic]` intrinsics that the compiler exposes.
2
3use 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    // the host effect param should be invisible as it shouldn't matter
45    // whether effects is enabled for the intrinsic provider crate.
46    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
59/// Returns the unsafety of the given intrinsic.
60fn intrinsic_operation_unsafety(tcx: TyCtxt<'_>, intrinsic_id: LocalDefId) -> hir::Safety {
61    let is_in_list = match tcx.item_name(intrinsic_id) {
62        // When adding a new intrinsic to this list,
63        // it's usually worth updating that intrinsic's documentation
64        // to note that it's safe to call, since
65        // safe extern fns are otherwise unprecedented.
66
67        // tidy-alphabetical-start
68        | 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::floorf16
118        | sym::floorf32
119        | sym::floorf64
120        | sym::floorf128
121        | sym::fmaf16
122        | sym::fmaf32
123        | sym::fmaf64
124        | sym::fmaf128
125        | sym::fmul_algebraic
126        | sym::fmuladdf16
127        | sym::fmuladdf32
128        | sym::fmuladdf64
129        | sym::fmuladdf128
130        | sym::forget
131        | sym::frem_algebraic
132        | sym::fsub_algebraic
133        | sym::gpu_launch_sized_workgroup_mem
134        | sym::is_val_statically_known
135        | sym::log2f16
136        | sym::log2f32
137        | sym::log2f64
138        | sym::log2f128
139        | sym::log10f16
140        | sym::log10f32
141        | sym::log10f64
142        | sym::log10f128
143        | sym::logf16
144        | sym::logf32
145        | sym::logf64
146        | sym::logf128
147        | sym::maximum_number_nsz_f16
148        | sym::maximum_number_nsz_f32
149        | sym::maximum_number_nsz_f64
150        | sym::maximum_number_nsz_f128
151        | sym::maximumf16
152        | sym::maximumf32
153        | sym::maximumf64
154        | sym::maximumf128
155        | sym::minimum_number_nsz_f16
156        | sym::minimum_number_nsz_f32
157        | sym::minimum_number_nsz_f64
158        | sym::minimum_number_nsz_f128
159        | sym::minimumf16
160        | sym::minimumf32
161        | sym::minimumf64
162        | sym::minimumf128
163        | sym::mul_with_overflow
164        | sym::needs_drop
165        | sym::offload
166        | sym::offset_of
167        | sym::overflow_checks
168        | sym::powf16
169        | sym::powf32
170        | sym::powf64
171        | sym::powf128
172        | sym::powif16
173        | sym::powif32
174        | sym::powif64
175        | sym::powif128
176        | sym::prefetch_read_data
177        | sym::prefetch_read_instruction
178        | sym::prefetch_write_data
179        | sym::prefetch_write_instruction
180        | sym::ptr_guaranteed_cmp
181        | sym::ptr_mask
182        | sym::ptr_metadata
183        | sym::return_address
184        | sym::rotate_left
185        | sym::rotate_right
186        | sym::round_ties_even_f16
187        | sym::round_ties_even_f32
188        | sym::round_ties_even_f64
189        | sym::round_ties_even_f128
190        | sym::roundf16
191        | sym::roundf32
192        | sym::roundf64
193        | sym::roundf128
194        | sym::rustc_peek
195        | sym::saturating_add
196        | sym::saturating_sub
197        | sym::select_unpredictable
198        | sym::sinf16
199        | sym::sinf32
200        | sym::sinf64
201        | sym::sinf128
202        | sym::size_of
203        | sym::size_of_type_id
204        | sym::sqrtf16
205        | sym::sqrtf32
206        | sym::sqrtf64
207        | sym::sqrtf128
208        | sym::sub_with_overflow
209        | sym::three_way_compare
210        | sym::truncf16
211        | sym::truncf32
212        | sym::truncf64
213        | sym::truncf128
214        | sym::type_id
215        | sym::type_id_eq
216        | sym::type_id_vtable
217        | sym::type_name
218        | sym::type_of
219        | sym::ub_checks
220        | sym::va_copy
221        | sym::variant_count
222        | sym::wrapping_add
223        | sym::wrapping_mul
224        | sym::wrapping_sub
225        | sym::write_box_via_move
226        // tidy-alphabetical-end
227        => hir::Safety::Safe,
228        _ => hir::Safety::Unsafe,
229    };
230
231    if tcx.fn_sig(intrinsic_id).skip_binder().safety() != is_in_list {
232        tcx.dcx().struct_span_err(
233            tcx.def_span(intrinsic_id),
234            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!(
235                "intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `{}`",
236                tcx.item_name(intrinsic_id)
237            )
238        )).emit();
239    }
240
241    is_in_list
242}
243
244/// Remember to add all intrinsics here, in `compiler/rustc_codegen_llvm/src/intrinsic.rs`,
245/// and in `library/core/src/intrinsics.rs`.
246pub(crate) fn check_intrinsic_type(
247    tcx: TyCtxt<'_>,
248    intrinsic_id: LocalDefId,
249    span: Span,
250    intrinsic_name: Symbol,
251) {
252    let generics = tcx.generics_of(intrinsic_id);
253    let param = |n| {
254        if let &ty::GenericParamDef { name, kind: ty::GenericParamDefKind::Type { .. }, .. } =
255            generics.param_at(n as usize, tcx)
256        {
257            Ty::new_param(tcx, n, name)
258        } else {
259            Ty::new_error_with_message(tcx, span, "expected param")
260        }
261    };
262
263    let bound_vars = tcx.mk_bound_variable_kinds(&[
264        ty::BoundVariableKind::Region(ty::BoundRegionKind::Anon),
265        ty::BoundVariableKind::Region(ty::BoundRegionKind::Anon),
266        ty::BoundVariableKind::Region(ty::BoundRegionKind::ClosureEnv),
267    ]);
268    let mk_va_list_ty = |mutbl| {
269        let did = tcx.require_lang_item(LangItem::VaList, span);
270        let region = ty::Region::new_bound(
271            tcx,
272            ty::INNERMOST,
273            ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon },
274        );
275        let env_region = ty::Region::new_bound(
276            tcx,
277            ty::INNERMOST,
278            ty::BoundRegion {
279                var: ty::BoundVar::from_u32(2),
280                kind: ty::BoundRegionKind::ClosureEnv,
281            },
282        );
283        let va_list_ty = tcx.type_of(did).instantiate(tcx, &[region.into()]).skip_norm_wip();
284        (Ty::new_ref(tcx, env_region, va_list_ty, mutbl), va_list_ty)
285    };
286    let type_id_ty = || tcx.type_of(tcx.lang_items().type_id().unwrap()).no_bound_vars().unwrap();
287
288    let safety = intrinsic_operation_unsafety(tcx, intrinsic_id);
289    let n_lts = 0;
290    let (n_tps, n_cts, inputs, output) = match intrinsic_name {
291        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)),
292        sym::abort => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.never),
293        sym::amdgpu_dispatch_ptr => (0, 0, ::alloc::vec::Vec::new()vec![], Ty::new_imm_ptr(tcx, tcx.types.unit)),
294        sym::unreachable => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.never),
295        sym::breakpoint => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit),
296        sym::size_of | sym::align_of | sym::variant_count => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.usize),
297        sym::size_of_val | sym::align_of_val => {
298            (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)
299        }
300        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)),
301        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),
302        sym::field_offset => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.usize),
303        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)),
304        sym::caller_location => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.caller_location_ty()),
305        sym::gpu_launch_sized_workgroup_mem => (1, 0, ::alloc::vec::Vec::new()vec![], Ty::new_mut_ptr(tcx, param(0))),
306        sym::assert_inhabited | sym::assert_zero_valid | sym::assert_mem_uninitialized_valid => {
307            (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit)
308        }
309        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),
310        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)),
311        sym::prefetch_read_data
312        | sym::prefetch_write_data
313        | sym::prefetch_read_instruction
314        | sym::prefetch_write_instruction => {
315            (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)
316        }
317        sym::needs_drop => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.bool),
318
319        sym::type_name => (1, 0, ::alloc::vec::Vec::new()vec![], Ty::new_static_str(tcx)),
320        sym::type_id => (1, 0, ::alloc::vec::Vec::new()vec![], type_id_ty()),
321        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),
322        sym::type_id_vtable => {
323            let dyn_metadata = tcx.require_lang_item(LangItem::DynMetadata, span);
324            let dyn_metadata_adt_ref = tcx.adt_def(dyn_metadata);
325            let dyn_metadata_args =
326                tcx.mk_args(&[Ty::new_ptr(tcx, tcx.types.unit, ty::Mutability::Not).into()]);
327            let dyn_ty = Ty::new_adt(tcx, dyn_metadata_adt_ref, dyn_metadata_args);
328
329            let option_did = tcx.require_lang_item(LangItem::Option, span);
330            let option_adt_ref = tcx.adt_def(option_did);
331            let option_args = tcx.mk_args(&[dyn_ty.into()]);
332            let ret_ty = Ty::new_adt(tcx, option_adt_ref, option_args);
333
334            (0, 0, ::alloc::vec::from_elem(type_id_ty(), 2)vec![type_id_ty(); 2], ret_ty)
335        }
336        sym::type_of => (
337            0,
338            0,
339            ::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()],
340            tcx.type_of(tcx.lang_items().type_struct().unwrap()).no_bound_vars().unwrap(),
341        ),
342        sym::offload => (
343            3,
344            0,
345            ::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)), param(1)]))vec![
346                param(0),
347                Ty::new_array_with_const_len(tcx, tcx.types.u32, Const::from_target_usize(tcx, 3)),
348                Ty::new_array_with_const_len(tcx, tcx.types.u32, Const::from_target_usize(tcx, 3)),
349                param(1),
350            ],
351            param(2),
352        ),
353        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)),
354        sym::arith_offset => (
355            1,
356            0,
357            ::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],
358            Ty::new_imm_ptr(tcx, param(0)),
359        ),
360        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)),
361        sym::ptr_mask => (
362            1,
363            0,
364            ::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],
365            Ty::new_imm_ptr(tcx, param(0)),
366        ),
367
368        sym::copy | sym::copy_nonoverlapping => (
369            1,
370            0,
371            ::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],
372            tcx.types.unit,
373        ),
374        sym::volatile_copy_memory | sym::volatile_copy_nonoverlapping_memory => (
375            1,
376            0,
377            ::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],
378            tcx.types.unit,
379        ),
380        sym::compare_bytes => {
381            let byte_ptr = Ty::new_imm_ptr(tcx, tcx.types.u8);
382            (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)
383        }
384        sym::write_bytes | sym::volatile_set_memory => (
385            1,
386            0,
387            ::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],
388            tcx.types.unit,
389        ),
390
391        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),
392        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),
393        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),
394        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),
395
396        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),
397        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),
398        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),
399        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),
400
401        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),
402        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),
403        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),
404        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),
405
406        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),
407        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),
408        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),
409        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),
410
411        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),
412        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),
413        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),
414        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),
415
416        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),
417        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),
418        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),
419        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),
420
421        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),
422        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),
423        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),
424        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),
425
426        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),
427        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),
428        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),
429        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),
430
431        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),
432        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),
433        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),
434        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),
435
436        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),
437        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),
438        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),
439        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),
440
441        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),
442        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),
443        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),
444        sym::fmaf128 => {
445            (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)
446        }
447
448        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),
449        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),
450        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),
451        sym::fmuladdf128 => {
452            (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)
453        }
454
455        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)),
456
457        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),
458        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),
459        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),
460        sym::minimum_number_nsz_f128 => {
461            (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)
462        }
463
464        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),
465        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),
466        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),
467        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),
468
469        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),
470        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),
471        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),
472        sym::maximum_number_nsz_f128 => {
473            (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)
474        }
475
476        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),
477        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),
478        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),
479        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),
480
481        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),
482        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),
483        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),
484        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),
485
486        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),
487        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),
488        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),
489        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),
490
491        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),
492        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),
493        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),
494        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),
495
496        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),
497        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),
498        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),
499        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),
500
501        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),
502        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),
503        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),
504        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),
505
506        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),
507        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),
508        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),
509        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),
510
511        sym::volatile_load | sym::unaligned_volatile_load => {
512            (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))
513        }
514        sym::volatile_store | sym::unaligned_volatile_store => {
515            (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)
516        }
517
518        sym::ctpop | sym::ctlz | sym::ctlz_nonzero | sym::cttz | sym::cttz_nonzero => {
519            (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)
520        }
521
522        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)),
523
524        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)),
525
526        sym::add_with_overflow | sym::sub_with_overflow | sym::mul_with_overflow => {
527            (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]))
528        }
529
530        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)])),
531
532        sym::ptr_guaranteed_cmp => (
533            1,
534            0,
535            ::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))],
536            tcx.types.u8,
537        ),
538
539        sym::const_allocate => {
540            (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))
541        }
542        sym::const_deallocate => (
543            0,
544            0,
545            ::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],
546            tcx.types.unit,
547        ),
548        sym::const_make_global => {
549            (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))
550        }
551
552        sym::ptr_offset_from => (
553            1,
554            0,
555            ::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))],
556            tcx.types.isize,
557        ),
558        sym::ptr_offset_from_unsigned => (
559            1,
560            0,
561            ::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))],
562            tcx.types.usize,
563        ),
564        sym::unchecked_div | sym::unchecked_rem | sym::exact_div | sym::disjoint_bitor => {
565            (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))
566        }
567        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)),
568        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)),
569        sym::unchecked_funnel_shl | sym::unchecked_funnel_shr => {
570            (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))
571        }
572        sym::unchecked_add | sym::unchecked_sub | sym::unchecked_mul => {
573            (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))
574        }
575        sym::wrapping_add | sym::wrapping_sub | sym::wrapping_mul => {
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::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)),
579        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)),
580        sym::fadd_fast | sym::fsub_fast | sym::fmul_fast | sym::fdiv_fast | sym::frem_fast => {
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)]))vec![param(0), param(0)], param(0))
582        }
583        sym::fadd_algebraic
584        | sym::fsub_algebraic
585        | sym::fmul_algebraic
586        | sym::fdiv_algebraic
587        | 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)),
588        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)),
589
590        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),
591        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)),
592        sym::cold_path => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit),
593
594        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)),
595        sym::write_via_move => {
596            (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)
597        }
598        sym::write_box_via_move => {
599            let t = param(0);
600            let maybe_uninit_t = Ty::new_maybe_uninit(tcx, t);
601            let box_mu_t = Ty::new_box(tcx, maybe_uninit_t);
602
603            (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)
604        }
605
606        sym::typed_swap_nonoverlapping => {
607            (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)
608        }
609
610        sym::discriminant_value => {
611            let assoc_items = tcx.associated_item_def_ids(
612                tcx.require_lang_item(hir::LangItem::DiscriminantKind, span),
613            );
614            let discriminant_def_id = assoc_items[0];
615
616            let br = ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon };
617            (
618                1,
619                0,
620                ::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))],
621                Ty::new_projection_from_args(
622                    tcx,
623                    discriminant_def_id,
624                    tcx.mk_args(&[param(0).into()]),
625                ),
626            )
627        }
628
629        sym::catch_unwind => {
630            let mut_u8 = Ty::new_mut_ptr(tcx, tcx.types.u8);
631            let try_fn_ty =
632                ty::Binder::dummy(tcx.mk_fn_sig_safe_rust_abi([mut_u8], tcx.types.unit));
633            let catch_fn_ty =
634                ty::Binder::dummy(tcx.mk_fn_sig_safe_rust_abi([mut_u8, mut_u8], tcx.types.unit));
635            (
636                0,
637                0,
638                ::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_u8,
                Ty::new_fn_ptr(tcx, catch_fn_ty)]))vec![Ty::new_fn_ptr(tcx, try_fn_ty), mut_u8, Ty::new_fn_ptr(tcx, catch_fn_ty)],
639                tcx.types.i32,
640            )
641        }
642
643        sym::va_copy => {
644            let (va_list_ref_ty, va_list_ty) = mk_va_list_ty(hir::Mutability::Not);
645            (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)
646        }
647
648        sym::va_start | sym::va_end => {
649            (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)
650        }
651
652        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)),
653
654        sym::nontemporal_store => {
655            (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)
656        }
657
658        sym::raw_eq => {
659            let br = ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon };
660            let param_ty_lhs =
661                Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0));
662            let br =
663                ty::BoundRegion { var: ty::BoundVar::from_u32(1), kind: ty::BoundRegionKind::Anon };
664            let param_ty_rhs =
665                Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0));
666            (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)
667        }
668
669        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)),
670
671        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),
672
673        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)),
674
675        sym::vtable_size | sym::vtable_align => {
676            (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)
677        }
678
679        // This type check is not particularly useful, but the `where` bounds
680        // on the definition in `core` do the heavy lifting for checking it.
681        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)),
682        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)),
683
684        sym::ub_checks | sym::overflow_checks => (0, 0, Vec::new(), tcx.types.bool),
685
686        // contract_check_requires::<C>(C) -> bool, where C: impl Fn() -> bool
687        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),
688        sym::contract_check_ensures => {
689            (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))
690        }
691
692        sym::simd_eq | sym::simd_ne | sym::simd_lt | sym::simd_le | sym::simd_gt | sym::simd_ge => {
693            (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))
694        }
695        sym::simd_add
696        | sym::simd_sub
697        | sym::simd_mul
698        | sym::simd_rem
699        | sym::simd_div
700        | sym::simd_shl
701        | sym::simd_shr
702        | sym::simd_and
703        | sym::simd_or
704        | sym::simd_xor
705        | sym::simd_minimum_number_nsz
706        | sym::simd_maximum_number_nsz
707        | sym::simd_saturating_add
708        | sym::simd_saturating_sub
709        | 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)),
710        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)),
711        sym::simd_neg
712        | sym::simd_bswap
713        | sym::simd_bitreverse
714        | sym::simd_ctlz
715        | sym::simd_cttz
716        | sym::simd_ctpop
717        | sym::simd_fsqrt
718        | sym::simd_fsin
719        | sym::simd_fcos
720        | sym::simd_fexp
721        | sym::simd_fexp2
722        | sym::simd_flog2
723        | sym::simd_flog10
724        | sym::simd_flog
725        | sym::simd_fabs
726        | sym::simd_ceil
727        | sym::simd_floor
728        | sym::simd_round
729        | sym::simd_round_ties_even
730        | 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)),
731        sym::simd_fma | sym::simd_relaxed_fma | sym::simd_funnel_shl | sym::simd_funnel_shr => {
732            (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))
733        }
734        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)),
735        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)),
736        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),
737        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),
738        sym::simd_insert | sym::simd_insert_dyn => {
739            (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))
740        }
741        sym::simd_extract | sym::simd_extract_dyn => {
742            (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))
743        }
744        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)),
745        sym::simd_cast
746        | sym::simd_as
747        | sym::simd_cast_ptr
748        | sym::simd_expose_provenance
749        | 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)),
750        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)),
751        sym::simd_select | sym::simd_select_bitmask => {
752            (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))
753        }
754        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),
755        sym::simd_reduce_add_ordered | sym::simd_reduce_mul_ordered => {
756            (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))
757        }
758        sym::simd_reduce_add_unordered
759        | sym::simd_reduce_mul_unordered
760        | sym::simd_reduce_and
761        | sym::simd_reduce_or
762        | sym::simd_reduce_xor
763        | sym::simd_reduce_min
764        | 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)),
765        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)),
766        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)),
767
768        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)),
769        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)),
770        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)),
771        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)),
772        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)),
773        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)),
774
775        sym::atomic_cxchg | sym::atomic_cxchgweak => (
776            1,
777            2,
778            ::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)],
779            Ty::new_tup(tcx, &[param(0), tcx.types.bool]),
780        ),
781        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)),
782        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),
783
784        sym::atomic_xchg
785        | sym::atomic_max
786        | sym::atomic_min
787        | sym::atomic_umax
788        | 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)),
789        sym::atomic_xadd
790        | sym::atomic_xsub
791        | sym::atomic_and
792        | sym::atomic_nand
793        | sym::atomic_or
794        | 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)),
795        sym::atomic_fence | sym::atomic_singlethreadfence => (0, 1, Vec::new(), tcx.types.unit),
796
797        sym::return_address => (0, 0, ::alloc::vec::Vec::new()vec![], Ty::new_imm_ptr(tcx, tcx.types.unit)),
798
799        other => {
800            tcx.dcx().emit_err(UnrecognizedIntrinsicFunction { span, name: other });
801            return;
802        }
803    };
804    let sig = tcx.mk_fn_sig_rust_abi(inputs, output, safety);
805    let sig = ty::Binder::bind_with_vars(sig, bound_vars);
806    equate_intrinsic_type(tcx, span, intrinsic_id, n_tps, n_lts, n_cts, sig)
807}