|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.backendSupport.BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>
at.dms.kjc.spacetime.RawBackEndFactory
public class RawBackEndFactory
Factor out parts of RAW (at.dms.kjc.spacetime) back end that need matching types.
BackEndFactory,
BackEndAbsFactory| Constructor Summary | |
|---|---|
RawBackEndFactory()
|
|
RawBackEndFactory(RawChip rawChip,
Layout<RawTile> layout)
|
|
| Method Summary | |
|---|---|
BackEndScaffold |
getBackEndMain()
The converter from a Schedule to ComputeNode's with completed ComputeCodeStore's and Buffer's. |
Channel |
getChannel(Edge e)
Back end needs to generate subclasses of channel. |
Channel |
getChannel(SliceNode src,
SliceNode dst)
Back end needs to generate subclasses of channel. |
CodeStoreHelper |
getCodeStoreHelper(SliceNode node)
Eventually make RawExecutionCode a subclass of CodeStoreHelper, but unused for now. |
RawComputeCodeStore |
getComputeCodeStore(RawTile parent)
|
RawTile |
getComputeNode(int[] xy)
Get a specified compute node. |
RawChip |
getComputeNodes()
|
Layout<RawTile> |
getLayout()
Get saved copy of Layout. |
void |
processFilterSliceNode(FilterSliceNode filter,
SchedulingPhase whichPhase,
RawChip rawChip)
Process a filter slice node: find the correct ProcElement(s) and add code and buffers. |
void |
processFilterSlices(Slice slice,
SchedulingPhase whichPhase,
RawChip rawChip)
Process all filter slice nodes in a Slice (just one in a SimpleSlice): find the correct ProcElement(s) and add filter code. |
void |
processInputSliceNode(InputSliceNode input,
SchedulingPhase whichPhase,
RawChip rawChip)
Process an input slice node: find the correct ProcElement(s) and add joiner code, and buffers. |
void |
processOutputSliceNode(OutputSliceNode output,
SchedulingPhase whichPhase,
RawChip rawChip)
Process an output slice node: find the correct ProcElement(s) and add splitter code and buffers. |
void |
setLayout(Layout<RawTile> layout)
Keep a copy of the Layout: the mapping from SliceNode to
ComputeNode. |
| Methods inherited from class at.dms.kjc.backendSupport.BackEndFactory |
|---|
getChannels, sliceHasDownstreamChannel, sliceHasUpstreamChannel, sliceNeedsJoinerCode, sliceNeedsJoinerWorkFunction, sliceNeedsPeekBuffer, sliceNeedsPokeBuffer, sliceNeedsSplitterCode, sliceNeedsSplitterWorkFunction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawBackEndFactory()
public RawBackEndFactory(RawChip rawChip,
Layout<RawTile> layout)
| Method Detail |
|---|
public BackEndScaffold getBackEndMain()
getBackEndMain in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>Channels and
ComputeCodeStores for the ComputeNodes.Rawify
public void processInputSliceNode(InputSliceNode input,
SchedulingPhase whichPhase,
RawChip rawChip)
processInputSliceNode in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>input - the InputSliceNodewhichPhase - INIT / PRIMEPUMP / STEADYrawChip - the available compute nodes.
public void processFilterSlices(Slice slice,
SchedulingPhase whichPhase,
RawChip rawChip)
processFilterSlices in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>slice - Slice containing filterswhichPhase - INIT / PRIMEPUMP / STEADYcomputeNodes - the available compute nodes.
public void processFilterSliceNode(FilterSliceNode filter,
SchedulingPhase whichPhase,
RawChip rawChip)
processFilterSliceNode in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>filter - the FilterSliceNode.whichPhase - INIT / PRIMEPUMP / STEADYcomputeNodes - the available compute nodes.
public void processOutputSliceNode(OutputSliceNode output,
SchedulingPhase whichPhase,
RawChip rawChip)
processOutputSliceNode in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>output - the OutputSliceNode.whichPhase - INIT / PRIMEPUMP / STEADYcomputeNodes - the available compute nodes.public RawChip getComputeNodes()
getComputeNodes in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>RawChippublic RawTile getComputeNode(int[] xy)
BackEndFactory
getComputeNode in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>xy - Different instantiations will have different number of
arguments to specify which node, so a specifier (String, int, array[int]...) here.
RawTilepublic RawComputeCodeStore getComputeCodeStore(RawTile parent)
getComputeCodeStore in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>ComputeCodeStore.RawComputeCodeStorepublic void setLayout(Layout<RawTile> layout)
Layout: the mapping from SliceNode to
ComputeNode.
setLayout in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>layout - public Layout<RawTile> getLayout()
Layout.
getLayout in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>public Channel getChannel(Edge e)
BackEndFactory
getChannel in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>e - the edge.
public Channel getChannel(SliceNode src,
SliceNode dst)
BackEndFactory
getChannel in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>public CodeStoreHelper getCodeStoreHelper(SliceNode node)
getCodeStoreHelper in class BackEndFactory<RawChip,RawTile,RawComputeCodeStore,int[]>node - the SliceNode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||