Enum cranelift_codegen::ir::dfg::ValueDef [−][src]
Where did a value come from?
Variants
Value is the n’th result of an instruction.
Value is the n’th parameter to a block.
Implementations
impl ValueDef[src]
pub fn unwrap_inst(&self) -> Inst[src]
Unwrap the instruction where the value was defined, or panic.
pub fn inst(&self) -> Option<Inst>[src]
Get the instruction where the value was defined, if any.
pub fn unwrap_block(&self) -> Block[src]
Unwrap the block 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]
impl Copy for ValueDef[src]
impl Debug for ValueDef[src]
impl Eq for ValueDef[src]
impl From<ValueDef> for ProgramPoint[src]
impl From<ValueDef> for ExpandedProgramPoint[src]
impl PartialEq<ValueDef> for ValueDef[src]
impl StructuralEq for ValueDef[src]
impl StructuralPartialEq for ValueDef[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueDef
impl Send for ValueDef
impl Sync for ValueDef
impl Unpin for ValueDef
impl UnwindSafe for ValueDef
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,