Enum cretonne_codegen::ir::stackslot::StackSlotKind [−][src]
pub enum StackSlotKind { SpillSlot, ExplicitSlot, IncomingArg, OutgoingArg, EmergencySlot, }
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. The are only used briefly, and can be reused.
Trait Implementations
impl Clone for StackSlotKind
[src]
impl Clone for StackSlotKind
fn clone(&self) -> StackSlotKind
[src]
fn clone(&self) -> StackSlotKind
Returns 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 StackSlotKind
impl Debug for StackSlotKind
[src]
impl Debug for StackSlotKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for StackSlotKind
[src]
impl PartialEq for StackSlotKind
fn eq(&self, other: &StackSlotKind) -> bool
[src]
fn eq(&self, other: &StackSlotKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for StackSlotKind
[src]
impl Eq for StackSlotKind
impl FromStr for StackSlotKind
[src]
impl FromStr for StackSlotKind
type 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 StackSlotKind
Auto Trait Implementations
impl Send for StackSlotKind
impl Send for StackSlotKind
impl Sync for StackSlotKind
impl Sync for StackSlotKind