Enum cretonne::prelude::codegen::ir::dfg::ValueDef[][src]

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

Where did a value come from?

Variants

Value is the n'th result of an instruction.

Value is the n'th parameter to an EBB.

Methods

impl ValueDef
[src]

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

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

Get the program point where the value was defined.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ValueDef
[src]

Formats the value using the given formatter. Read more

impl From<ValueDef> for ExpandedProgramPoint
[src]

Performs the conversion.

impl From<ValueDef> for ProgramPoint
[src]

Performs the conversion.

impl Copy for ValueDef
[src]

impl Eq for ValueDef
[src]

impl PartialEq<ValueDef> for ValueDef
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for ValueDef

impl Sync for ValueDef