Struct cranelift_codegen::ir::Signature [−][src]
pub struct Signature {
pub params: Vec<AbiParam>,
pub returns: Vec<AbiParam>,
pub call_conv: CallConv,
}
Expand description
Function signature.
The function signature describes the types of formal parameters and return values along with other details that are needed to call a function correctly.
A signature can optionally include ISA-specific ABI information which specifies exactly how arguments and return values are passed.
Fields
params: Vec<AbiParam>
The arguments passed to the function.
returns: Vec<AbiParam>
Values returned from the function.
call_conv: CallConv
Calling convention.
Implementations
Clear the signature so it is identical to a fresh one returned by new()
.
Find the index of a presumed unique special-purpose parameter.
Find the index of a presumed unique special-purpose parameter.
Does this signature have a parameter whose ArgumentPurpose
is
purpose
?
Does this signature have a return whose ArgumentPurpose
is purpose
?
How many special parameters does this function have?
How many special returns does this function have?
Does this signature take an struct return pointer parameter?
Does this return more than one normal value? (Pre-struct return legalization)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl UnwindSafe for Signature
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.