Struct cranelift_codegen::ir::AbiParam
source · pub struct AbiParam {
pub value_type: Type,
pub purpose: ArgumentPurpose,
pub extension: ArgumentExtension,
pub location: ArgumentLoc,
}
Expand description
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.
Implementations§
source§impl AbiParam
impl AbiParam
sourcepub fn special(vt: Type, purpose: ArgumentPurpose) -> Self
pub fn special(vt: Type, purpose: ArgumentPurpose) -> Self
Create a special-purpose parameter that is not (yet) bound to a specific register.
sourcepub fn special_reg(vt: Type, purpose: ArgumentPurpose, regunit: RegUnit) -> Self
pub fn special_reg(vt: Type, purpose: ArgumentPurpose, regunit: RegUnit) -> Self
Create a parameter for a special-purpose register.