Enum cretonne_codegen::ir::dfg::ValueDef
[−]
[src]
pub enum ValueDef { Result(Inst, usize), Param(Ebb, usize), }
Where did a value come from?
Variants
Result(Inst, usize)
Value is the n'th result of an instruction.
Param(Ebb, usize)
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 Clone for ValueDef
[src]
fn clone(&self) -> ValueDef
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ValueDef
[src]
impl Debug for ValueDef
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for ValueDef
[src]
fn eq(&self, __arg_0: &ValueDef) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ValueDef) -> bool
[src]
This method tests for !=
.