|
||||||||||
| 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 KjcVisitorvisitCompilationUnit 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 KjcVisitorvisitClassDeclaration in class KjcEmptyVisitor
public void visitClassBody(JTypeDeclaration[] decls,
JFieldDeclaration[] fields,
JMethodDeclaration[] methods,
JPhylum[] body)
KjcVisitor
visitClassBody in interface KjcVisitorvisitClassBody 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 KjcVisitorvisitInnerClassDeclaration in class KjcEmptyVisitor
public void visitInterfaceDeclaration(JInterfaceDeclaration self,
int modifiers,
String ident,
CClassType[] interfaces,
JPhylum[] body,
JMethodDeclaration[] methods)
visitInterfaceDeclaration in interface KjcVisitorvisitInterfaceDeclaration in class KjcEmptyVisitor
public void visitFieldDeclaration(JFieldDeclaration self,
int modifiers,
CType type,
String ident,
JExpression expr)
visitFieldDeclaration in interface KjcVisitorvisitFieldDeclaration in class KjcEmptyVisitor
public void visitMethodDeclaration(JMethodDeclaration self,
int modifiers,
CType returnType,
String ident,
JFormalParameter[] parameters,
CClassType[] exceptions,
JBlock body)
visitMethodDeclaration in interface KjcVisitorvisitMethodDeclaration in class KjcEmptyVisitor
public void visitConstructorDeclaration(JConstructorDeclaration self,
int modifiers,
String ident,
JFormalParameter[] parameters,
CClassType[] exceptions,
JConstructorBlock body)
visitConstructorDeclaration in interface KjcVisitorvisitConstructorDeclaration in class KjcEmptyVisitor
public void visitVariableDefinition(JVariableDefinition self,
int modifiers,
CType type,
String ident,
JExpression expr)
visitVariableDefinition in interface KjcVisitorvisitVariableDefinition in class KjcEmptyVisitor
public void visitTryCatchStatement(JTryCatchStatement self,
JBlock tryClause,
JCatchClause[] catchClauses)
visitTryCatchStatement in interface KjcVisitorvisitTryCatchStatement in class KjcEmptyVisitor
public void visitTryFinallyStatement(JTryFinallyStatement self,
JBlock tryClause,
JBlock finallyClause)
visitTryFinallyStatement in interface KjcVisitorvisitTryFinallyStatement in class KjcEmptyVisitor
public void visitThrowStatement(JThrowStatement self,
JExpression expr)
visitThrowStatement in interface KjcVisitorvisitThrowStatement in class KjcEmptyVisitor
public void visitSynchronizedStatement(JSynchronizedStatement self,
JExpression cond,
JStatement body)
visitSynchronizedStatement in interface KjcVisitorvisitSynchronizedStatement in class KjcEmptyVisitor
public void visitIfStatement(JIfStatement self,
JExpression cond,
JStatement thenClause,
JStatement elseClause)
visitIfStatement in interface KjcVisitorvisitIfStatement in class KjcEmptyVisitor
public void visitForStatement(JForStatement self,
JStatement init,
JExpression cond,
JStatement incr,
JStatement body)
visitForStatement in interface KjcVisitorvisitForStatement in class ToCCommonpublic void visitEmptyStatement(JEmptyStatement self)
visitEmptyStatement in interface KjcVisitorvisitEmptyStatement in class ToCCommon
public void visitThisExpression(JThisExpression self,
JExpression prefix)
visitThisExpression in interface KjcVisitorvisitThisExpression in class KjcEmptyVisitorpublic void visitSuperExpression(JSuperExpression self)
visitSuperExpression in interface KjcVisitorvisitSuperExpression in class KjcEmptyVisitor
public void visitRelationalExpression(JRelationalExpression self,
int oper,
JExpression left,
JExpression right)
visitRelationalExpression in interface KjcVisitorvisitRelationalExpression in class KjcEmptyVisitor
public void visitQualifiedAnonymousCreation(JQualifiedAnonymousCreation self,
JExpression prefix,
String ident,
JExpression[] params,
JClassDeclaration decl)
visitQualifiedAnonymousCreation in interface KjcVisitorvisitQualifiedAnonymousCreation in class KjcEmptyVisitor
public void visitQualifiedInstanceCreation(JQualifiedInstanceCreation self,
JExpression prefix,
String ident,
JExpression[] params)
visitQualifiedInstanceCreation in interface KjcVisitorvisitQualifiedInstanceCreation in class KjcEmptyVisitor
public void visitUnqualifiedAnonymousCreation(JUnqualifiedAnonymousCreation self,
CClassType type,
JExpression[] params,
JClassDeclaration decl)
visitUnqualifiedAnonymousCreation in interface KjcVisitorvisitUnqualifiedAnonymousCreation in class KjcEmptyVisitor
public void visitUnqualifiedInstanceCreation(JUnqualifiedInstanceCreation self,
CClassType type,
JExpression[] params)
visitUnqualifiedInstanceCreation in interface KjcVisitorvisitUnqualifiedInstanceCreation in class KjcEmptyVisitor
public void visitNameExpression(JNameExpression self,
JExpression prefix,
String ident)
visitNameExpression in interface KjcVisitorvisitNameExpression in class KjcEmptyVisitor
public void visitBinaryExpression(JBinaryExpression self,
String oper,
JExpression left,
JExpression right)
visitBinaryExpression in interface KjcVisitorvisitBinaryExpression in class KjcEmptyVisitor
public void visitMethodCallExpression(JMethodCallExpression self,
JExpression prefix,
String ident,
JExpression[] args)
visitMethodCallExpression in interface KjcVisitorvisitMethodCallExpression in class KjcEmptyVisitor
public void visitFieldExpression(JFieldAccessExpression self,
JExpression left,
String ident)
visitFieldExpression in interface KjcVisitorvisitFieldExpression in class KjcEmptyVisitor
public void visitBitwiseExpression(JBitwiseExpression self,
int oper,
JExpression left,
JExpression right)
visitBitwiseExpression in interface KjcVisitorvisitBitwiseExpression in class KjcEmptyVisitor
public void visitAssignmentExpression(JAssignmentExpression self,
JExpression left,
JExpression right)
visitAssignmentExpression in interface KjcVisitorvisitAssignmentExpression in class KjcEmptyVisitor
public void visitArrayLengthExpression(JArrayLengthExpression self,
JExpression prefix)
visitArrayLengthExpression in interface KjcVisitorvisitArrayLengthExpression in class KjcEmptyVisitor
public void visitArrayAccessExpression(JArrayAccessExpression self,
JExpression prefix,
JExpression accessor)
visitArrayAccessExpression in interface KjcVisitorvisitArrayAccessExpression in class KjcEmptyVisitorpublic void visitComments(JavaStyleComment[] comments)
visitComments in interface KjcVisitorvisitComments in class KjcEmptyVisitorpublic void visitComment(JavaStyleComment comment)
visitComment in interface KjcVisitorvisitComment in class KjcEmptyVisitorpublic void visitJavadoc(JavadocComment comment)
visitJavadoc in interface KjcVisitorvisitJavadoc in class KjcEmptyVisitorpublic void visitCreatePortalExpression(SIRCreatePortal self)
visitCreatePortalExpression in interface SLIRVisitorvisitCreatePortalExpression in class SLIREmptyVisitor
public void visitInitStatement(SIRInitStatement self,
SIRStream stream)
SLIREmptyVisitor
visitInitStatement in interface SLIRVisitorvisitInitStatement in class SLIREmptyVisitorpublic void visitInterfaceTable(SIRInterfaceTable self)
SLIREmptyVisitor
visitInterfaceTable in interface SLIRVisitorvisitInterfaceTable in class SLIREmptyVisitorpublic void visitLatency(SIRLatency self)
SLIREmptyVisitor
visitLatency in interface SLIRVisitorvisitLatency in class SLIREmptyVisitorpublic void visitLatencyMax(SIRLatencyMax self)
SLIREmptyVisitor
visitLatencyMax in interface SLIRVisitorvisitLatencyMax in class SLIREmptyVisitorpublic void visitLatencyRange(SIRLatencyRange self)
SLIREmptyVisitor
visitLatencyRange in interface SLIRVisitorvisitLatencyRange in class SLIREmptyVisitorpublic void visitLatencySet(SIRLatencySet self)
SLIREmptyVisitor
visitLatencySet in interface SLIRVisitorvisitLatencySet in class SLIREmptyVisitor
public void visitMessageStatement(SIRMessageStatement self,
JExpression portal,
String iname,
String ident,
JExpression[] params,
SIRLatency latency)
SLIREmptyVisitor
visitMessageStatement in interface SLIRVisitorvisitMessageStatement in class SLIREmptyVisitorpublic void visitRangeExpression(SIRRangeExpression self)
SLIREmptyVisitor
visitRangeExpression in interface SLIRVisitorvisitRangeExpression in class SLIREmptyVisitorpublic void visitDynamicToken(SIRDynamicToken self)
SLIREmptyVisitor
visitDynamicToken in interface SLIRVisitorvisitDynamicToken in class SLIREmptyVisitor
public void visitPeekExpression(SIRPeekExpression self,
CType tapeType,
JExpression num)
SLIREmptyVisitor
visitPeekExpression in interface SLIRVisitorvisitPeekExpression in class SLIREmptyVisitor
public void visitPopExpression(SIRPopExpression self,
CType tapeType)
SLIREmptyVisitor
visitPopExpression in interface SLIRVisitorvisitPopExpression in class SLIREmptyVisitorpublic void visitPortal(SIRPortal self)
SLIREmptyVisitor
visitPortal in interface SLIRVisitorvisitPortal in class SLIREmptyVisitor
public void visitPushExpression(SIRPushExpression self,
CType tapeType,
JExpression val)
SLIREmptyVisitor
visitPushExpression in interface SLIRVisitorvisitPushExpression in class SLIREmptyVisitor
public void visitRegReceiverStatement(SIRRegReceiverStatement self,
JExpression portal,
SIRStream receiver,
JMethodDeclaration[] methods)
SLIREmptyVisitor
visitRegReceiverStatement in interface SLIRVisitorvisitRegReceiverStatement in class SLIREmptyVisitor
public void visitRegSenderStatement(SIRRegSenderStatement self,
String fn,
SIRLatency latency)
SLIREmptyVisitor
visitRegSenderStatement in interface SLIRVisitorvisitRegSenderStatement in class SLIREmptyVisitorpublic void visitFileReader(LIRFileReader self)
visitFileReader in interface SLIRVisitorvisitFileReader in class SLIREmptyVisitorpublic void visitFileWriter(LIRFileWriter self)
visitFileWriter in interface SLIRVisitorvisitFileWriter in class SLIREmptyVisitorpublic void visitIdentity(LIRIdentity self)
visitIdentity in interface SLIRVisitorvisitIdentity in class SLIREmptyVisitor
public void visitSetChild(LIRSetChild self,
JExpression streamContext,
String childType,
String childName)
SLIREmptyVisitor
visitSetChild in interface SLIRVisitorvisitSetChild in class SLIREmptyVisitor
public void visitSetTape(LIRSetTape self,
JExpression streamContext,
JExpression srcStruct,
JExpression dstStruct,
CType type,
int size)
SLIREmptyVisitor
visitSetTape in interface SLIRVisitorvisitSetTape in class SLIREmptyVisitor
public void visitFunctionPointer(LIRFunctionPointer self,
String name)
visitFunctionPointer in interface SLIRVisitorvisitFunctionPointer in class SLIREmptyVisitorpublic void visitNode(LIRNode self)
visitNode in interface SLIRVisitorvisitNode in class SLIREmptyVisitor
public void visitRegisterReceiver(LIRRegisterReceiver self,
JExpression streamContext,
SIRPortal portal,
String childName,
SIRInterfaceTable itable)
visitRegisterReceiver in interface SLIRVisitorvisitRegisterReceiver in class SLIREmptyVisitor
public void visitSetChild(LIRSetChild self,
JExpression streamContext,
JExpression childContext)
public void visitSetDecode(LIRSetDecode self,
JExpression streamContext,
LIRFunctionPointer fp)
visitSetDecode in interface SLIRVisitorvisitSetDecode in class SLIREmptyVisitor
public void visitSetDelay(LIRSetDelay self,
JExpression data,
JExpression streamContext,
int delay,
CType type,
LIRFunctionPointer fp)
visitSetDelay in interface SLIRVisitorvisitSetDelay in class SLIREmptyVisitor
public void visitSetEncode(LIRSetEncode self,
JExpression streamContext,
LIRFunctionPointer fp)
visitSetEncode in interface SLIRVisitorvisitSetEncode in class SLIREmptyVisitor
public void visitSetJoiner(LIRSetJoiner self,
JExpression streamContext,
SIRJoinType type,
int ways,
int[] weights)
visitSetJoiner in interface SLIRVisitorvisitSetJoiner in class SLIREmptyVisitor
public void visitSetPeek(LIRSetPeek self,
JExpression streamContext,
int peek)
visitSetPeek in interface SLIRVisitorvisitSetPeek in class SLIREmptyVisitor
public void visitSetPop(LIRSetPop self,
JExpression streamContext,
int pop)
visitSetPop in interface SLIRVisitorvisitSetPop in class SLIREmptyVisitor
public void visitSetPush(LIRSetPush self,
JExpression streamContext,
int push)
visitSetPush in interface SLIRVisitorvisitSetPush in class SLIREmptyVisitor
public void visitSetSplitter(LIRSetSplitter self,
JExpression streamContext,
SIRSplitType type,
int ways,
int[] weights)
visitSetSplitter in interface SLIRVisitorvisitSetSplitter in class SLIREmptyVisitor
public void visitSetStreamType(LIRSetStreamType self,
JExpression streamContext,
LIRStreamType streamType)
visitSetStreamType in interface SLIRVisitorvisitSetStreamType in class SLIREmptyVisitor
public void visitSetWork(LIRSetWork self,
JExpression streamContext,
LIRFunctionPointer fn)
visitSetWork in interface SLIRVisitorvisitSetWork in class SLIREmptyVisitor
public void visitMainFunction(LIRMainFunction self,
String typeName,
LIRFunctionPointer init,
List<JStatement> initStatements)
SLIREmptyVisitor
visitMainFunction in interface SLIRVisitorvisitMainFunction in class SLIREmptyVisitor
public void visitSetBodyOfFeedback(LIRSetBodyOfFeedback self,
JExpression streamContext,
JExpression childContext,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
visitSetBodyOfFeedback in interface SLIRVisitorvisitSetBodyOfFeedback in class SLIREmptyVisitor
public void visitSetLoopOfFeedback(LIRSetLoopOfFeedback self,
JExpression streamContext,
JExpression childContext,
CType inputType,
CType outputType,
int inputSize,
int outputSize)
visitSetLoopOfFeedback in interface SLIRVisitorvisitSetLoopOfFeedback 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 SLIRVisitorvisitSetParallelStream in class SLIREmptyVisitorpublic void visitWorkEntry(LIRWorkEntry self)
visitWorkEntry in interface SLIRVisitorvisitWorkEntry in class SLIREmptyVisitorpublic void visitWorkExit(LIRWorkExit self)
visitWorkExit in interface SLIRVisitorvisitWorkExit in class SLIREmptyVisitor
public void visitSwitchLabel(JSwitchLabel self,
JExpression expr)
visitSwitchLabel in interface KjcVisitorvisitSwitchLabel in class KjcEmptyVisitor
public void visitSwitchGroup(JSwitchGroup self,
JSwitchLabel[] labels,
JStatement[] stmts)
visitSwitchGroup in interface KjcVisitorvisitSwitchGroup in class KjcEmptyVisitor
public void visitCatchClause(JCatchClause self,
JFormalParameter exception,
JBlock body)
visitCatchClause in interface KjcVisitorvisitCatchClause in class KjcEmptyVisitorpublic void visitBooleanLiteral(boolean value)
visitBooleanLiteral in interface KjcVisitorvisitBooleanLiteral in class KjcEmptyVisitorpublic void visitByteLiteral(byte value)
visitByteLiteral in interface KjcVisitorvisitByteLiteral in class KjcEmptyVisitorpublic void visitCharLiteral(char value)
visitCharLiteral in interface KjcVisitorvisitCharLiteral in class KjcEmptyVisitorpublic void visitDoubleLiteral(double value)
visitDoubleLiteral in interface KjcVisitorvisitDoubleLiteral in class KjcEmptyVisitorpublic void visitFloatLiteral(float value)
visitFloatLiteral in interface KjcVisitorvisitFloatLiteral in class KjcEmptyVisitorpublic void visitIntLiteral(int value)
visitIntLiteral in interface KjcVisitorvisitIntLiteral in class KjcEmptyVisitorpublic void visitLongLiteral(long value)
visitLongLiteral in interface KjcVisitorvisitLongLiteral in class KjcEmptyVisitorpublic void visitShortLiteral(short value)
visitShortLiteral in interface KjcVisitorvisitShortLiteral in class KjcEmptyVisitorpublic void visitStringLiteral(String value)
visitStringLiteral in interface KjcVisitorvisitStringLiteral in class KjcEmptyVisitorpublic void visitNullLiteral()
visitNullLiteral in interface KjcVisitorvisitNullLiteral in class KjcEmptyVisitorpublic void visitPackageName(String name)
visitPackageName in interface KjcVisitorvisitPackageName in class KjcEmptyVisitorpublic void visitPackageImport(String name)
visitPackageImport in interface KjcVisitorvisitPackageImport in class KjcEmptyVisitorpublic void visitClassImport(String name)
visitClassImport in interface KjcVisitorvisitClassImport in class KjcEmptyVisitor
public void visitFormalParameters(JFormalParameter self,
boolean isFinal,
CType type,
String ident)
visitFormalParameters in interface KjcVisitorvisitFormalParameters in class KjcEmptyVisitor
public void visitArgs(JExpression[] args,
int base)
public void visitConstructorCall(JConstructorCall self,
boolean functorIsThis,
JExpression[] params)
visitConstructorCall in interface KjcVisitorvisitConstructorCall in class KjcEmptyVisitor
public void visitArrayInitializer(JArrayInitializer self,
JExpression[] elems)
visitArrayInitializer in interface KjcVisitorvisitArrayInitializer in class KjcEmptyVisitorprotected 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 | |||||||||