pub struct CachePlan {
pub prefetch: Vec<usize>,
pub probe: Vec<usize>,
}Expand description
The software-managed-cache plan for a program (GAPS G19, MEMORY_EDGE_SPEC.md §3):
the datapath memory sites partitioned into prefetch (compile-time-known address
stream — served from the static schedule, zero runtime miss, zero-jitter) and
probe (data-dependent — a tag probe that may miss and fall back to the managed
cache). pc values index CompiledProgram::code.
Fields§
§prefetch: Vec<usize>§probe: Vec<usize>Implementations§
Source§impl CachePlan
impl CachePlan
Sourcepub fn is_total_over(&self, report: &MemSchedReport) -> bool
pub fn is_total_over(&self, report: &MemSchedReport) -> bool
Every datapath memory site is in exactly one list (no access is dropped).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CachePlan
impl RefUnwindSafe for CachePlan
impl Send for CachePlan
impl Sync for CachePlan
impl Unpin for CachePlan
impl UnsafeUnpin for CachePlan
impl UnwindSafe for CachePlan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.