Struct cretonne_codegen::ir::Signature [] [src]

pub struct Signature {
    pub params: Vec<AbiParam>,
    pub returns: Vec<AbiParam>,
    pub call_conv: CallConv,
    pub argument_bytes: Option<u32>,
}

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

The arguments passed to the function.

Values returned from the function.

Calling convention.

When the signature has been legalized to a specific ISA, this holds the size of the argument array on the stack. Before legalization, this is None.

This can be computed from the legalized params array as the maximum (offset plus byte size) of the ArgumentLoc::Stack(offset) argument.

Methods

impl Signature
[src]

[src]

Create a new blank signature.

[src]

Clear the signature so it is identical to a fresh one returned by new().

[src]

Compute the size of the stack arguments and mark signature as legalized.

Even if there are no stack arguments, this will set params to Some(0) instead of None. This indicates that the signature has been legalized.

[src]

Return an object that can display self with correct register names.

[src]

Find the index of a presumed unique special-purpose parameter.

Trait Implementations

impl Clone for Signature
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Signature
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Signature
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Signature
[src]

impl Hash for Signature
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Signature
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Signature

impl Sync for Signature