Struct cranelift_codegen::ir::AbiParam [−][src]
pub struct AbiParam {
pub value_type: Type,
pub purpose: ArgumentPurpose,
pub extension: ArgumentExtension,
pub location: ArgumentLoc,
}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: Type
Type of the argument value.
purpose: ArgumentPurpose
Special purpose of argument, or Normal.
extension: ArgumentExtension
Method for extending argument to a full register.
location: ArgumentLoc
ABI-specific location of this argument, or Unassigned for arguments that have not yet
been legalized.
Methods
impl AbiParam[src]
impl AbiParampub fn new(vt: Type) -> Self[src]
pub fn new(vt: Type) -> SelfCreate a parameter with default flags.
pub fn special(vt: Type, purpose: ArgumentPurpose) -> Self[src]
pub fn special(vt: Type, purpose: ArgumentPurpose) -> SelfCreate 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]
pub fn special_reg(vt: Type, purpose: ArgumentPurpose, regunit: RegUnit) -> SelfCreate a parameter for a special-purpose register.
pub fn uext(self) -> Self[src]
pub fn uext(self) -> SelfConvert self to a parameter with the uext flag set.
pub fn sext(self) -> Self[src]
pub fn sext(self) -> SelfConvert 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]
pub fn display<'a, R: Into<Option<&'a RegInfo>>>(
&'a self,
regs: R
) -> DisplayAbiParam<'a>Return an object that can display self with correct register names.
Trait Implementations
impl Copy for AbiParam[src]
impl Copy for AbiParamimpl Clone for AbiParam[src]
impl Clone for AbiParamfn clone(&self) -> AbiParam[src]
fn clone(&self) -> AbiParamReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for AbiParam[src]
impl Debug for AbiParamfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for AbiParam[src]
impl PartialEq for AbiParamfn eq(&self, other: &AbiParam) -> bool[src]
fn eq(&self, other: &AbiParam) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &AbiParam) -> bool[src]
fn ne(&self, other: &AbiParam) -> boolThis method tests for !=.
impl Eq for AbiParam[src]
impl Eq for AbiParamimpl Hash for AbiParam[src]
impl Hash for AbiParamfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for AbiParam[src]
impl Display for AbiParam