Struct cranelift_codegen::machinst::abi_impl::ABICallerImpl [−][src]
ABI object for a callsite.
Implementations
impl<M: ABIMachineSpec> ABICallerImpl<M>
[src]
pub fn from_func(
sig: &Signature,
extname: &ExternalName,
dist: RelocDistance,
caller_conv: CallConv
) -> CodegenResult<ABICallerImpl<M>>
[src]
sig: &Signature,
extname: &ExternalName,
dist: RelocDistance,
caller_conv: CallConv
) -> CodegenResult<ABICallerImpl<M>>
Create a callsite ABI object for a call directly to the specified function.
pub fn from_ptr(
sig: &Signature,
ptr: Reg,
opcode: Opcode,
caller_conv: CallConv
) -> CodegenResult<ABICallerImpl<M>>
[src]
sig: &Signature,
ptr: Reg,
opcode: Opcode,
caller_conv: CallConv
) -> CodegenResult<ABICallerImpl<M>>
Create a callsite ABI object for a call to a function pointer with the given signature.
Trait Implementations
impl<M: ABIMachineSpec> ABICaller for ABICallerImpl<M>
[src]
type I = M::I
The instruction type for the ISA associated with this ABI.
fn num_args(&self) -> usize
[src]
fn accumulate_outgoing_args_size<C: LowerCtx<I = Self::I>>(&self, ctx: &mut C)
[src]
fn emit_stack_pre_adjust<C: LowerCtx<I = Self::I>>(&self, ctx: &mut C)
[src]
fn emit_stack_post_adjust<C: LowerCtx<I = Self::I>>(&self, ctx: &mut C)
[src]
fn emit_copy_regs_to_arg<C: LowerCtx<I = Self::I>>(
&self,
ctx: &mut C,
idx: usize,
from_regs: ValueRegs<Reg>
)
[src]
&self,
ctx: &mut C,
idx: usize,
from_regs: ValueRegs<Reg>
)
fn emit_copy_retval_to_regs<C: LowerCtx<I = Self::I>>(
&self,
ctx: &mut C,
idx: usize,
into_regs: ValueRegs<Writable<Reg>>
)
[src]
&self,
ctx: &mut C,
idx: usize,
into_regs: ValueRegs<Writable<Reg>>
)
fn emit_call<C: LowerCtx<I = Self::I>>(&mut self, ctx: &mut C)
[src]
Auto Trait Implementations
impl<M> RefUnwindSafe for ABICallerImpl<M> where
M: RefUnwindSafe,
M: RefUnwindSafe,
impl<M> Send for ABICallerImpl<M> where
M: Send,
M: Send,
impl<M> Sync for ABICallerImpl<M> where
M: Sync,
M: Sync,
impl<M> Unpin for ABICallerImpl<M> where
M: Unpin,
M: Unpin,
impl<M> UnwindSafe for ABICallerImpl<M> where
M: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,