pub struct CompilerPipelineConfig {
pub enable_const_prop: bool,
pub enable_dead_code: bool,
pub enable_inline: bool,
pub enable_algebraic: bool,
pub enable_rewrite: bool,
pub pass_order: CompilerPassOrder,
pub max_outer_iterations: u32,
pub const_prop_config: ConstPropConfig,
pub dce_config: DceConfig,
pub inline_config: InlineConfig,
}Expand description
Controls which passes are enabled and how the full pipeline is configured.
Fields§
§enable_const_prop: boolEnable the constant-propagation pass.
enable_dead_code: boolEnable the dead-code-elimination pass.
enable_inline: boolEnable the let-inlining pass.
enable_algebraic: boolEnable the algebraic optimization sub-pipeline.
enable_rewrite: boolEnable the pattern-rewrite engine.
pass_order: CompilerPassOrderOrder in which passes are applied within a single outer iteration.
max_outer_iterations: u32Maximum number of outer fixed-point iterations over the full pass sequence.
const_prop_config: ConstPropConfigConfiguration forwarded to the constant-propagation pass.
dce_config: DceConfigConfiguration forwarded to the dead-code-elimination pass.
inline_config: InlineConfigConfiguration forwarded to the let-inlining pass.
Trait Implementations§
Source§impl Clone for CompilerPipelineConfig
impl Clone for CompilerPipelineConfig
Source§fn clone(&self) -> CompilerPipelineConfig
fn clone(&self) -> CompilerPipelineConfig
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 CompilerPipelineConfig
impl Debug for CompilerPipelineConfig
Auto Trait Implementations§
impl Freeze for CompilerPipelineConfig
impl RefUnwindSafe for CompilerPipelineConfig
impl Send for CompilerPipelineConfig
impl Sync for CompilerPipelineConfig
impl Unpin for CompilerPipelineConfig
impl UnsafeUnpin for CompilerPipelineConfig
impl UnwindSafe for CompilerPipelineConfig
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