Struct cranelift_codegen::isa::StackRef [−][src]
pub struct StackRef {
pub base: StackBase,
pub offset: StackOffset,
}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.
Methods
impl StackRef[src]
impl StackRefpub fn masked(
ss: StackSlot,
mask: StackBaseMask,
frame: &StackSlots
) -> Option<Self>[src]
pub fn masked(
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]
pub fn sp(ss: StackSlot, frame: &StackSlots) -> SelfGet a reference to ss using the stack pointer as a base.
Trait Implementations
impl Clone for StackRef[src]
impl Clone for StackReffn clone(&self) -> StackRef[src]
fn clone(&self) -> StackRefReturns 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 Copy for StackRef[src]
impl Copy for StackRefimpl Debug for StackRef[src]
impl Debug for StackRef