pub struct NestedFabric {
pub n_in: usize,
pub n_state: usize,
pub init: Vec<Src>,
pub outer_lo: Src,
pub outer_hi: Src,
pub inner_lo: NestSrc,
pub inner_hi: NestSrc,
pub inner_body: Vec<LoopCell>,
pub inner_next: Vec<Src>,
pub invariants: Vec<Src>,
pub result_state: usize,
}Expand description
A perfectly-nested counted loop lowered to a HIERARCHICAL CGRA: an outer counter over the shared loop-carried state, whose body is the inner loop (its own body datapath + inner counter), whose range may reference the outer induction variable.
Fields§
§n_in: usize§n_state: usize§init: Vec<Src>§outer_lo: Src§outer_hi: Src§inner_lo: NestSrc§inner_hi: NestSrc§inner_body: Vec<LoopCell>Inner body cells. Src::In(k): 0..n_state = state, n_state = inner iv (j),
n_state+1 = outer iv (i), n_state+2+k = invariant k.
inner_next: Vec<Src>§invariants: Vec<Src>§result_state: usizeTrait Implementations§
Source§impl Clone for NestedFabric
impl Clone for NestedFabric
Source§fn clone(&self) -> NestedFabric
fn clone(&self) -> NestedFabric
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 moreAuto Trait Implementations§
impl Freeze for NestedFabric
impl RefUnwindSafe for NestedFabric
impl Send for NestedFabric
impl Sync for NestedFabric
impl Unpin for NestedFabric
impl UnsafeUnpin for NestedFabric
impl UnwindSafe for NestedFabric
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.