Enum cranelift_codegen::ir::stackslot::StackSlotKind
source · [−]pub enum StackSlotKind {
SpillSlot,
ExplicitSlot,
IncomingArg,
OutgoingArg,
StructReturnSlot,
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.
StructReturnSlot
Space allocated in the caller’s frame for the callee’s return values that are passed out via return pointer.
If there are more return values than registers available for the callee’s calling convention, or the return value is larger than the available registers’ space, then we allocate stack space in this frame and pass a pointer to the callee, which then writes its return values into this space.
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
sourceimpl Clone for StackSlotKind
impl Clone for StackSlotKind
sourcefn clone(&self) -> StackSlotKind
fn clone(&self) -> StackSlotKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StackSlotKind
impl Debug for StackSlotKind
sourceimpl<'de> Deserialize<'de> for StackSlotKind
impl<'de> Deserialize<'de> for StackSlotKind
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for StackSlotKind
impl Display for StackSlotKind
sourceimpl FromStr for StackSlotKind
impl FromStr for StackSlotKind
sourceimpl PartialEq<StackSlotKind> for StackSlotKind
impl PartialEq<StackSlotKind> for StackSlotKind
sourceimpl Serialize for StackSlotKind
impl Serialize for StackSlotKind
impl Copy for StackSlotKind
impl Eq for StackSlotKind
impl StructuralEq for StackSlotKind
impl StructuralPartialEq for StackSlotKind
Auto Trait Implementations
impl RefUnwindSafe for StackSlotKind
impl Send for StackSlotKind
impl Sync for StackSlotKind
impl Unpin for StackSlotKind
impl UnwindSafe for StackSlotKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more