[][src]Enum cranelift_codegen::ir::dfg::ValueDef

pub enum ValueDef {
    Result(Instusize),
    Param(Blockusize),
}

Where did a value come from?

Variants

Result(Instusize)

Value is the n'th result of an instruction.

Param(Blockusize)

Value is the n'th parameter to an block.

Methods

impl ValueDef[src]

pub fn unwrap_inst(&self) -> Inst[src]

Unwrap the instruction where the value was defined, or panic.

pub fn unwrap_block(&self) -> Block[src]

Unwrap the block there the parameter is defined, or panic.

pub fn pp(self) -> ExpandedProgramPoint[src]

Get the program point where the value was defined.

pub fn num(self) -> usize[src]

Get the number component of this definition.

When multiple values are defined at the same program point, this indicates the index of this value.

Trait Implementations

impl Clone for ValueDef[src]

impl Copy for ValueDef[src]

impl Debug for ValueDef[src]

impl Eq for ValueDef[src]

impl From<ValueDef> for ProgramPoint[src]

impl From<ValueDef> for ExpandedProgramPoint[src]

impl PartialEq<ValueDef> for ValueDef[src]

impl StructuralEq for ValueDef[src]

impl StructuralPartialEq for ValueDef[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.