Skip to main content

oxilean_codegen/pipeline/
pipelineconfig_traits.rs

1//! # PipelineConfig - Trait Implementations
2//!
3//! This module contains trait implementations for `PipelineConfig`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use crate::lcnf::*;
12use crate::CodegenTarget;
13
14use super::types::{OptLevel, PipelineConfig};
15
16impl Default for PipelineConfig {
17    fn default() -> Self {
18        PipelineConfig {
19            opt_level: OptLevel::O1,
20            target: CodegenTarget::C,
21            debug: false,
22            emit_ir: false,
23            passes: Vec::new(),
24            max_iterations: 5,
25            emit_comments: true,
26        }
27    }
28}