pub enum Simplified {
Value(ValueId),
Expression(Mnemonic),
}Expand description
The result of an intrinsic’s simplify hook.
Variants§
Value(ValueId)
Forward all uses of the intrinsic to this existing value, e.g.
rol(x, 0) → x or ror(rol(a, c), c) → a.
Expression(Mnemonic)
Replace the intrinsic instruction with a new expression of the same
width. The mnemonic is free to be a different intrinsic (e.g.
rol(a, c) → ror(a, bits - c)) or a plain operation (e.g. an
IntBinop-rooted +).
Trait Implementations§
Source§impl Clone for Simplified
impl Clone for Simplified
Source§fn clone(&self) -> Simplified
fn clone(&self) -> Simplified
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Simplified
impl Debug for Simplified
impl Eq for Simplified
Source§impl PartialEq for Simplified
impl PartialEq for Simplified
impl StructuralPartialEq for Simplified
Auto Trait Implementations§
impl Freeze for Simplified
impl RefUnwindSafe for Simplified
impl Send for Simplified
impl Sync for Simplified
impl Unpin for Simplified
impl UnsafeUnpin for Simplified
impl UnwindSafe for Simplified
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