Struct cranelift_codegen::ir::stackslot::StackSlotData [−][src]
pub struct StackSlotData {
pub kind: StackSlotKind,
pub size: StackSize,
pub offset: Option<StackOffset>,
}Contents of a stack slot.
Fields
kind: StackSlotKind
The kind of stack slot.
size: StackSize
Size of stack slot in bytes.
offset: Option<StackOffset>
Offset of stack slot relative to the stack pointer in the caller.
On x86, the base address is the stack pointer before the return address was pushed. On RISC ISAs, the base address is the value of the stack pointer on entry to the function.
For OutgoingArg stack slots, the offset is relative to the current function's stack
pointer immediately before the call.
Methods
impl StackSlotData[src]
impl StackSlotDatapub fn new(kind: StackSlotKind, size: StackSize) -> Self[src]
pub fn new(kind: StackSlotKind, size: StackSize) -> SelfCreate a stack slot with the specified byte size.
pub fn alignment(&self, max_align: StackSize) -> StackSize[src]
pub fn alignment(&self, max_align: StackSize) -> StackSizeGet the alignment in bytes of this stack slot given the stack pointer alignment.
Trait Implementations
impl Clone for StackSlotData[src]
impl Clone for StackSlotDatafn clone(&self) -> StackSlotData[src]
fn clone(&self) -> StackSlotDataReturns 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 StackSlotData[src]
impl Debug for StackSlotDatafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for StackSlotData[src]
impl Display for StackSlotDataAuto Trait Implementations
impl Send for StackSlotData
impl Send for StackSlotDataimpl Sync for StackSlotData
impl Sync for StackSlotData