1 use crate::abi
::call
::{ArgAbi, FnAbi}
;
2 use crate::abi
::{HasDataLayout, TyAbiInterface}
;
4 fn classify_ret
<'a
, Ty
, C
>(_cx
: &C
, ret
: &mut ArgAbi
<'a
, Ty
>)
6 Ty
: TyAbiInterface
<'a
, C
> + Copy
,
9 ret
.extend_integer_width_to(32);
12 fn classify_arg
<'a
, Ty
, C
>(_cx
: &C
, arg
: &mut ArgAbi
<'a
, Ty
>)
14 Ty
: TyAbiInterface
<'a
, C
> + Copy
,
17 arg
.extend_integer_width_to(32);
20 pub fn compute_abi_info
<'a
, Ty
, C
>(cx
: &C
, fn_abi
: &mut FnAbi
<'a
, Ty
>)
22 Ty
: TyAbiInterface
<'a
, C
> + Copy
,
25 if !fn_abi
.ret
.is_ignore() {
26 classify_ret(cx
, &mut fn_abi
.ret
);
29 for arg
in &mut fn_abi
.args
{
33 classify_arg(cx
, arg
);