pub struct CacheOptConfig {
pub cache_line_size: u64,
pub prefetch_distance: u64,
pub enable_prefetch: bool,
pub tiling: LoopTilingConfig,
}Expand description
Top-level configuration for the cache optimization pass.
Fields§
§cache_line_size: u64Cache line size in bytes (typically 64 on x86-64).
prefetch_distance: u64How many iterations ahead to prefetch (in units of loop iterations).
enable_prefetch: boolWhether to insert software prefetch hints.
tiling: LoopTilingConfigLoop tiling sub-configuration.
Trait Implementations§
Source§impl Clone for CacheOptConfig
impl Clone for CacheOptConfig
Source§fn clone(&self) -> CacheOptConfig
fn clone(&self) -> CacheOptConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CacheOptConfig
impl Debug for CacheOptConfig
Auto Trait Implementations§
impl Freeze for CacheOptConfig
impl RefUnwindSafe for CacheOptConfig
impl Send for CacheOptConfig
impl Sync for CacheOptConfig
impl Unpin for CacheOptConfig
impl UnsafeUnpin for CacheOptConfig
impl UnwindSafe for CacheOptConfig
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