Enum cranelift_codegen::ir::stackslot::StackSlotKind [−][src]
pub enum StackSlotKind {
SpillSlot,
ExplicitSlot,
IncomingArg,
OutgoingArg,
EmergencySlot,
}The kind of a stack slot.
Variants
SpillSlotA spill slot. This is a stack slot created by the register allocator.
ExplicitSlotAn explicit stack slot. This is a chunk of stack memory for use by the stack_load
and stack_store instructions.
IncomingArgAn 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.
OutgoingArgAn 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.
EmergencySlotAn emergency spill slot.
Emergency slots are allocated late when the register's constraint solver needs extra space to shuffle registers around. The are only used briefly, and can be reused.
Trait Implementations
impl Clone for StackSlotKind[src]
impl Clone for StackSlotKindfn clone(&self) -> StackSlotKind[src]
fn clone(&self) -> StackSlotKindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for StackSlotKind[src]
impl Copy for StackSlotKindimpl Debug for StackSlotKind[src]
impl Debug for StackSlotKindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for StackSlotKind[src]
impl PartialEq for StackSlotKindfn eq(&self, other: &StackSlotKind) -> bool[src]
fn eq(&self, other: &StackSlotKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for StackSlotKind[src]
impl Eq for StackSlotKindimpl FromStr for StackSlotKind[src]
impl FromStr for StackSlotKindtype Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ()>[src]
fn from_str(s: &str) -> Result<Self, ()>Parses a string s to return a value of this type. Read more
impl Display for StackSlotKind[src]
impl Display for StackSlotKindAuto Trait Implementations
impl Send for StackSlotKind
impl Send for StackSlotKindimpl Sync for StackSlotKind
impl Sync for StackSlotKind