Skip to main content

oxilean_codegen/opt_licm/
licmphase_traits.rs

1//! # LICMPhase - Trait Implementations
2//!
3//! This module contains trait implementations for `LICMPhase`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use crate::lcnf::*;
12
13use super::types::LICMPhase;
14use std::fmt;
15
16impl std::fmt::Display for LICMPhase {
17    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
18        match self {
19            LICMPhase::LICMBeforeCSE => write!(f, "LICM-before-CSE"),
20            LICMPhase::LICMAfterCSE => write!(f, "LICM-after-CSE"),
21            LICMPhase::LICMIterative => write!(f, "LICM-iterative"),
22            LICMPhase::LICMOnce => write!(f, "LICM-once"),
23        }
24    }
25}