pub struct PipelineConfig {
pub opt_level: OptLevel,
pub target: CodegenTarget,
pub debug: bool,
pub emit_ir: bool,
pub passes: Vec<PassId>,
pub max_iterations: usize,
pub emit_comments: bool,
}Expand description
Configuration for the compiler pipeline.
Fields§
§opt_level: OptLevelOptimization level.
target: CodegenTargetCode generation target.
debug: boolWhether to emit debug info.
emit_ir: boolWhether to emit intermediate IR for inspection.
passes: Vec<PassId>Explicit list of passes to run (overrides opt_level if non-empty).
max_iterations: usizeMaximum iterations for fixed-point optimization.
emit_comments: boolWhether to emit comments in generated code.
Implementations§
Source§impl PipelineConfig
impl PipelineConfig
Sourcepub fn effective_passes(&self) -> Vec<PassId>
pub fn effective_passes(&self) -> Vec<PassId>
Get the effective list of passes to run.
Sourcepub fn effective_max_iterations(&self) -> usize
pub fn effective_max_iterations(&self) -> usize
Get the effective max iterations.
Trait Implementations§
Source§impl Clone for PipelineConfig
impl Clone for PipelineConfig
Source§fn clone(&self) -> PipelineConfig
fn clone(&self) -> PipelineConfig
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 PipelineConfig
impl Debug for PipelineConfig
Auto Trait Implementations§
impl Freeze for PipelineConfig
impl RefUnwindSafe for PipelineConfig
impl Send for PipelineConfig
impl Sync for PipelineConfig
impl Unpin for PipelineConfig
impl UnsafeUnpin for PipelineConfig
impl UnwindSafe for PipelineConfig
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