Struct cretonne_codegen::ir::stackslot::StackSlotData [] [src]

pub struct StackSlotData {
    pub kind: StackSlotKind,
    pub size: StackSize,
    pub offset: Option<StackOffset>,
}

Contents of a stack slot.

Fields

The kind of stack slot.

Size of stack slot in bytes.

Offset of stack slot relative to the stack pointer in the caller.

On x86, the base address is the stack pointer before the return address was pushed. On RISC ISAs, the base address is the value of the stack pointer on entry to the function.

For OutgoingArg stack slots, the offset is relative to the current function's stack pointer immediately before the call.

Methods

impl StackSlotData
[src]

[src]

Create a stack slot with the specified byte size.

[src]

Get the alignment in bytes of this stack slot given the stack pointer alignment.

Trait Implementations

impl Clone for StackSlotData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for StackSlotData
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for StackSlotData
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for StackSlotData

impl Sync for StackSlotData