Enum cranelift_codegen::ir::stackslot::StackSlotKind
source · pub enum StackSlotKind {
SpillSlot,
ExplicitSlot,
IncomingArg,
OutgoingArg,
EmergencySlot,
}
Expand description
The kind of a stack slot.
Variants§
SpillSlot
A spill slot. This is a stack slot created by the register allocator.
ExplicitSlot
An explicit stack slot. This is a chunk of stack memory for use by the stack_load
and stack_store
instructions.
IncomingArg
An incoming function argument.
If the current function has more arguments than fits in registers, the remaining arguments are passed on the stack by the caller. These incoming arguments are represented as SSA values assigned to incoming stack slots.
OutgoingArg
An outgoing function argument.
When preparing to call a function whose arguments don’t fit in registers, outgoing argument stack slots are used to represent individual arguments in the outgoing call frame. These stack slots are only valid while setting up a call.
EmergencySlot
An emergency spill slot.
Emergency slots are allocated late when the register’s constraint solver needs extra space to shuffle registers around. They are only used briefly, and can be reused.
Trait Implementations§
source§impl Clone for StackSlotKind
impl Clone for StackSlotKind
source§fn clone(&self) -> StackSlotKind
fn clone(&self) -> StackSlotKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more