Enum cranelift_codegen::machinst::abi_impl::ABIArg [−][src]
A location for an argument or return value.
Variants
In a real register (or set of registers).
Fields of Reg
regs: ValueRegs<RealReg>Register(s) that hold this arg.
ty: TypeValue type of this arg.
extension: ArgumentExtensionShould this arg be zero- or sign-extended?
purpose: ArgumentPurposePurpose of this arg.
Arguments only: on stack, at given offset from SP at entry.
Fields of Stack
offset: i64Offset of this arg relative to the base of stack args.
ty: TypeValue type of this arg.
extension: ArgumentExtensionShould this arg be zero- or sign-extended?
purpose: ArgumentPurposePurpose of this arg.
Structure argument. We reserve stack space for it, but the CLIF-level semantics are a little weird: the value passed to the call instruction, and received in the corresponding block param, is a pointer. On the caller side, we memcpy the data from the passed-in pointer to the stack area; on the callee side, we compute a pointer to this stack area and provide that as the argument’s value.
Fields of StructArg
offset: i64Offset of this arg relative to base of stack args.
size: u64Size of this arg on the stack.
purpose: ArgumentPurposePurpose of this arg.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ABIArg
impl Send for ABIArg
impl Sync for ABIArg
impl Unpin for ABIArg
impl UnwindSafe for ABIArg
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,