[−][src]Struct cranelift_codegen::ir::Signature
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.
Methods
impl Signature
[src]
pub fn new(call_conv: CallConv) -> Self
[src]
Create a new blank signature.
pub fn clear(&mut self, call_conv: CallConv)
[src]
Clear the signature so it is identical to a fresh one returned by new()
.
pub fn display<'a, R: Into<Option<&'a RegInfo>>>(
&'a self,
regs: R
) -> DisplaySignature<'a>
[src]
&'a self,
regs: R
) -> DisplaySignature<'a>
Return an object that can display self
with correct register names.
pub fn special_param_index(&self, purpose: ArgumentPurpose) -> Option<usize>
[src]
Find the index of a presumed unique special-purpose parameter.
Trait Implementations
impl PartialEq<Signature> for Signature
[src]
impl Eq for Signature
[src]
impl Hash for Signature
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for Signature
[src]
impl Display for Signature
[src]
impl Clone for Signature
[src]
Auto Trait Implementations
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl RefUnwindSafe for Signature
impl UnwindSafe for Signature
Blanket Implementations
impl<T> From<T> for 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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> 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,