|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.rstream.StrToRStream
public class StrToRStream
The main driver class for the StreamIt to RStream backend. Used to house the run method that does all the work of translating the SIR into C code to be inputted to the RStream compiler.
Field Summary | |
---|---|
static boolean |
CONVERT_FOR_TO_DO_LOOPS
look for do loops in the filter's code |
static HashMap[] |
executionCounts
The execution counts from the scheduler: [0] init, [1] steady |
static boolean |
GENERATE_MIVS
generate MIV buffer index expressions if possible |
static boolean |
GENERATE_UNNECESSARY
generate code for superfluous identites and splitter |
static boolean |
HEADER_FOOTER_PEEK_RESTORE
if true, generate a separate peek buffer for peeking filters before execution, restore the peek buffer to the pop buffer, after execution, backup the non-pop'ed items to the peek buffer If false, just move the un-pop'ed items from the end of the pop buffer to the beginning after the filter executes Please note that setting this to true is untested and produces unnecessary code, in fact I don't know why it is an option I guess I just want to keep around all the code I wrote. |
static HashMap<FlatNode,Integer> |
initExecutionCounts
|
static HashMap<FlatNode,Integer> |
steadyExecutionCounts
|
static SIRStructure[] |
structures
The structure defined in the application, see SIRStructure |
Constructor Summary | |
---|---|
StrToRStream()
|
Method Summary | |
---|---|
static void |
addAll(HashSet<Object> set,
Collection<Serializable> c)
Helper function to add everything in a collection to the set |
static void |
dumpExecutionCounts()
|
static int |
getMult(FlatNode node,
boolean init)
|
static void |
run(SIRStream str,
JInterfaceDeclaration[] interfaces,
SIRInterfaceTable[] interfaceTables,
SIRStructure[] structs,
SIRHelper[] helpers,
SIRGlobal global)
The entry point of the RStream "backend" for the StreamIt Compiler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean CONVERT_FOR_TO_DO_LOOPS
public static final boolean GENERATE_MIVS
public static final boolean GENERATE_UNNECESSARY
public static final boolean HEADER_FOOTER_PEEK_RESTORE
public static HashMap[] executionCounts
public static SIRStructure[] structures
public static HashMap<FlatNode,Integer> initExecutionCounts
public static HashMap<FlatNode,Integer> steadyExecutionCounts
Constructor Detail |
---|
public StrToRStream()
Method Detail |
---|
public static void run(SIRStream str, JInterfaceDeclaration[] interfaces, SIRInterfaceTable[] interfaceTables, SIRStructure[] structs, SIRHelper[] helpers, SIRGlobal global)
str
- The stream graphinterfaces
- Not usedinterfaceTables
- Not usedstructs
- The structures used in this StreamIt applicationpublic static void addAll(HashSet<Object> set, Collection<Serializable> c)
set
- The Hashset we want to add *c* toc
- The collection to addpublic static int getMult(FlatNode node, boolean init)
public static void dumpExecutionCounts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |