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

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

Where did a value come from?

Variants

Result(Instusize)

Value is the n'th result of an instruction.

Param(Ebbusize)

Value is the n'th parameter to an EBB.

Methods

impl ValueDef
[src]

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

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

pub fn unwrap_ebb(&self) -> Ebb
[src]

Unwrap the EBB 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 Copy for ValueDef
[src]

impl PartialEq<ValueDef> for ValueDef
[src]

impl Eq for ValueDef
[src]

impl Clone for ValueDef
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ValueDef
[src]

impl From<ValueDef> for ProgramPoint
[src]

impl From<ValueDef> for ExpandedProgramPoint
[src]

Auto Trait Implementations

impl Send for ValueDef

impl Sync for ValueDef

Blanket Implementations

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

type Owned = T