pub struct SimdAnalyzer {
pub target_arch: SimdArch,
pub vectorization_threshold: f32,
}Expand description
SIMD code analyzer
Fields§
§target_arch: SimdArchTarget architecture for analysis
vectorization_threshold: f32Warn if vectorization ratio below threshold
Implementations§
Trait Implementations§
Source§impl Analyzer for SimdAnalyzer
impl Analyzer for SimdAnalyzer
Source§fn target_name(&self) -> &str
fn target_name(&self) -> &str
The type of IR being analyzed (e.g., “PTX”, “x86 ASM”, “WGSL”)
Source§fn analyze(&self, asm: &str) -> Result<AnalysisReport>
fn analyze(&self, asm: &str) -> Result<AnalysisReport>
Analyze the provided code and return a structured report Read more
Source§fn detect_muda(&self, asm: &str) -> Vec<MudaWarning>
fn detect_muda(&self, asm: &str) -> Vec<MudaWarning>
Identify specific performance bottlenecks (Muda)
Source§fn estimate_roofline(&self, _analysis: &AnalysisReport) -> RooflineMetric
fn estimate_roofline(&self, _analysis: &AnalysisReport) -> RooflineMetric
Estimate theoretical peak performance
Auto Trait Implementations§
impl Freeze for SimdAnalyzer
impl RefUnwindSafe for SimdAnalyzer
impl Send for SimdAnalyzer
impl Sync for SimdAnalyzer
impl Unpin for SimdAnalyzer
impl UnwindSafe for SimdAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more