|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.spacetime.RawExecutionCode
at.dms.kjc.spacetime.BufferedCommunication
public class BufferedCommunication
This class implements filter communication with a peek buffer. The peek buffer can
either be circular with and'ing or linear with reseting of indices.
This class follows the RawExecutionCode model and defines classes for
calculating and retrieving the init, prime pump, and steady-state methods
for the given filter of the slice that this object is used for.
RawComputeCodeStore
uses this when it is
constructing each tile's compute code.
Field Summary |
---|
Fields inherited from interface at.dms.kjc.Constants |
---|
CMP_VERSION, JAV_CLASS, JAV_CLONE, JAV_CLONEABLE, JAV_CONSTRUCTOR, JAV_ERROR, JAV_EXCEPTION, JAV_INIT, JAV_LENGTH, JAV_NAME_SEPARATOR, JAV_OBJECT, JAV_OUTER_THIS, JAV_RUNTIME, JAV_RUNTIME_EXCEPTION, JAV_STATIC_INIT, JAV_STRING, JAV_STRINGBUFFER, JAV_THIS, JAV_THROWABLE, OPE_BAND, OPE_BNOT, OPE_BOR, OPE_BSR, OPE_BXOR, OPE_EQ, OPE_GE, OPE_GT, OPE_LE, OPE_LNOT, OPE_LT, OPE_MINUS, OPE_NE, OPE_PERCENT, OPE_PLUS, OPE_POSTDEC, OPE_POSTINC, OPE_PREDEC, OPE_PREINC, OPE_SIMPLE, OPE_SL, OPE_SLASH, OPE_SR, OPE_STAR, TID_ARRAY, TID_BIT, TID_BOOLEAN, TID_BYTE, TID_CHAR, TID_CLASS, TID_DOUBLE, TID_FLOAT, TID_INT, TID_LONG, TID_SHORT, TID_VECTOR, TID_VOID, VECTOR_EMPTY |
Constructor Summary | |
---|---|
BufferedCommunication(RawTile tile,
FilterInfo filterInfo,
Layout layout)
Create a new Buffered communication object that will be used to generate code for the FilterTraceNode described by filterInfo. |
Method Summary | |
---|---|
JMethodDeclaration[] |
getHelperMethods()
Return an array of methods for any helper methods that we create or that were present in this filter. |
JMethodDeclaration |
getInitStageMethod()
Calculate and return the method that implements the init stage computation for this filter. |
JMethodDeclaration |
getPrimePumpMethod()
Calculate and return the method that will implement one execution of this filter in the primepump stage. |
JBlock |
getSteadyBlock()
Return the block that implements this filter in the steady state. |
JFieldDeclaration[] |
getVarDecls()
Return an array of JFieldDecl's that need to be added to the fields of this tile becuase they are generated by this pass. |
protected JStatement |
getWorkFunctionCall(FilterContent filter)
Return the code that will call the work work function once. |
Methods inherited from class at.dms.kjc.spacetime.RawExecutionCode |
---|
boundToSwitchStmt, constToSwitchStmt, gdnCacheAlign, gdnDisregardIncoming, gdnDummyOutgoing, gdnReceive, getUniqueID, sendRatesToSwitch, setDynMsgHeader, setupGDNStore |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferedCommunication(RawTile tile, FilterInfo filterInfo, Layout layout)
tile
- The tile assigned to filterInfofilterInfo
- The filter we this is going to generate code for.layout
- The layout of the entire application.Method Detail |
---|
public JFieldDeclaration[] getVarDecls()
getVarDecls
in class RawExecutionCode
public JMethodDeclaration[] getHelperMethods()
getHelperMethods
in class RawExecutionCode
public JMethodDeclaration getPrimePumpMethod()
getPrimePumpMethod
in class RawExecutionCode
public JMethodDeclaration getInitStageMethod()
This does not include the call to the init function of the filter.
That is done in ComputeCodeStore.addInitFunctionCall(at.dms.kjc.JMethodDeclaration)
.
getInitStageMethod
in class RawExecutionCode
public JBlock getSteadyBlock()
getSteadyBlock
in class RawExecutionCode
RawExecutionCode.INLINE_WORK
protected JStatement getWorkFunctionCall(FilterContent filter)
filter
- The filter content for this filter.
RawExecutionCode.INLINE_WORK
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |