Enum cretonne::prelude::codegen::ir::dfg::ValueDef [−][src]
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]
impl ValueDef
pub fn unwrap_inst(&self) -> Inst
[src]
pub fn unwrap_inst(&self) -> Inst
Unwrap the instruction where the value was defined, or panic.
pub fn unwrap_ebb(&self) -> Ebb
[src]
pub fn unwrap_ebb(&self) -> Ebb
Unwrap the EBB there the parameter is defined, or panic.
pub fn pp(self) -> ExpandedProgramPoint
[src]
pub fn pp(self) -> ExpandedProgramPoint
Get the program point where the value was defined.
pub fn num(self) -> usize
[src]
pub fn num(self) -> usize
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 Clone for ValueDef
fn clone(&self) -> ValueDef
[src]
fn clone(&self) -> ValueDef
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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 Debug for ValueDef
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<ValueDef> for ExpandedProgramPoint
[src]
impl From<ValueDef> for ExpandedProgramPoint
fn from(def: ValueDef) -> ExpandedProgramPoint
[src]
fn from(def: ValueDef) -> ExpandedProgramPoint
Performs the conversion.
impl From<ValueDef> for ProgramPoint
[src]
impl From<ValueDef> for ProgramPoint
fn from(def: ValueDef) -> ProgramPoint
[src]
fn from(def: ValueDef) -> ProgramPoint
Performs the conversion.
impl Copy for ValueDef
[src]
impl Copy for ValueDef
impl Eq for ValueDef
[src]
impl Eq for ValueDef
impl PartialEq<ValueDef> for ValueDef
[src]
impl PartialEq<ValueDef> for ValueDef