pub struct ApplyCommonSubexpressionEliminationOperation<'c> { /* private fields */ }
Expand description
An apply_cse
operation. Eliminate common subexpressions in the body of the target op.
This transform applies common subexpression elimination (CSE) to the body of the targeted op.
This transform reads the target handle and modifies the payload. Existing handles to operations inside of the targeted op are retained and updated if necessary. Note that this can lead to situations where a handle, that was previously mapped to multiple distinct (but equivalent) operations, is now mapped to the same operation multiple times.
Implementations§
source§impl<'c> ApplyCommonSubexpressionEliminationOperation<'c>
impl<'c> ApplyCommonSubexpressionEliminationOperation<'c>
Trait Implementations§
source§impl<'c> From<ApplyCommonSubexpressionEliminationOperation<'c>> for Operation<'c>
impl<'c> From<ApplyCommonSubexpressionEliminationOperation<'c>> for Operation<'c>
source§fn from(operation: ApplyCommonSubexpressionEliminationOperation<'c>) -> Self
fn from(operation: ApplyCommonSubexpressionEliminationOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ApplyCommonSubexpressionEliminationOperation<'c>
impl<'c> !Send for ApplyCommonSubexpressionEliminationOperation<'c>
impl<'c> !Sync for ApplyCommonSubexpressionEliminationOperation<'c>
impl<'c> Unpin for ApplyCommonSubexpressionEliminationOperation<'c>
impl<'c> UnwindSafe for ApplyCommonSubexpressionEliminationOperation<'c>
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