[][src]Enum cranelift_codegen::ir::ValueLoc

pub enum ValueLoc {
    Unassigned,
    Reg(RegUnit),
    Stack(StackSlot),
}

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]

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]

Return an object that can display this value location, using the register info from the target ISA.

Trait Implementations

impl Clone for ValueLoc[src]

impl Copy for ValueLoc[src]

impl Debug for ValueLoc[src]

impl Default for ValueLoc[src]

impl Eq for ValueLoc[src]

impl PartialEq<ValueLoc> for ValueLoc[src]

impl StructuralEq for ValueLoc[src]

impl StructuralPartialEq for ValueLoc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.