Struct cranelift_codegen::ir::stackslot::StackSlotData
source · pub struct StackSlotData {
pub kind: StackSlotKind,
pub size: StackSize,
pub offset: Option<StackOffset>,
}
Expand description
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.
Implementations§
Trait Implementations§
source§impl Clone for StackSlotData
impl Clone for StackSlotData
source§fn clone(&self) -> StackSlotData
fn clone(&self) -> StackSlotData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more