Expand description
Execution-mode markers for SIMD operations.
Two ZST markers define whether a crate::view::SimdView operates on all lanes (dense)
or a hardware-predicated subset (masked). The sealed ExecutionMode trait prevents
external implementations and enables the compiler to eliminate dead mode branches
via DCE during monomorphization.
§Design
Unmasked— default; maps to unconditional arithmetic. Zero overhead vs. not parameterizing by mode at all.Masked— activates predicated methods onSimdView. Maps to AVX-512 mask registers (__mmask16/__mmask8), AVX2 blend masks (__m256), SVE predicates, or scalar[bool; N]arrays depending on the boundSimdKernelimplementation.
Structs§
- Masked
- Predicated execution — a hardware mask selects active lanes.
- Unmasked
- Dense execution — all lanes are active. Default mode for
crate::view::SimdView.
Traits§
- Execution
Mode - Marker trait for SIMD execution modes.