[−][src]Enum cranelift_codegen::ir::dfg::ValueDef
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 PartialEq<ValueDef> for ValueDef[src]
impl Eq for ValueDef[src]
impl Debug for ValueDef[src]
impl From<ValueDef> for ProgramPoint[src]
impl From<ValueDef> for ExpandedProgramPoint[src]
impl Copy for ValueDef[src]
impl Clone for ValueDef[src]
Auto Trait Implementations
impl Unpin for ValueDef
impl Send for ValueDef
impl Sync for ValueDef
impl RefUnwindSafe for ValueDef
impl UnwindSafe for ValueDef
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,