Struct calyx_opt::analysis::CompactionAnalysis
source · [−]pub struct CompactionAnalysis { /* private fields */ }
Expand description
Struct to perform compaction on seqs
.
It will only work if you update_cont_read_writes for each component that
you run it on.
Implementations
sourceimpl CompactionAnalysis
impl CompactionAnalysis
sourcepub fn update_cont_read_writes(&mut self, comp: &mut Component)
pub fn update_cont_read_writes(&mut self, comp: &mut Component)
Updates self so that compaction will take continuous assignments into account
sourcepub fn compact_control_vec(
&mut self,
stmts: Vec<Control>,
promotion_analysis: &mut PromotionAnalysis,
builder: &mut Builder<'_>
) -> Vec<Control>
pub fn compact_control_vec(
&mut self,
stmts: Vec<Control>,
promotion_analysis: &mut PromotionAnalysis,
builder: &mut Builder<'_>
) -> Vec<Control>
Takes a vec of ctrl stmts and turns it into a compacted schedule. If compaction doesn’t lead to any latency decreases, it just returns a vec of stmts in the original order. If it can compact, then it returns a vec with one element: a compacted static par.
Trait Implementations
sourceimpl Debug for CompactionAnalysis
impl Debug for CompactionAnalysis
sourceimpl Default for CompactionAnalysis
impl Default for CompactionAnalysis
sourcefn default() -> CompactionAnalysis
fn default() -> CompactionAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CompactionAnalysis
impl !Send for CompactionAnalysis
impl !Sync for CompactionAnalysis
impl Unpin for CompactionAnalysis
impl !UnwindSafe for CompactionAnalysis
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more