Enum cranelift_codegen::ir::dfg::ValueDef
source · pub enum ValueDef {
Result(Inst, usize),
Param(Block, usize),
Union(Value, Value),
}
Expand description
Where did a value come from?
Variants§
Result(Inst, usize)
Value is the n’th result of an instruction.
Param(Block, usize)
Value is the n’th parameter to a block.
Union(Value, Value)
Value is a union of two other values.
Implementations§
source§impl ValueDef
impl ValueDef
sourcepub fn unwrap_inst(&self) -> Inst
pub fn unwrap_inst(&self) -> Inst
Unwrap the instruction where the value was defined, or panic.
sourcepub fn unwrap_block(&self) -> Block
pub fn unwrap_block(&self) -> Block
Unwrap the block there the parameter is defined, or panic.
Trait Implementations§
source§impl PartialEq for ValueDef
impl PartialEq for ValueDef
impl Copy for ValueDef
impl Eq for ValueDef
impl StructuralPartialEq for ValueDef
Auto Trait Implementations§
impl Freeze for ValueDef
impl RefUnwindSafe for ValueDef
impl Send for ValueDef
impl Sync for ValueDef
impl Unpin for ValueDef
impl UnwindSafe for ValueDef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.