Enum cranelift_codegen::ir::ValueLoc [−][src]
Value location.
Variants
UnassignedThis 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.
Methods
impl ValueLoc[src]
impl ValueLocpub fn is_assigned(&self) -> bool[src]
pub fn is_assigned(&self) -> boolIs this an assigned location? (That is, not Unassigned).
pub fn unwrap_reg(self) -> RegUnit[src]
pub fn unwrap_reg(self) -> RegUnitGet the register unit of this location, or panic.
pub fn unwrap_stack(self) -> StackSlot[src]
pub fn unwrap_stack(self) -> StackSlotGet the stack slot of this location, or panic.
pub fn display<'a, R: Into<Option<&'a RegInfo>>>(
self,
regs: R
) -> DisplayValueLoc<'a>[src]
pub fn display<'a, R: Into<Option<&'a RegInfo>>>(
self,
regs: R
) -> DisplayValueLoc<'a>Return an object that can display this value location, using the register info from the target ISA.
Trait Implementations
impl Copy for ValueLoc[src]
impl Copy for ValueLocimpl Clone for ValueLoc[src]
impl Clone for ValueLocfn clone(&self) -> ValueLoc[src]
fn clone(&self) -> ValueLocReturns 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 ValueLoc[src]
impl Debug for ValueLocfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ValueLoc[src]
impl PartialEq for ValueLocfn eq(&self, other: &ValueLoc) -> bool[src]
fn eq(&self, other: &ValueLoc) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ValueLoc) -> bool[src]
fn ne(&self, other: &ValueLoc) -> boolThis method tests for !=.
impl Eq for ValueLoc[src]
impl Eq for ValueLocimpl Default for ValueLoc[src]
impl Default for ValueLoc