Skip to main content

oxilean_codegen/opt_vectorize/
vectorizationreport_traits.rs

1//! # VectorizationReport - Trait Implementations
2//!
3//! This module contains trait implementations for `VectorizationReport`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::VectorizationReport;
12use std::fmt;
13
14impl fmt::Display for VectorizationReport {
15    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16        write!(
17            f,
18            "VectorizationReport {{ analyzed={}, vectorized={}, rejected=(dep={}, trip={}, other={}), avg_speedup={:.2}x }}",
19            self.loops_analyzed, self.loops_vectorized, self.rejected_dep, self
20            .rejected_trip_count, self.rejected_other, self.avg_estimated_speedup,
21        )
22    }
23}