[−][src]Enum cranelift_codegen::ir::ValueLoc
Value location.
Variants
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]
pub fn is_assigned(self) -> bool[src]
Is this an assigned location? (That is, not Unassigned).
pub fn unwrap_reg(self) -> RegUnit[src]
Get the register unit of this location, or panic.
pub fn unwrap_stack(self) -> StackSlot[src]
Get the stack slot of this location, or panic.
pub fn display<'a, R: Into<Option<&'a RegInfo>>>(
self,
regs: R
) -> DisplayValueLoc<'a>[src]
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 Debug for ValueLoc[src]
impl PartialEq<ValueLoc> for ValueLoc[src]
impl Eq for ValueLoc[src]
impl Copy for ValueLoc[src]
impl StructuralPartialEq for ValueLoc[src]
impl StructuralEq for ValueLoc[src]
impl Clone for ValueLoc[src]
impl Default for ValueLoc[src]
Auto Trait Implementations
impl Unpin for ValueLoc
impl Send for ValueLoc
impl Sync for ValueLoc
impl UnwindSafe for ValueLoc
impl RefUnwindSafe for ValueLoc
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,