Enum cranelift_codegen::ir::ValueLoc
source · Expand description
Value location.
Variants§
Unassigned
This value has not been assigned to a location yet.
Reg(RegUnit)
Value is assigned to a register.
Stack(StackSlot)
Value is assigned to a stack slot.
Implementations§
source§impl ValueLoc
impl ValueLoc
sourcepub fn is_assigned(self) -> bool
pub fn is_assigned(self) -> bool
Is this an assigned location? (That is, not Unassigned
).
sourcepub fn unwrap_reg(self) -> RegUnit
pub fn unwrap_reg(self) -> RegUnit
Get the register unit of this location, or panic.
sourcepub fn unwrap_stack(self) -> StackSlot
pub fn unwrap_stack(self) -> StackSlot
Get the stack slot of this location, or panic.