Enum cranelift_codegen::ir::ValueLoc [−][src]
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.
Methods
impl ValueLoc
[src]
impl ValueLoc
pub fn is_assigned(&self) -> bool
[src]
pub fn is_assigned(&self) -> bool
Is this an assigned location? (That is, not Unassigned
).
pub fn unwrap_reg(self) -> RegUnit
[src]
pub fn unwrap_reg(self) -> RegUnit
Get the register unit of this location, or panic.
pub fn unwrap_stack(self) -> StackSlot
[src]
pub fn unwrap_stack(self) -> StackSlot
Get 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 ValueLoc
impl Clone for ValueLoc
[src]
impl Clone for ValueLoc
fn clone(&self) -> ValueLoc
[src]
fn clone(&self) -> ValueLoc
Returns 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 ValueLoc
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ValueLoc
[src]
impl PartialEq for ValueLoc
fn eq(&self, other: &ValueLoc) -> bool
[src]
fn eq(&self, other: &ValueLoc) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for ValueLoc
[src]
impl Eq for ValueLoc
impl Default for ValueLoc
[src]
impl Default for ValueLoc