Enum cranelift_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 ValueDefpub fn unwrap_inst(&self) -> Inst[src]
pub fn unwrap_inst(&self) -> InstUnwrap the instruction where the value was defined, or panic.
pub fn unwrap_ebb(&self) -> Ebb[src]
pub fn unwrap_ebb(&self) -> EbbUnwrap the EBB there the parameter is defined, or panic.
pub fn pp(self) -> ExpandedProgramPoint[src]
pub fn pp(self) -> ExpandedProgramPointGet the program point where the value was defined.
pub fn num(self) -> usize[src]
pub fn num(self) -> usizeGet 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 ValueDeffn clone(&self) -> ValueDef[src]
fn clone(&self) -> ValueDefReturns 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 Copy for ValueDef[src]
impl Copy for ValueDefimpl Debug for ValueDef[src]
impl Debug for ValueDeffn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ValueDef[src]
impl PartialEq for ValueDeffn eq(&self, other: &ValueDef) -> bool[src]
fn eq(&self, other: &ValueDef) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ValueDef) -> bool[src]
fn ne(&self, other: &ValueDef) -> boolThis method tests for !=.
impl Eq for ValueDef[src]
impl Eq for ValueDefimpl From<ValueDef> for ProgramPoint[src]
impl From<ValueDef> for ProgramPointimpl From<ValueDef> for ExpandedProgramPoint[src]
impl From<ValueDef> for ExpandedProgramPoint