Struct cranelift_codegen::isa::StackRef [−][src]
A method for referencing a stack slot in the current stack frame.
Stack slots are addressed with a constant offset from a base register. The base can be the stack pointer, the frame pointer, or (in the future) a zone register pointing to an inner zone of a large stack frame.
Fields
base: StackBase
The base register to use for addressing.
offset: StackOffset
Immediate offset from the base register to the first byte of the stack slot.
Implementations
impl StackRef
[src]
pub fn masked(
ss: StackSlot,
mask: StackBaseMask,
frame: &StackSlots
) -> Option<Self>
[src]
ss: StackSlot,
mask: StackBaseMask,
frame: &StackSlots
) -> Option<Self>
Get a reference to the stack slot ss
using one of the base pointers in mask
.
pub fn sp(ss: StackSlot, frame: &StackSlots) -> Self
[src]
Get a reference to ss
using the stack pointer as a base.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StackRef
impl Send for StackRef
impl Sync for StackRef
impl Unpin for StackRef
impl UnwindSafe for StackRef
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> 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, 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>,