pub struct VectorizationInfo {
pub vectorizable: bool,
pub reason: Option<String>,
pub recommended_width: u8,
pub access_patterns: Vec<AccessPattern>,
pub has_fma: bool,
pub has_reduction: bool,
}Expand description
Result of vectorization analysis for a loop.
Fields§
§vectorizable: boolWhether the loop can be vectorized.
reason: Option<String>Reason if not vectorizable.
recommended_width: u8Recommended vector width.
access_patterns: Vec<AccessPattern>Access patterns in the loop.
has_fma: boolWhether FMA opportunities exist.
has_reduction: boolWhether horizontal reduction is needed.
Trait Implementations§
Source§impl Clone for VectorizationInfo
impl Clone for VectorizationInfo
Source§fn clone(&self) -> VectorizationInfo
fn clone(&self) -> VectorizationInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorizationInfo
impl Debug for VectorizationInfo
Auto Trait Implementations§
impl Freeze for VectorizationInfo
impl RefUnwindSafe for VectorizationInfo
impl Send for VectorizationInfo
impl Sync for VectorizationInfo
impl Unpin for VectorizationInfo
impl UnsafeUnpin for VectorizationInfo
impl UnwindSafe for VectorizationInfo
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