|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.util.Utils
at.dms.kjc.spacedynamic.RawExecutionCode
public class RawExecutionCode
This pass creates the SIR necessary for each filter of the StreamGraph to execute on Raw. It creates SIR to handle the communication for filters by possibly creating a buffer or a circular buffer (see BufferedCommmunication.java) or no buffer (See DirectionCommunication.java).
Field Summary | |
---|---|
static String |
ARRAY_COPY
|
static String |
ARRAY_INDEX
|
static String |
arrayReceiveMethod
|
static String |
exeIndex
|
static String |
exeIndex1
|
static String |
initSchedFunction
|
static boolean |
INLINE_WORK
if this is true, then inline the work function calls (for each of the code generation schemes), if work remains a function and is called. |
static String |
peekDynamic
the name of the peek method for each filter when the filter has dynamic input and we are not inlining the method |
static String |
popDynamic
the name of the pop mehtod for each filter when the filter has dynamic input and we are not inlining |
static String |
rateMatchSendMethod
|
static String |
rawMain
|
static String |
receiveMethod
|
static String |
recvBuffer
fields for the var names we introduce ** |
static String |
recvBufferBits
|
static String |
recvBufferIndex
|
static String |
recvBufferSize
|
static String |
recvIndex
|
static String |
sendBuffer
|
static String |
sendBufferIndex
|
static String |
simpleIndex
|
static String |
steadySchedFunction
|
static String |
structReceivePrefix
|
static String |
structReceivePrefixDynamic
|
static String |
structReceivePrefixStatic
|
Fields inherited from class at.dms.util.Utils |
---|
EMPTY_LIST, getForLoopCallers |
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 | |
---|---|
RawExecutionCode(SpdStaticStreamGraph ssg)
|
Method Summary | |
---|---|
void |
calculateItems(SIRFilter filter)
|
static void |
doit(SpdStreamGraph streamGraph)
|
static JBlock |
executeWorkFunction(SIRFilter filter)
This method is used by the various code generation schemes to return the statement that executes a work function call. |
int |
getBottomPeek()
|
int |
getInitFire()
|
int |
getRemaining()
|
static JStatement |
makeForLoop(JStatement body,
JLocalVariable var,
JExpression count)
Returns a for loop that uses field |
void |
visitNode(FlatNode node)
The visitor must define this method that will be called once on each FlatNode that is down stream of the accepting node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean INLINE_WORK
public static String recvBuffer
public static String recvBufferSize
public static String recvBufferBits
public static String sendBuffer
public static String sendBufferIndex
public static String rateMatchSendMethod
public static String recvBufferIndex
public static String recvIndex
public static String simpleIndex
public static String exeIndex
public static String exeIndex1
public static String ARRAY_INDEX
public static String ARRAY_COPY
public static String initSchedFunction
public static String steadySchedFunction
public static String receiveMethod
public static String structReceivePrefix
public static String structReceivePrefixStatic
public static String structReceivePrefixDynamic
public static String popDynamic
public static String peekDynamic
public static String arrayReceiveMethod
public static String rawMain
Constructor Detail |
---|
public RawExecutionCode(SpdStaticStreamGraph ssg)
Method Detail |
---|
public static void doit(SpdStreamGraph streamGraph)
public void visitNode(FlatNode node)
FlatVisitor
visitNode
in interface FlatVisitor
node
- the node that is being currently visited.public void calculateItems(SIRFilter filter)
public static JStatement makeForLoop(JStatement body, JLocalVariable var, JExpression count)
varto count
counttimes with the body of the loop being
body. If count is non-positive, just returns empty (!not legal in the general case)
public static JBlock executeWorkFunction(SIRFilter filter)
public int getBottomPeek()
public int getInitFire()
public int getRemaining()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |