Skip to main content

oxilean_codegen/cranelift_backend/
craneliftpassconfig_traits.rs

1//! # CraneliftPassConfig - Trait Implementations
2//!
3//! This module contains trait implementations for `CraneliftPassConfig`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::CraneliftPassConfig;
12
13impl Default for CraneliftPassConfig {
14    fn default() -> Self {
15        CraneliftPassConfig {
16            const_folding: true,
17            dce: true,
18            inst_combine: true,
19            branch_opt: true,
20            licm: false,
21            reg_coalescing: true,
22            load_elim: true,
23            tail_call_opt: true,
24            inline_depth: 3,
25            debug_info: false,
26        }
27    }
28}