|
||||||||||
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
at.dms.kjc.common.ToCCommon
at.dms.kjc.lir.LIRToC
public class LIRToC
Field Summary | |
---|---|
protected HashMap<JArrayInitializer,String> |
arrayInitializers
Finds any assignments of static arrays in functions and replaces them with an assignment from a global pointer. |
protected String |
className
|
static String |
CONTEXT_NAME
|
protected boolean |
declOnly
|
protected boolean |
isStruct
|
protected boolean |
nl
|
protected int |
portalCount
|
protected Map<SIRPortal,String> |
portalNames
|
static String |
THIS_CONTEXT_NAME
|
static String |
THIS_NAME
|
Fields inherited from class at.dms.kjc.common.ToCCommon |
---|
alternatePrintsForTiming, hasBoolType, lastLeft, p, printPostfixMap, printPrefixMap |
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 |
Method Summary | |
---|---|
void |
close()
Close the stream at the end |
protected void |
declareInitializedArray(CType baseType,
String ident,
JExpression expr,
KjcVisitor visitor,
boolean printInit)
If printInit is true, the initializer is actually printed; otherwise just the declaration is printed. |
protected CType |
findBaseType(JArrayInitializer self)
Tries to find base type of |
protected int |
findNumDims(JArrayInitializer self)
Tries to find the number of dimensions of |
protected int |
findSize(JArrayInitializer self)
Returns the total number of elements in a multi-dimensional array. |
void |
gatherArrayInitializers(JClassDeclaration flat)
|
static void |
generateCode(JClassDeclaration flat)
Generates code for |
void |
visitArgs(JExpression[] args,
int base)
prints an array length expression |
void |
visitArrayAccessExpression(JArrayAccessExpression self,
JExpression prefix,
JExpression accessor)
prints an array access expression |
void |
visitArrayInitializer(JArrayInitializer self,
JExpression[] elems)
prints an array initializer expression |
void |
visitArrayLengthExpression(JArrayLengthExpression self,
JExpression prefix)
prints an array length expression |
void |
visitAssignmentExpression(JAssignmentExpression self,
JExpression left,
JExpression right)
prints an assignment expression |
void |
visitBinaryExpression(JBinaryExpression self,
String oper,
JExpression left,
JExpression right)
prints an binary expression |
void |
visitBitwiseExpression(JBitwiseExpression self,
int oper,
JExpression left,
JExpression right)
prints a compound assignment expression |
void |
visitBooleanLiteral(boolean value)
prints a boolean literal |
void |
visitByteLiteral(byte value)
prints a byte literal |
void |
visitCatchClause(JCatchClause self,
JFormalParameter exception,
JBlock body)
prints an array length expression |
void |
visitCharLiteral(char value)
prints a character literal |
void |
visitClassBody(JTypeDeclaration[] decls,
JFieldDeclaration[] fields,
JMethodDeclaration[] methods,
JPhylum[] body)
visits a class body |
void |
visitClassDeclaration(JClassDeclaration self,
int modifiers,
String ident,
String superName,
CClassType[] interfaces,
JPhylum[] body,
JFieldDeclaration[] fields,
JMethodDeclaration[] methods,
JTypeDeclaration[] decls)
prints a class declaration |
void |
visitClassImport(String name)
prints an array length expression |
void |
visitComment(JavaStyleComment comment)
prints a comment expression |
void |
visitComments(JavaStyleComment[] comments)
prints a comment expression |
void |
visitCompilationUnit(JCompilationUnit self,
JPackageName packageName,
JPackageImport[] importedPackages,
JClassImport[] importedClasses,
JTypeDeclaration[] typeDeclarations)
prints a compilation unit |
void |
visitConstructorCall(JConstructorCall self,
boolean functorIsThis,
JExpression[] params)
prints an array length expression |
void |
visitConstructorDeclaration(JConstructorDeclaration self,
int modifiers,
String ident,
JFormalParameter[] parameters,
CClassType[] exceptions,
JConstructorBlock body)
prints a method declaration |
void |
visitCreatePortalExpression(SIRCreatePortal self)
|
void |
visitDoubleLiteral(double value)
prints a double literal |
void |
visitDynamicToken(SIRDynamicToken self)
Visits a dynamic token. |
void |
visitEmptyStatement(JEmptyStatement self)
prints a empty statement |
void |
visitFieldDeclaration(JFieldDeclaration self,
int modifiers,
CType type,
String ident,
JExpression expr)
prints a field declaration |
void |
visitFieldExpression(JFieldAccessExpression self,
JExpression left,
String ident)
prints a field expression |
void |
visitFileReader(LIRFileReader self)
Visits a file reader. |
void |
visitFileWriter(LIRFileWriter self)
Visits a file writer. |
void |
visitFloatLiteral(float value)
prints a float literal |
void |
visitFormalParameters(JFormalParameter self,
boolean isFinal,
CType type,
String ident)
prints an array length expression |
void |
visitForStatement(JForStatement self,
JStatement init,
JExpression cond,
JStatement incr,
JStatement body)
prints a for statement |
void |
visitFunctionPointer(LIRFunctionPointer self,
String name)
Visits a function pointer. |
void |
visitIdentity(LIRIdentity self)
Visits an identity filter. |
void |
visitIfStatement(JIfStatement self,
JExpression cond,
JStatement thenClause,
JStatement elseClause)
prints a if statement |
void |
visitInitStatement(SIRInitStatement self,
SIRStream stream)
Visits an init statement. |
void |
visitInnerClassDeclaration(JClassDeclaration self,
int modifiers,
String ident,
String superName,
CClassType[] interfaces,
JTypeDeclaration[] decls,
JPhylum[] body,
JFieldDeclaration[] fields,
JMethodDeclaration[] methods)
prints a class declaration |
void |
visitInterfaceDeclaration(JInterfaceDeclaration self,
int modifiers,
String ident,
CClassType[] interfaces,
JPhylum[] body,
JMethodDeclaration[] methods)
prints an interface declaration |
void |
visitInterfaceTable(SIRInterfaceTable self)
Visits an interface table. |
void |
visitIntLiteral(int value)
prints a int literal |
void |
visitJavadoc(JavadocComment comment)
prints a Javadoc expression |
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 |
visitLongLiteral(long value)
prints a long literal |
void |
visitMainFunction(LIRMainFunction self,
String typeName,
LIRFunctionPointer init,
List<JStatement> initStatements)
Visits a main function contents. |
void |
visitMessageStatement(SIRMessageStatement self,
JExpression portal,
String iname,
String ident,
JExpression[] params,
SIRLatency latency)
Visits a message statement. |
void |
visitMethodCallExpression(JMethodCallExpression self,
JExpression prefix,
String ident,
JExpression[] args)
prints a method call expression |
void |
visitMethodDeclaration(JMethodDeclaration self,
int modifiers,
CType returnType,
String ident,
JFormalParameter[] parameters,
CClassType[] exceptions,
JBlock body)
prints a method declaration |
void |
visitNameExpression(JNameExpression self,
JExpression prefix,
String ident)
prints a name expression |
void |
visitNode(LIRNode self)
Visits an LIR node. |
void |
visitNullLiteral()
prints a null literal |
void |
visitPackageImport(String name)
prints an array length expression |
void |
visitPackageName(String name)
prints an array length expression |
void |
visitPeekExpression(SIRPeekExpression self,
CType tapeType,
JExpression num)
Visits a peek expression. |
void |
visitPopExpression(SIRPopExpression self,
CType tapeType)
Visits a pop expression. |
void |
visitPortal(SIRPortal self)
Visits a message-receiving portal. |
void |
visitPushExpression(SIRPushExpression self,
CType tapeType,
JExpression val)
Visits a push expression. |
void |
visitQualifiedAnonymousCreation(JQualifiedAnonymousCreation self,
JExpression prefix,
String ident,
JExpression[] params,
JClassDeclaration decl)
Prints an unqualified anonymous class instance creation expression. |
void |
visitQualifiedInstanceCreation(JQualifiedInstanceCreation self,
JExpression prefix,
String ident,
JExpression[] params)
Prints an unqualified instance creation 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 fn,
SIRLatency latency)
Visits a register-sender statement. |
void |
visitRelationalExpression(JRelationalExpression self,
int oper,
JExpression left,
JExpression right)
prints a shift expressiona |
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,
JExpression childContext)
Visits a child registration node. |
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 |
visitShortLiteral(short value)
prints a short literal |
void |
visitStringLiteral(String value)
prints a string literal |
void |
visitSuperExpression(JSuperExpression self)
prints a super expression |
void |
visitSwitchGroup(JSwitchGroup self,
JSwitchLabel[] labels,
JStatement[] stmts)
prints an array length expression |
void |
visitSwitchLabel(JSwitchLabel self,
JExpression expr)
prints an array length expression |
void |
visitSynchronizedStatement(JSynchronizedStatement self,
JExpression cond,
JStatement body)
prints a synchronized statement |
void |
visitThisExpression(JThisExpression self,
JExpression prefix)
prints a this expression |
void |
visitThrowStatement(JThrowStatement self,
JExpression expr)
prints a throw statement |
void |
visitTryCatchStatement(JTryCatchStatement self,
JBlock tryClause,
JCatchClause[] catchClauses)
prints a try-catch statement |
void |
visitTryFinallyStatement(JTryFinallyStatement self,
JBlock tryClause,
JBlock finallyClause)
prints a try-finally statement |
void |
visitUnqualifiedAnonymousCreation(JUnqualifiedAnonymousCreation self,
CClassType type,
JExpression[] params,
JClassDeclaration decl)
Prints an unqualified anonymous class instance creation expression. |
void |
visitUnqualifiedInstanceCreation(JUnqualifiedInstanceCreation self,
CClassType type,
JExpression[] params)
Prints an unqualified instance creation expression. |
void |
visitVariableDefinition(JVariableDefinition self,
int modifiers,
CType type,
String ident,
JExpression expr)
prints a variable declaration statement |
void |
visitWorkEntry(LIRWorkEntry self)
Visits a work function entry. |
void |
visitWorkExit(LIRWorkExit self)
Visits a work function exit. |
Methods inherited from class at.dms.kjc.SLIREmptyVisitor |
---|
visitInlineAssembly, visitVectorLiteral |
Methods inherited from class at.dms.kjc.KjcEmptyVisitor |
---|
visitArgs, visitInstanceofExpression, visitNewArrayExpression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface at.dms.kjc.common.CodeGenerator |
---|
getPrinter |
Field Detail |
---|
public static final String THIS_NAME
public static final String CONTEXT_NAME
public static final String THIS_CONTEXT_NAME
protected HashMap<JArrayInitializer,String> arrayInitializers
protected String className
protected boolean isStruct
protected boolean nl
protected boolean declOnly
protected int portalCount
protected Map<SIRPortal,String> portalNames
Method Detail |
---|
public static void generateCode(JClassDeclaration flat)
public void close()
public void visitCompilationUnit(JCompilationUnit self, JPackageName packageName, JPackageImport[] importedPackages, JClassImport[] importedClasses, JTypeDeclaration[] typeDeclarations)
visitCompilationUnit
in interface KjcVisitor
visitCompilationUnit
in class KjcEmptyVisitor
public void visitClassDeclaration(JClassDeclaration self, int modifiers, String ident, String superName, CClassType[] interfaces, JPhylum[] body, JFieldDeclaration[] fields, JMethodDeclaration[] methods, JTypeDeclaration[] decls)
visitClassDeclaration
in interface KjcVisitor
visitClassDeclaration
in class KjcEmptyVisitor
public void visitClassBody(JTypeDeclaration[] decls, JFieldDeclaration[] fields, JMethodDeclaration[] methods, JPhylum[] body)
KjcVisitor
visitClassBody
in interface KjcVisitor
visitClassBody
in class KjcEmptyVisitor
public void visitInnerClassDeclaration(JClassDeclaration self, int modifiers, String ident, String superName, CClassType[] interfaces, JTypeDeclaration[] decls, JPhylum[] body, JFieldDeclaration[] fields, JMethodDeclaration[] methods)
visitInnerClassDeclaration
in interface KjcVisitor
visitInnerClassDeclaration
in class KjcEmptyVisitor
public void visitInterfaceDeclaration(JInterfaceDeclaration self, int modifiers, String ident, CClassType[] interfaces, JPhylum[] body, JMethodDeclaration[] methods)
visitInterfaceDeclaration
in interface KjcVisitor
visitInterfaceDeclaration
in class KjcEmptyVisitor
public void visitFieldDeclaration(JFieldDeclaration self, int modifiers, CType type, String ident, JExpression expr)
visitFieldDeclaration
in interface KjcVisitor
visitFieldDeclaration
in class KjcEmptyVisitor
public void visitMethodDeclaration(JMethodDeclaration self, int modifiers, CType returnType, String ident, JFormalParameter[] parameters, CClassType[] exceptions, JBlock body)
visitMethodDeclaration
in interface KjcVisitor
visitMethodDeclaration
in class KjcEmptyVisitor
public void visitConstructorDeclaration(JConstructorDeclaration self, int modifiers, String ident, JFormalParameter[] parameters, CClassType[] exceptions, JConstructorBlock body)
visitConstructorDeclaration
in interface KjcVisitor
visitConstructorDeclaration
in class KjcEmptyVisitor
public void visitVariableDefinition(JVariableDefinition self, int modifiers, CType type, String ident, JExpression expr)
visitVariableDefinition
in interface KjcVisitor
visitVariableDefinition
in class KjcEmptyVisitor
public void visitTryCatchStatement(JTryCatchStatement self, JBlock tryClause, JCatchClause[] catchClauses)
visitTryCatchStatement
in interface KjcVisitor
visitTryCatchStatement
in class KjcEmptyVisitor
public void visitTryFinallyStatement(JTryFinallyStatement self, JBlock tryClause, JBlock finallyClause)
visitTryFinallyStatement
in interface KjcVisitor
visitTryFinallyStatement
in class KjcEmptyVisitor
public void visitThrowStatement(JThrowStatement self, JExpression expr)
visitThrowStatement
in interface KjcVisitor
visitThrowStatement
in class KjcEmptyVisitor
public void visitSynchronizedStatement(JSynchronizedStatement self, JExpression cond, JStatement body)
visitSynchronizedStatement
in interface KjcVisitor
visitSynchronizedStatement
in class KjcEmptyVisitor
public void visitIfStatement(JIfStatement self, JExpression cond, JStatement thenClause, JStatement elseClause)
visitIfStatement
in interface KjcVisitor
visitIfStatement
in class KjcEmptyVisitor
public void visitForStatement(JForStatement self, JStatement init, JExpression cond, JStatement incr, JStatement body)
visitForStatement
in interface KjcVisitor
visitForStatement
in class ToCCommon
public void visitEmptyStatement(JEmptyStatement self)
visitEmptyStatement
in interface KjcVisitor
visitEmptyStatement
in class ToCCommon
public void visitThisExpression(JThisExpression self, JExpression prefix)
visitThisExpression
in interface KjcVisitor
visitThisExpression
in class KjcEmptyVisitor
public void visitSuperExpression(JSuperExpression self)
visitSuperExpression
in interface KjcVisitor
visitSuperExpression
in class KjcEmptyVisitor
public void visitRelationalExpression(JRelationalExpression self, int oper, JExpression left, JExpression right)
visitRelationalExpression
in interface KjcVisitor
visitRelationalExpression
in class KjcEmptyVisitor
public void visitQualifiedAnonymousCreation(JQualifiedAnonymousCreation self, JExpression prefix, String ident, JExpression[] params, JClassDeclaration decl)
visitQualifiedAnonymousCreation
in interface KjcVisitor
visitQualifiedAnonymousCreation
in class KjcEmptyVisitor
public void visitQualifiedInstanceCreation(JQualifiedInstanceCreation self, JExpression prefix, String ident, JExpression[] params)
visitQualifiedInstanceCreation
in interface KjcVisitor
visitQualifiedInstanceCreation
in class KjcEmptyVisitor
public void visitUnqualifiedAnonymousCreation(JUnqualifiedAnonymousCreation self, CClassType type, JExpression[] params, JClassDeclaration decl)
visitUnqualifiedAnonymousCreation
in interface KjcVisitor
visitUnqualifiedAnonymousCreation
in class KjcEmptyVisitor
public void visitUnqualifiedInstanceCreation(JUnqualifiedInstanceCreation self, CClassType type, JExpression[] params)
visitUnqualifiedInstanceCreation
in interface KjcVisitor
visitUnqualifiedInstanceCreation
in class KjcEmptyVisitor
public void visitNameExpression(JNameExpression self, JExpression prefix, String ident)
visitNameExpression
in interface KjcVisitor
visitNameExpression
in class KjcEmptyVisitor
public void visitBinaryExpression(JBinaryExpression self, String oper, JExpression left, JExpression right)
visitBinaryExpression
in interface KjcVisitor
visitBinaryExpression
in class KjcEmptyVisitor
public void visitMethodCallExpression(JMethodCallExpression self, JExpression prefix, String ident, JExpression[] args)
visitMethodCallExpression
in interface KjcVisitor
visitMethodCallExpression
in class KjcEmptyVisitor
public void visitFieldExpression(JFieldAccessExpression self, JExpression left, String ident)
visitFieldExpression
in interface KjcVisitor
visitFieldExpression
in class KjcEmptyVisitor
public void visitBitwiseExpression(JBitwiseExpression self, int oper, JExpression left, JExpression right)
visitBitwiseExpression
in interface KjcVisitor
visitBitwiseExpression
in class KjcEmptyVisitor
public void visitAssignmentExpression(JAssignmentExpression self, JExpression left, JExpression right)
visitAssignmentExpression
in interface KjcVisitor
visitAssignmentExpression
in class KjcEmptyVisitor
public void visitArrayLengthExpression(JArrayLengthExpression self, JExpression prefix)
visitArrayLengthExpression
in interface KjcVisitor
visitArrayLengthExpression
in class KjcEmptyVisitor
public void visitArrayAccessExpression(JArrayAccessExpression self, JExpression prefix, JExpression accessor)
visitArrayAccessExpression
in interface KjcVisitor
visitArrayAccessExpression
in class KjcEmptyVisitor
public void visitComments(JavaStyleComment[] comments)
visitComments
in interface KjcVisitor
visitComments
in class KjcEmptyVisitor
public void visitComment(JavaStyleComment comment)
visitComment
in interface KjcVisitor
visitComment
in class KjcEmptyVisitor
public void visitJavadoc(JavadocComment comment)
visitJavadoc
in interface KjcVisitor
visitJavadoc
in class KjcEmptyVisitor
public void visitCreatePortalExpression(SIRCreatePortal self)
visitCreatePortalExpression
in interface SLIRVisitor
visitCreatePortalExpression
in class SLIREmptyVisitor
public void visitInitStatement(SIRInitStatement self, SIRStream stream)
SLIREmptyVisitor
visitInitStatement
in interface SLIRVisitor
visitInitStatement
in class SLIREmptyVisitor
public void visitInterfaceTable(SIRInterfaceTable self)
SLIREmptyVisitor
visitInterfaceTable
in interface SLIRVisitor
visitInterfaceTable
in class SLIREmptyVisitor
public void visitLatency(SIRLatency self)
SLIREmptyVisitor
visitLatency
in interface SLIRVisitor
visitLatency
in class SLIREmptyVisitor
public void visitLatencyMax(SIRLatencyMax self)
SLIREmptyVisitor
visitLatencyMax
in interface SLIRVisitor
visitLatencyMax
in class SLIREmptyVisitor
public void visitLatencyRange(SIRLatencyRange self)
SLIREmptyVisitor
visitLatencyRange
in interface SLIRVisitor
visitLatencyRange
in class SLIREmptyVisitor
public void visitLatencySet(SIRLatencySet self)
SLIREmptyVisitor
visitLatencySet
in interface SLIRVisitor
visitLatencySet
in class SLIREmptyVisitor
public void visitMessageStatement(SIRMessageStatement self, JExpression portal, String iname, String ident, JExpression[] params, SIRLatency latency)
SLIREmptyVisitor
visitMessageStatement
in interface SLIRVisitor
visitMessageStatement
in class SLIREmptyVisitor
public void visitRangeExpression(SIRRangeExpression self)
SLIREmptyVisitor
visitRangeExpression
in interface SLIRVisitor
visitRangeExpression
in class SLIREmptyVisitor
public void visitDynamicToken(SIRDynamicToken self)
SLIREmptyVisitor
visitDynamicToken
in interface SLIRVisitor
visitDynamicToken
in class SLIREmptyVisitor
public void visitPeekExpression(SIRPeekExpression self, CType tapeType, JExpression num)
SLIREmptyVisitor
visitPeekExpression
in interface SLIRVisitor
visitPeekExpression
in class SLIREmptyVisitor
public void visitPopExpression(SIRPopExpression self, CType tapeType)
SLIREmptyVisitor
visitPopExpression
in interface SLIRVisitor
visitPopExpression
in class SLIREmptyVisitor
public void visitPortal(SIRPortal self)
SLIREmptyVisitor
visitPortal
in interface SLIRVisitor
visitPortal
in class SLIREmptyVisitor
public void visitPushExpression(SIRPushExpression self, CType tapeType, JExpression val)
SLIREmptyVisitor
visitPushExpression
in interface SLIRVisitor
visitPushExpression
in class SLIREmptyVisitor
public void visitRegReceiverStatement(SIRRegReceiverStatement self, JExpression portal, SIRStream receiver, JMethodDeclaration[] methods)
SLIREmptyVisitor
visitRegReceiverStatement
in interface SLIRVisitor
visitRegReceiverStatement
in class SLIREmptyVisitor
public void visitRegSenderStatement(SIRRegSenderStatement self, String fn, SIRLatency latency)
SLIREmptyVisitor
visitRegSenderStatement
in interface SLIRVisitor
visitRegSenderStatement
in class SLIREmptyVisitor
public void visitFileReader(LIRFileReader self)
visitFileReader
in interface SLIRVisitor
visitFileReader
in class SLIREmptyVisitor
public void visitFileWriter(LIRFileWriter self)
visitFileWriter
in interface SLIRVisitor
visitFileWriter
in class SLIREmptyVisitor
public void visitIdentity(LIRIdentity self)
visitIdentity
in interface SLIRVisitor
visitIdentity
in class SLIREmptyVisitor
public void visitSetChild(LIRSetChild self, JExpression streamContext, String childType, String childName)
SLIREmptyVisitor
visitSetChild
in interface SLIRVisitor
visitSetChild
in class SLIREmptyVisitor
public void visitSetTape(LIRSetTape self, JExpression streamContext, JExpression srcStruct, JExpression dstStruct, CType type, int size)
SLIREmptyVisitor
visitSetTape
in interface SLIRVisitor
visitSetTape
in class SLIREmptyVisitor
public void visitFunctionPointer(LIRFunctionPointer self, String name)
visitFunctionPointer
in interface SLIRVisitor
visitFunctionPointer
in class SLIREmptyVisitor
public void visitNode(LIRNode self)
visitNode
in interface SLIRVisitor
visitNode
in class SLIREmptyVisitor
public void visitRegisterReceiver(LIRRegisterReceiver self, JExpression streamContext, SIRPortal portal, String childName, SIRInterfaceTable itable)
visitRegisterReceiver
in interface SLIRVisitor
visitRegisterReceiver
in class SLIREmptyVisitor
public void visitSetChild(LIRSetChild self, JExpression streamContext, JExpression childContext)
public void visitSetDecode(LIRSetDecode self, JExpression streamContext, LIRFunctionPointer fp)
visitSetDecode
in interface SLIRVisitor
visitSetDecode
in class SLIREmptyVisitor
public void visitSetDelay(LIRSetDelay self, JExpression data, JExpression streamContext, int delay, CType type, LIRFunctionPointer fp)
visitSetDelay
in interface SLIRVisitor
visitSetDelay
in class SLIREmptyVisitor
public void visitSetEncode(LIRSetEncode self, JExpression streamContext, LIRFunctionPointer fp)
visitSetEncode
in interface SLIRVisitor
visitSetEncode
in class SLIREmptyVisitor
public void visitSetJoiner(LIRSetJoiner self, JExpression streamContext, SIRJoinType type, int ways, int[] weights)
visitSetJoiner
in interface SLIRVisitor
visitSetJoiner
in class SLIREmptyVisitor
public void visitSetPeek(LIRSetPeek self, JExpression streamContext, int peek)
visitSetPeek
in interface SLIRVisitor
visitSetPeek
in class SLIREmptyVisitor
public void visitSetPop(LIRSetPop self, JExpression streamContext, int pop)
visitSetPop
in interface SLIRVisitor
visitSetPop
in class SLIREmptyVisitor
public void visitSetPush(LIRSetPush self, JExpression streamContext, int push)
visitSetPush
in interface SLIRVisitor
visitSetPush
in class SLIREmptyVisitor
public void visitSetSplitter(LIRSetSplitter self, JExpression streamContext, SIRSplitType type, int ways, int[] weights)
visitSetSplitter
in interface SLIRVisitor
visitSetSplitter
in class SLIREmptyVisitor
public void visitSetStreamType(LIRSetStreamType self, JExpression streamContext, LIRStreamType streamType)
visitSetStreamType
in interface SLIRVisitor
visitSetStreamType
in class SLIREmptyVisitor
public void visitSetWork(LIRSetWork self, JExpression streamContext, LIRFunctionPointer fn)
visitSetWork
in interface SLIRVisitor
visitSetWork
in class SLIREmptyVisitor
public void visitMainFunction(LIRMainFunction self, String typeName, LIRFunctionPointer init, List<JStatement> initStatements)
SLIREmptyVisitor
visitMainFunction
in interface SLIRVisitor
visitMainFunction
in class SLIREmptyVisitor
public void visitSetBodyOfFeedback(LIRSetBodyOfFeedback self, JExpression streamContext, JExpression childContext, CType inputType, CType outputType, int inputSize, int outputSize)
visitSetBodyOfFeedback
in interface SLIRVisitor
visitSetBodyOfFeedback
in class SLIREmptyVisitor
public void visitSetLoopOfFeedback(LIRSetLoopOfFeedback self, JExpression streamContext, JExpression childContext, CType inputType, CType outputType, int inputSize, int outputSize)
visitSetLoopOfFeedback
in interface SLIRVisitor
visitSetLoopOfFeedback
in class SLIREmptyVisitor
public void visitSetParallelStream(LIRSetParallelStream self, JExpression streamContext, JExpression childContext, int position, CType inputType, CType outputType, int inputSize, int outputSize)
visitSetParallelStream
in interface SLIRVisitor
visitSetParallelStream
in class SLIREmptyVisitor
public void visitWorkEntry(LIRWorkEntry self)
visitWorkEntry
in interface SLIRVisitor
visitWorkEntry
in class SLIREmptyVisitor
public void visitWorkExit(LIRWorkExit self)
visitWorkExit
in interface SLIRVisitor
visitWorkExit
in class SLIREmptyVisitor
public void visitSwitchLabel(JSwitchLabel self, JExpression expr)
visitSwitchLabel
in interface KjcVisitor
visitSwitchLabel
in class KjcEmptyVisitor
public void visitSwitchGroup(JSwitchGroup self, JSwitchLabel[] labels, JStatement[] stmts)
visitSwitchGroup
in interface KjcVisitor
visitSwitchGroup
in class KjcEmptyVisitor
public void visitCatchClause(JCatchClause self, JFormalParameter exception, JBlock body)
visitCatchClause
in interface KjcVisitor
visitCatchClause
in class KjcEmptyVisitor
public void visitBooleanLiteral(boolean value)
visitBooleanLiteral
in interface KjcVisitor
visitBooleanLiteral
in class KjcEmptyVisitor
public void visitByteLiteral(byte value)
visitByteLiteral
in interface KjcVisitor
visitByteLiteral
in class KjcEmptyVisitor
public void visitCharLiteral(char value)
visitCharLiteral
in interface KjcVisitor
visitCharLiteral
in class KjcEmptyVisitor
public void visitDoubleLiteral(double value)
visitDoubleLiteral
in interface KjcVisitor
visitDoubleLiteral
in class KjcEmptyVisitor
public void visitFloatLiteral(float value)
visitFloatLiteral
in interface KjcVisitor
visitFloatLiteral
in class KjcEmptyVisitor
public void visitIntLiteral(int value)
visitIntLiteral
in interface KjcVisitor
visitIntLiteral
in class KjcEmptyVisitor
public void visitLongLiteral(long value)
visitLongLiteral
in interface KjcVisitor
visitLongLiteral
in class KjcEmptyVisitor
public void visitShortLiteral(short value)
visitShortLiteral
in interface KjcVisitor
visitShortLiteral
in class KjcEmptyVisitor
public void visitStringLiteral(String value)
visitStringLiteral
in interface KjcVisitor
visitStringLiteral
in class KjcEmptyVisitor
public void visitNullLiteral()
visitNullLiteral
in interface KjcVisitor
visitNullLiteral
in class KjcEmptyVisitor
public void visitPackageName(String name)
visitPackageName
in interface KjcVisitor
visitPackageName
in class KjcEmptyVisitor
public void visitPackageImport(String name)
visitPackageImport
in interface KjcVisitor
visitPackageImport
in class KjcEmptyVisitor
public void visitClassImport(String name)
visitClassImport
in interface KjcVisitor
visitClassImport
in class KjcEmptyVisitor
public void visitFormalParameters(JFormalParameter self, boolean isFinal, CType type, String ident)
visitFormalParameters
in interface KjcVisitor
visitFormalParameters
in class KjcEmptyVisitor
public void visitArgs(JExpression[] args, int base)
public void visitConstructorCall(JConstructorCall self, boolean functorIsThis, JExpression[] params)
visitConstructorCall
in interface KjcVisitor
visitConstructorCall
in class KjcEmptyVisitor
public void visitArrayInitializer(JArrayInitializer self, JExpression[] elems)
visitArrayInitializer
in interface KjcVisitor
visitArrayInitializer
in class KjcEmptyVisitor
protected int findNumDims(JArrayInitializer self)
protected int findSize(JArrayInitializer self)
protected CType findBaseType(JArrayInitializer self)
protected void declareInitializedArray(CType baseType, String ident, JExpression expr, KjcVisitor visitor, boolean printInit)
public void gatherArrayInitializers(JClassDeclaration flat)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |