Enum cranelift_codegen::ir::stackslot::StackSlotKind [−][src]
pub enum StackSlotKind { SpillSlot, ExplicitSlot, IncomingArg, OutgoingArg, StructReturnSlot, EmergencySlot, }
Expand description
The kind of a stack slot.
Variants
A spill slot. This is a stack slot created by the register allocator.
An explicit stack slot. This is a chunk of stack memory for use by the stack_load
and stack_store
instructions.
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.
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.
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.
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
impl Clone for StackSlotKind
[src]
impl Clone for StackSlotKind
[src]fn clone(&self) -> StackSlotKind
[src]
fn clone(&self) -> StackSlotKind
[src]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)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StackSlotKind
[src]
impl Debug for StackSlotKind
[src]impl Display for StackSlotKind
[src]
impl Display for StackSlotKind
[src]impl FromStr for StackSlotKind
[src]
impl FromStr for StackSlotKind
[src]impl PartialEq<StackSlotKind> for StackSlotKind
[src]
impl PartialEq<StackSlotKind> for StackSlotKind
[src]impl Copy for StackSlotKind
[src]
impl Eq for StackSlotKind
[src]
impl StructuralEq for StackSlotKind
[src]
impl StructuralPartialEq for StackSlotKind
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more