Enum cretonne_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]

[src]

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

[src]

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

[src]

Get the program point where the value was defined.

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ValueDef
[src]

impl Debug for ValueDef
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ValueDef
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ValueDef
[src]

impl From<ValueDef> for ProgramPoint
[src]

[src]

Performs the conversion.

impl From<ValueDef> for ExpandedProgramPoint
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ValueDef

impl Sync for ValueDef