Skip to main content

oxilean_codegen/opt_mem2reg/
mem2regconfig_traits.rs

1//! # Mem2RegConfig - Trait Implementations
2//!
3//! This module contains trait implementations for `Mem2RegConfig`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//! - `Display`
9//!
10//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
11
12use crate::lcnf::*;
13
14use super::types::Mem2RegConfig;
15use std::fmt;
16
17impl Default for Mem2RegConfig {
18    fn default() -> Self {
19        Mem2RegConfig {
20            max_phi_nodes: 64,
21            conservative: false,
22        }
23    }
24}
25
26impl fmt::Display for Mem2RegConfig {
27    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
28        write!(
29            f,
30            "Mem2RegConfig {{ max_phi_nodes={}, conservative={} }}",
31            self.max_phi_nodes, self.conservative
32        )
33    }
34}