pub struct AlgebraicSimplification;Expand description
Algebraic Simplification pass.
Simplifies expressions using algebraic identities:
- x + 0 = x
- x * 1 = x
- x * 0 = 0
- x - x = 0
- x / 1 = x
- x & 0 = 0
- x | 0 = x
- etc.
Implementations§
Trait Implementations§
Source§impl Default for AlgebraicSimplification
impl Default for AlgebraicSimplification
Auto Trait Implementations§
impl Freeze for AlgebraicSimplification
impl RefUnwindSafe for AlgebraicSimplification
impl Send for AlgebraicSimplification
impl Sync for AlgebraicSimplification
impl Unpin for AlgebraicSimplification
impl UnwindSafe for AlgebraicSimplification
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