|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.EmptyAttributeVisitor
at.dms.kjc.ReplacingVisitor
at.dms.kjc.SLIRReplacingVisitor
public class SLIRReplacingVisitor
This is just like ReplacingVisitor except for SLIR nodes, too. Right now it only replaces statements in children.
| Field Summary |
|---|
| Fields inherited from class at.dms.kjc.EmptyAttributeVisitor |
|---|
forwards |
| 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 | |
|---|---|
SLIRReplacingVisitor()
|
|
| Method Summary | |
|---|---|
Object |
visitCreatePortalExpression(SIRCreatePortal self)
|
Object |
visitDynamicToken(SIRDynamicToken self)
Visits a dynamic token. |
Object |
visitFileReader(LIRFileReader self)
Visits a file reader. |
Object |
visitFileWriter(LIRFileWriter self)
Visits a file writer. |
Object |
visitFunctionPointer(LIRFunctionPointer self,
String name)
Visits a function pointer. |
Object |
visitInitStatement(SIRInitStatement self,
SIRStream target)
Visits an init statement. |
Object |
visitInterfaceTable(SIRInterfaceTable self)
Visits an interface table. |
Object |
visitLatency(SIRLatency self)
Visits a latency. |
Object |
visitLatencyMax(SIRLatencyMax self)
Visits a max latency. |
Object |
visitLatencyRange(SIRLatencyRange self)
Visits a latency range. |
Object |
visitLatencySet(SIRLatencySet self)
Visits a latency set. |
Object |
visitMainFunction(LIRMainFunction self,
String typeName,
LIRFunctionPointer init,
List<JStatement> initStatements)
Visits a main function contents. |
Object |
visitMarker(SIRMarker self)
Visit SIRMarker. |
Object |
visitMessageStatement(SIRMessageStatement self,
JExpression portal,
String iname,
String ident,
JExpression[] args,
SIRLatency latency)
Visits a message statement. |
Object |
visitNode(LIRNode self)
Visits an LIR node. |
Object |
visitPeekExpression(SIRPeekExpression self,
CType tapeType,
JExpression arg)
Visits a peek expression. |
Object |
visitPopExpression(SIRPopExpression self,
CType tapeType)
Visits a pop expression. |
Object |
visitPortal(SIRPortal self)
Visits a message-receiving portal. |
Object |
visitPrintStatement(SIRPrintStatement self,
JExpression arg)
Visits a print statement. |
Object |
visitPushExpression(SIRPushExpression self,
CType tapeType,
JExpression arg)
Visits a push expression. |
Object |
visitRangeExpression(SIRRangeExpression self)
Visits a range expression. |
Object |
visitRegReceiverStatement(SIRRegReceiverStatement self,
JExpression portal,
SIRStream receiver,
JMethodDeclaration[] methods)
Visits a register-receiver statement. |
Object |
visitRegSenderStatement(SIRRegSenderStatement self,
String portal,
SIRLatency latency)
Visits a register-sender statement. |
Object |
visitSetBodyOfFeedback(LIRSetBodyOfFeedback self,
JExpression streamContext,
JExpression childContext,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
Visits a set body of feedback loop. |
Object |
visitSetChild(LIRSetChild self,
JExpression streamContext,
String childType,
String childName)
Visits a child registration node. |
Object |
visitSetDecode(LIRSetDecode self,
JExpression streamContext,
LIRFunctionPointer fp)
Visits a decoder registration node. |
Object |
visitSetDelay(LIRSetDelay self,
JExpression data,
JExpression streamContext,
int delay,
CType type,
LIRFunctionPointer fp)
Visits a feedback loop delay node. |
Object |
visitSetEncode(LIRSetEncode self,
JExpression streamContext,
LIRFunctionPointer fp)
Visits an encoder registration node. |
Object |
visitSetJoiner(LIRSetJoiner self,
JExpression streamContext,
SIRJoinType type,
int ways,
int[] weights)
Visits a joiner-setting node. |
Object |
visitSetLoopOfFeedback(LIRSetLoopOfFeedback self,
JExpression streamContext,
JExpression childContext,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
Visits a set loop of feedback loop. |
Object |
visitSetParallelStream(LIRSetParallelStream self,
JExpression streamContext,
JExpression childContext,
int position,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
Visits a set a parallel stream. |
Object |
visitSetPeek(LIRSetPeek self,
JExpression streamContext,
int peek)
Visits a peek-rate-setting node. |
Object |
visitSetPop(LIRSetPop self,
JExpression streamContext,
int pop)
Visits a pop-rate-setting node. |
Object |
visitSetPush(LIRSetPush self,
JExpression streamContext,
int push)
Visits a push-rate-setting node. |
Object |
visitSetSplitter(LIRSetSplitter self,
JExpression streamContext,
SIRSplitType type,
int ways,
int[] weights)
Visits a splitter-setting node. |
Object |
visitSetStreamType(LIRSetStreamType self,
JExpression streamContext,
LIRStreamType streamType)
Visits a stream-type-setting node. |
Object |
visitSetTape(LIRSetTape self,
JExpression streamContext,
JExpression srcStruct,
JExpression dstStruct,
CType type,
int size)
Visits a tape registerer. |
Object |
visitSetWork(LIRSetWork self,
JExpression streamContext,
LIRFunctionPointer fn)
Visits a work-function-setting node. |
Object |
visitVectorLiteral(JVectorLiteral self,
JLiteral scalar)
Visits a vector literal expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SLIRReplacingVisitor()
| Method Detail |
|---|
public Object visitInitStatement(SIRInitStatement self,
SIRStream target)
visitInitStatement in interface SLIRAttributeVisitor<Object>public Object visitInterfaceTable(SIRInterfaceTable self)
visitInterfaceTable in interface SLIRAttributeVisitor<Object>public Object visitLatency(SIRLatency self)
visitLatency in interface SLIRAttributeVisitor<Object>public Object visitLatencyMax(SIRLatencyMax self)
visitLatencyMax in interface SLIRAttributeVisitor<Object>public Object visitLatencyRange(SIRLatencyRange self)
visitLatencyRange in interface SLIRAttributeVisitor<Object>public Object visitLatencySet(SIRLatencySet self)
visitLatencySet in interface SLIRAttributeVisitor<Object>public Object visitCreatePortalExpression(SIRCreatePortal self)
visitCreatePortalExpression in interface SLIRAttributeVisitor<Object>
public Object visitMessageStatement(SIRMessageStatement self,
JExpression portal,
String iname,
String ident,
JExpression[] args,
SIRLatency latency)
visitMessageStatement in interface SLIRAttributeVisitor<Object>public Object visitRangeExpression(SIRRangeExpression self)
visitRangeExpression in interface SLIRAttributeVisitor<Object>public Object visitDynamicToken(SIRDynamicToken self)
visitDynamicToken in interface SLIRAttributeVisitor<Object>
public Object visitPeekExpression(SIRPeekExpression self,
CType tapeType,
JExpression arg)
visitPeekExpression in interface SLIRAttributeVisitor<Object>
public Object visitPopExpression(SIRPopExpression self,
CType tapeType)
visitPopExpression in interface SLIRAttributeVisitor<Object>public Object visitPortal(SIRPortal self)
visitPortal in interface SLIRAttributeVisitor<Object>
public Object visitPrintStatement(SIRPrintStatement self,
JExpression arg)
visitPrintStatement in interface SLIRAttributeVisitor<Object>
public Object visitPushExpression(SIRPushExpression self,
CType tapeType,
JExpression arg)
visitPushExpression in interface SLIRAttributeVisitor<Object>
public Object visitVectorLiteral(JVectorLiteral self,
JLiteral scalar)
visitVectorLiteral in interface SLIRAttributeVisitor<Object>
public Object visitRegReceiverStatement(SIRRegReceiverStatement self,
JExpression portal,
SIRStream receiver,
JMethodDeclaration[] methods)
visitRegReceiverStatement in interface SLIRAttributeVisitor<Object>
public Object visitRegSenderStatement(SIRRegSenderStatement self,
String portal,
SIRLatency latency)
visitRegSenderStatement in interface SLIRAttributeVisitor<Object>public Object visitMarker(SIRMarker self)
visitMarker in interface SLIRAttributeVisitor<Object>
public Object visitFunctionPointer(LIRFunctionPointer self,
String name)
visitFunctionPointer in interface SLIRAttributeVisitor<Object>public Object visitNode(LIRNode self)
visitNode in interface SLIRAttributeVisitor<Object>
public Object visitSetChild(LIRSetChild self,
JExpression streamContext,
String childType,
String childName)
visitSetChild in interface SLIRAttributeVisitor<Object>public Object visitFileReader(LIRFileReader self)
visitFileReader in interface SLIRAttributeVisitor<Object>public Object visitFileWriter(LIRFileWriter self)
visitFileWriter in interface SLIRAttributeVisitor<Object>
public Object visitSetDecode(LIRSetDecode self,
JExpression streamContext,
LIRFunctionPointer fp)
visitSetDecode in interface SLIRAttributeVisitor<Object>
public Object visitSetDelay(LIRSetDelay self,
JExpression data,
JExpression streamContext,
int delay,
CType type,
LIRFunctionPointer fp)
visitSetDelay in interface SLIRAttributeVisitor<Object>
public Object visitSetEncode(LIRSetEncode self,
JExpression streamContext,
LIRFunctionPointer fp)
visitSetEncode in interface SLIRAttributeVisitor<Object>
public Object visitSetJoiner(LIRSetJoiner self,
JExpression streamContext,
SIRJoinType type,
int ways,
int[] weights)
visitSetJoiner in interface SLIRAttributeVisitor<Object>
public Object visitSetPeek(LIRSetPeek self,
JExpression streamContext,
int peek)
visitSetPeek in interface SLIRAttributeVisitor<Object>
public Object visitSetPop(LIRSetPop self,
JExpression streamContext,
int pop)
visitSetPop in interface SLIRAttributeVisitor<Object>
public Object visitSetPush(LIRSetPush self,
JExpression streamContext,
int push)
visitSetPush in interface SLIRAttributeVisitor<Object>
public Object visitSetSplitter(LIRSetSplitter self,
JExpression streamContext,
SIRSplitType type,
int ways,
int[] weights)
visitSetSplitter in interface SLIRAttributeVisitor<Object>
public Object visitSetStreamType(LIRSetStreamType self,
JExpression streamContext,
LIRStreamType streamType)
visitSetStreamType in interface SLIRAttributeVisitor<Object>
public Object visitSetWork(LIRSetWork self,
JExpression streamContext,
LIRFunctionPointer fn)
visitSetWork in interface SLIRAttributeVisitor<Object>
public Object visitSetTape(LIRSetTape self,
JExpression streamContext,
JExpression srcStruct,
JExpression dstStruct,
CType type,
int size)
visitSetTape in interface SLIRAttributeVisitor<Object>
public Object visitMainFunction(LIRMainFunction self,
String typeName,
LIRFunctionPointer init,
List<JStatement> initStatements)
visitMainFunction in interface SLIRAttributeVisitor<Object>
public Object visitSetBodyOfFeedback(LIRSetBodyOfFeedback self,
JExpression streamContext,
JExpression childContext,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
visitSetBodyOfFeedback in interface SLIRAttributeVisitor<Object>
public Object visitSetLoopOfFeedback(LIRSetLoopOfFeedback self,
JExpression streamContext,
JExpression childContext,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
visitSetLoopOfFeedback in interface SLIRAttributeVisitor<Object>
public Object visitSetParallelStream(LIRSetParallelStream self,
JExpression streamContext,
JExpression childContext,
int position,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
visitSetParallelStream in interface SLIRAttributeVisitor<Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||