|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.KjcEmptyVisitor
at.dms.kjc.SLIREmptyVisitor
public class SLIREmptyVisitor
This visitor is for visiting statement-level constructs in the streamit IR. It visits both high-level constructs like SIRInitStatement that never appear in the LIR, as well as low-level constructs like LIRSetPeek that never appear in the high IR.
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 | |
---|---|
SLIREmptyVisitor()
|
Method Summary | |
---|---|
void |
visitCreatePortalExpression(SIRCreatePortal self)
|
void |
visitDynamicToken(SIRDynamicToken self)
Visits a dynamic token. |
void |
visitFileReader(LIRFileReader self)
Visits a file reader. |
void |
visitFileWriter(LIRFileWriter self)
Visits a file writer. |
void |
visitFunctionPointer(LIRFunctionPointer self,
String name)
Visits a function pointer. |
void |
visitIdentity(LIRIdentity self)
Visits an identity creator. |
void |
visitInitStatement(SIRInitStatement self,
SIRStream target)
Visits an init statement. |
void |
visitInlineAssembly(InlineAssembly self,
String[] asm,
String[] input,
String[] clobber)
Visits InlineAssembly |
void |
visitInterfaceTable(SIRInterfaceTable self)
Visits an interface table. |
void |
visitLatency(SIRLatency self)
Visits a latency. |
void |
visitLatencyMax(SIRLatencyMax self)
Visits a max latency. |
void |
visitLatencyRange(SIRLatencyRange self)
Visits a latency range. |
void |
visitLatencySet(SIRLatencySet self)
Visits a latency set. |
void |
visitMainFunction(LIRMainFunction self,
String typeName,
LIRFunctionPointer init,
List<JStatement> initStatements)
Visits a main function contents. |
void |
visitMarker(SIRMarker self)
Visit SIRMarker. |
void |
visitMessageStatement(SIRMessageStatement self,
JExpression portal,
String iname,
String ident,
JExpression[] args,
SIRLatency latency)
Visits a message statement. |
void |
visitNode(LIRNode self)
Visits an LIR node. |
void |
visitPeekExpression(SIRPeekExpression self,
CType tapeType,
JExpression arg)
Visits a peek expression. |
void |
visitPopExpression(SIRPopExpression self,
CType tapeType)
Visits a pop expression. |
void |
visitPortal(SIRPortal self)
Visits a message-receiving portal. |
void |
visitPrintStatement(SIRPrintStatement self,
JExpression arg)
Visits a print statement. |
void |
visitPushExpression(SIRPushExpression self,
CType tapeType,
JExpression arg)
Visits a push expression. |
void |
visitRangeExpression(SIRRangeExpression self)
Visits a range expression. |
void |
visitRegisterReceiver(LIRRegisterReceiver self,
JExpression streamContext,
SIRPortal portal,
String childName,
SIRInterfaceTable itable)
Visits an LIR register-receiver statement. |
void |
visitRegReceiverStatement(SIRRegReceiverStatement self,
JExpression portal,
SIRStream receiver,
JMethodDeclaration[] methods)
Visits a register-receiver statement. |
void |
visitRegSenderStatement(SIRRegSenderStatement self,
String portal,
SIRLatency latency)
Visits a register-sender statement. |
void |
visitSetBodyOfFeedback(LIRSetBodyOfFeedback self,
JExpression streamContext,
JExpression childContext,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
Visits a set body of feedback loop. |
void |
visitSetChild(LIRSetChild self,
JExpression streamContext,
String childType,
String childName)
Visits a child registration node. |
void |
visitSetDecode(LIRSetDecode self,
JExpression streamContext,
LIRFunctionPointer fp)
Visits a decoder registration node. |
void |
visitSetDelay(LIRSetDelay self,
JExpression data,
JExpression streamContext,
int delay,
CType type,
LIRFunctionPointer fp)
Visits a feedback loop delay node. |
void |
visitSetEncode(LIRSetEncode self,
JExpression streamContext,
LIRFunctionPointer fp)
Visits an encoder registration node. |
void |
visitSetJoiner(LIRSetJoiner self,
JExpression streamContext,
SIRJoinType type,
int ways,
int[] weights)
Visits a joiner-setting node. |
void |
visitSetLoopOfFeedback(LIRSetLoopOfFeedback self,
JExpression streamContext,
JExpression childContext,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
Visits a set loop of feedback loop. |
void |
visitSetParallelStream(LIRSetParallelStream self,
JExpression streamContext,
JExpression childContext,
int position,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
Visits a set a parallel stream. |
void |
visitSetPeek(LIRSetPeek self,
JExpression streamContext,
int peek)
Visits a peek-rate-setting node. |
void |
visitSetPop(LIRSetPop self,
JExpression streamContext,
int pop)
Visits a pop-rate-setting node. |
void |
visitSetPush(LIRSetPush self,
JExpression streamContext,
int push)
Visits a push-rate-setting node. |
void |
visitSetSplitter(LIRSetSplitter self,
JExpression streamContext,
SIRSplitType type,
int ways,
int[] weights)
Visits a splitter-setting node. |
void |
visitSetStreamType(LIRSetStreamType self,
JExpression streamContext,
LIRStreamType streamType)
Visits a stream-type-setting node. |
void |
visitSetTape(LIRSetTape self,
JExpression streamContext,
JExpression srcStruct,
JExpression dstStruct,
CType type,
int size)
Visits a tape registerer. |
void |
visitSetWork(LIRSetWork self,
JExpression streamContext,
LIRFunctionPointer fn)
Visits a work-function-setting node. |
void |
visitVectorLiteral(JVectorLiteral self,
JLiteral scalar)
Visits a vector literal |
void |
visitWorkEntry(LIRWorkEntry self)
Visits a work function entry. |
void |
visitWorkExit(LIRWorkExit self)
Visits a work function exit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SLIREmptyVisitor()
Method Detail |
---|
public void visitInitStatement(SIRInitStatement self, SIRStream target)
visitInitStatement
in interface SLIRVisitor
public void visitInterfaceTable(SIRInterfaceTable self)
visitInterfaceTable
in interface SLIRVisitor
public void visitLatency(SIRLatency self)
visitLatency
in interface SLIRVisitor
public void visitLatencyMax(SIRLatencyMax self)
visitLatencyMax
in interface SLIRVisitor
public void visitLatencyRange(SIRLatencyRange self)
visitLatencyRange
in interface SLIRVisitor
public void visitLatencySet(SIRLatencySet self)
visitLatencySet
in interface SLIRVisitor
public void visitCreatePortalExpression(SIRCreatePortal self)
visitCreatePortalExpression
in interface SLIRVisitor
public void visitMessageStatement(SIRMessageStatement self, JExpression portal, String iname, String ident, JExpression[] args, SIRLatency latency)
visitMessageStatement
in interface SLIRVisitor
public void visitRangeExpression(SIRRangeExpression self)
visitRangeExpression
in interface SLIRVisitor
public void visitDynamicToken(SIRDynamicToken self)
visitDynamicToken
in interface SLIRVisitor
public void visitPeekExpression(SIRPeekExpression self, CType tapeType, JExpression arg)
visitPeekExpression
in interface SLIRVisitor
public void visitPopExpression(SIRPopExpression self, CType tapeType)
visitPopExpression
in interface SLIRVisitor
public void visitPortal(SIRPortal self)
visitPortal
in interface SLIRVisitor
public void visitPrintStatement(SIRPrintStatement self, JExpression arg)
visitPrintStatement
in interface SLIRVisitor
public void visitPushExpression(SIRPushExpression self, CType tapeType, JExpression arg)
visitPushExpression
in interface SLIRVisitor
public void visitRegReceiverStatement(SIRRegReceiverStatement self, JExpression portal, SIRStream receiver, JMethodDeclaration[] methods)
visitRegReceiverStatement
in interface SLIRVisitor
public void visitRegSenderStatement(SIRRegSenderStatement self, String portal, SIRLatency latency)
visitRegSenderStatement
in interface SLIRVisitor
public void visitMarker(SIRMarker self)
visitMarker
in interface SLIRVisitor
public void visitFunctionPointer(LIRFunctionPointer self, String name)
visitFunctionPointer
in interface SLIRVisitor
public void visitNode(LIRNode self)
visitNode
in interface SLIRVisitor
public void visitRegisterReceiver(LIRRegisterReceiver self, JExpression streamContext, SIRPortal portal, String childName, SIRInterfaceTable itable)
visitRegisterReceiver
in interface SLIRVisitor
public void visitSetChild(LIRSetChild self, JExpression streamContext, String childType, String childName)
visitSetChild
in interface SLIRVisitor
public void visitSetDecode(LIRSetDecode self, JExpression streamContext, LIRFunctionPointer fp)
visitSetDecode
in interface SLIRVisitor
public void visitSetDelay(LIRSetDelay self, JExpression data, JExpression streamContext, int delay, CType type, LIRFunctionPointer fp)
visitSetDelay
in interface SLIRVisitor
public void visitFileReader(LIRFileReader self)
visitFileReader
in interface SLIRVisitor
public void visitFileWriter(LIRFileWriter self)
visitFileWriter
in interface SLIRVisitor
public void visitIdentity(LIRIdentity self)
visitIdentity
in interface SLIRVisitor
public void visitSetEncode(LIRSetEncode self, JExpression streamContext, LIRFunctionPointer fp)
visitSetEncode
in interface SLIRVisitor
public void visitSetJoiner(LIRSetJoiner self, JExpression streamContext, SIRJoinType type, int ways, int[] weights)
visitSetJoiner
in interface SLIRVisitor
public void visitSetPeek(LIRSetPeek self, JExpression streamContext, int peek)
visitSetPeek
in interface SLIRVisitor
public void visitSetPop(LIRSetPop self, JExpression streamContext, int pop)
visitSetPop
in interface SLIRVisitor
public void visitSetPush(LIRSetPush self, JExpression streamContext, int push)
visitSetPush
in interface SLIRVisitor
public void visitSetSplitter(LIRSetSplitter self, JExpression streamContext, SIRSplitType type, int ways, int[] weights)
visitSetSplitter
in interface SLIRVisitor
public void visitSetStreamType(LIRSetStreamType self, JExpression streamContext, LIRStreamType streamType)
visitSetStreamType
in interface SLIRVisitor
public void visitSetWork(LIRSetWork self, JExpression streamContext, LIRFunctionPointer fn)
visitSetWork
in interface SLIRVisitor
public void visitSetTape(LIRSetTape self, JExpression streamContext, JExpression srcStruct, JExpression dstStruct, CType type, int size)
visitSetTape
in interface SLIRVisitor
public void visitMainFunction(LIRMainFunction self, String typeName, LIRFunctionPointer init, List<JStatement> initStatements)
visitMainFunction
in interface SLIRVisitor
public void visitSetBodyOfFeedback(LIRSetBodyOfFeedback self, JExpression streamContext, JExpression childContext, CType inputType, CType outputType, int inputSize, int outputSize)
visitSetBodyOfFeedback
in interface SLIRVisitor
public void visitSetLoopOfFeedback(LIRSetLoopOfFeedback self, JExpression streamContext, JExpression childContext, CType inputType, CType outputType, int inputSize, int outputSize)
visitSetLoopOfFeedback
in interface SLIRVisitor
public void visitSetParallelStream(LIRSetParallelStream self, JExpression streamContext, JExpression childContext, int position, CType inputType, CType outputType, int inputSize, int outputSize)
visitSetParallelStream
in interface SLIRVisitor
public void visitWorkEntry(LIRWorkEntry self)
visitWorkEntry
in interface SLIRVisitor
public void visitWorkExit(LIRWorkExit self)
visitWorkExit
in interface SLIRVisitor
public void visitInlineAssembly(InlineAssembly self, String[] asm, String[] input, String[] clobber)
public void visitVectorLiteral(JVectorLiteral self, JLiteral scalar)
visitVectorLiteral
in interface SLIRVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |