pub struct CseConfig {
pub max_expr_size: usize,
pub track_calls: bool,
pub max_candidates: usize,
pub pure_functions: Vec<String>,
}Expand description
Configuration for the CSE pass.
Fields§
§max_expr_size: usizeMaximum estimated “size” of an expression (in sub-nodes) for it to be considered a CSE candidate. Larger expressions are skipped to avoid blowing up the available set.
track_calls: boolWhether to attempt CSE across function call sites (requires purity analysis).
max_candidates: usizeMaximum number of candidates in the available set at any one point.
pure_functions: Vec<String>Known-pure function names (in addition to built-in constructors / projections).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CseConfig
impl RefUnwindSafe for CseConfig
impl Send for CseConfig
impl Sync for CseConfig
impl Unpin for CseConfig
impl UnsafeUnpin for CseConfig
impl UnwindSafe for CseConfig
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