|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.sir.SIROperator
at.dms.kjc.sir.SIRStream
at.dms.kjc.sir.SIRHelper
public class SIRHelper
This class represents a set of helper methods available to all filters.
| Field Summary |
|---|
| Fields inherited from class at.dms.kjc.sir.SIRStream |
|---|
fields, ident, init, methods, work |
| Constructor Summary | |
|---|---|
SIRHelper(boolean _native)
|
|
| Method Summary | |
|---|---|
Object |
accept(AttributeStreamVisitor v)
|
CType |
getInputType()
Returns the input type of this. |
CType |
getOutputType()
Returns the output type of this. |
int |
getPopForSchedule(HashMap[] counts)
Same as getPushForSchedule, but with pop instead of push. |
int |
getPushForSchedule(HashMap[] counts)
Returns the number of items pushed out of this stream in one execution of the steady-state, given the steady-state execution counts specified by |
LIRStreamType |
getStreamType()
Returns the type of this stream. |
boolean |
isNative()
|
boolean |
needsInit()
Returns whether or not this class needs a call to an init function to be generated. |
boolean |
needsWork()
Returns whether or not this class needs a call to a work function to be generated. |
void |
setInit(JMethodDeclaration newInit)
sets the init function |
void |
setInitWithoutReplacement(JMethodDeclaration newInit)
sets the init function WITHOUT eliminating the old one in the methods array. |
void |
setWork(JMethodDeclaration newWork)
Sets the work function. |
| Methods inherited from class at.dms.kjc.sir.SIRStream |
|---|
addField, addField, addFields, addFields, addMethod, addMethods, addReplacementMethod, deepClone, deepCloneInto, getFields, getIdent, getInit, getMethods, getParams, getStreamWithNumber, getTypeNameInC, getWork, hasMethod, insideFeedbackLoop, makeEmptyInit, makeEmptyInitWork, makeEmptyWork, setFields, setIdent, setMethods, toString |
| Methods inherited from class at.dms.kjc.sir.SIROperator |
|---|
assertMutable, deepCloneInto, getAncestors, getName, getNumber, getParent, getParents, getParentStructureAccess, getRelativeName, getShortIdent, hashCode, readResolve, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SIRHelper(boolean _native)
| Method Detail |
|---|
public boolean isNative()
public void setWork(JMethodDeclaration newWork)
SIRStream
setWork in class SIRStreampublic void setInit(JMethodDeclaration newInit)
SIRStream
setInit in class SIRStreampublic void setInitWithoutReplacement(JMethodDeclaration newInit)
SIRStream
setInitWithoutReplacement in class SIRStreampublic int getPushForSchedule(HashMap[] counts)
SIRStream
getPushForSchedule in class SIRStreampublic int getPopForSchedule(HashMap[] counts)
SIRStream
getPopForSchedule in class SIRStreampublic CType getOutputType()
SIRStream
getOutputType in class SIRStreampublic LIRStreamType getStreamType()
SIRStream
getStreamType in class SIRStreampublic CType getInputType()
SIRStream
getInputType in class SIRStreampublic boolean needsInit()
SIRStream
needsInit in class SIRStreampublic boolean needsWork()
SIRStream
needsWork in class SIRStreampublic Object accept(AttributeStreamVisitor v)
accept in class SIROperator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||