Enum cranelift_codegen::ir::stackslot::StackSlotKind [−][src]
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]
fn clone(&self) -> StackSlotKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StackSlotKind
[src]
impl Debug for StackSlotKind
[src]
impl<'de> Deserialize<'de> for StackSlotKind
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for StackSlotKind
[src]
impl Eq for StackSlotKind
[src]
impl FromStr for StackSlotKind
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ()>
[src]
impl PartialEq<StackSlotKind> for StackSlotKind
[src]
fn eq(&self, other: &StackSlotKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for StackSlotKind
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,