pub struct OptimizationSettings {
pub constant_propagation: bool,
pub instruction_combine: bool,
pub dead_code_elim: bool,
pub prune_useless_block_params: bool,
pub iterations: u32,
}
Expand description
IR optimization settings.
Fields§
§constant_propagation: bool
Enable constant propagation.
instruction_combine: bool
Enable instruction combining.
dead_code_elim: bool
Enable dead code elimination.
prune_useless_block_params: bool
Enable pruning of unused block parameters.
iterations: u32
Number of optimization iterations to run.
Trait Implementations§
Source§impl Clone for OptimizationSettings
impl Clone for OptimizationSettings
Source§fn clone(&self) -> OptimizationSettings
fn clone(&self) -> OptimizationSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 OptimizationSettings
impl Debug for OptimizationSettings
Source§impl<'de> Deserialize<'de> for OptimizationSettings
impl<'de> Deserialize<'de> for OptimizationSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OptimizationSettings
impl RefUnwindSafe for OptimizationSettings
impl Send for OptimizationSettings
impl Sync for OptimizationSettings
impl Unpin for OptimizationSettings
impl UnwindSafe for OptimizationSettings
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