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 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 Copy for ValueDef
[src]
impl Copy for ValueDef
impl Debug for ValueDef
[src]
impl Debug for ValueDef
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ValueDef
[src]
impl PartialEq for ValueDef
fn eq(&self, other: &ValueDef) -> bool
[src]
fn eq(&self, other: &ValueDef) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for ValueDef
[src]
impl Eq for ValueDef
impl From<ValueDef> for ProgramPoint
[src]
impl From<ValueDef> for ProgramPoint
impl From<ValueDef> for ExpandedProgramPoint
[src]
impl From<ValueDef> for ExpandedProgramPoint