[−][src]Struct cranelift_codegen::ir::AbiParam
Function parameter or return value descriptor.
This describes the value type being passed to or from a function along with flags that affect how the argument is passed.
Fields
value_type: TypeType of the argument value.
purpose: ArgumentPurposeSpecial purpose of argument, or Normal.
extension: ArgumentExtensionMethod for extending argument to a full register.
location: ArgumentLocABI-specific location of this argument, or Unassigned for arguments that have not yet
been legalized.
Methods
impl AbiParam[src]
pub fn new(vt: Type) -> Self[src]
Create a parameter with default flags.
pub fn special(vt: Type, purpose: ArgumentPurpose) -> Self[src]
Create a special-purpose parameter that is not (yet) bound to a specific register.
pub fn special_reg(vt: Type, purpose: ArgumentPurpose, regunit: RegUnit) -> Self[src]
Create a parameter for a special-purpose register.
pub fn uext(self) -> Self[src]
Convert self to a parameter with the uext flag set.
pub fn sext(self) -> Self[src]
Convert self to a parameter type with the sext flag set.
pub fn display<'a, R: Into<Option<&'a RegInfo>>>(
&'a self,
regs: R
) -> DisplayAbiParam<'a>[src]
&'a self,
regs: R
) -> DisplayAbiParam<'a>
Return an object that can display self with correct register names.
Trait Implementations
impl Clone for AbiParam[src]
fn clone(&self) -> AbiParam[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for AbiParam[src]
impl Debug for AbiParam[src]
impl Display for AbiParam[src]
impl PartialEq<AbiParam> for AbiParam[src]
impl Eq for AbiParam[src]
impl Hash for AbiParam[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,