at.dms.kjc.cluster
Class ClusterCode

java.lang.Object
  extended by at.dms.kjc.cluster.ClusterCode

public class ClusterCode
extends Object

This class generates and emits code for each filter, splitter, and joiner in the flat graph.


Field Summary
static HashSet<SIRJoiner> feedbackJoinersNeedingPrep
          getter? joiners for feedbackloops with >0 enqueues need initialization to perform initial pushes of enqueued values into their input tapes.
 
Constructor Summary
ClusterCode()
           
 
Method Summary
static void generateCode(FlatNode topLevel)
          Generate and emit code for all nodes in FlatGraph
static void generateJoiner(FlatNode node)
          Generate and emit code for a joiner
static void generateSlidingWindow(FlatNode node, int n, int m)
           
static void generateSplitter(FlatNode node)
          Generate and emit code for a splitter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

feedbackJoinersNeedingPrep

public static final HashSet<SIRJoiner> feedbackJoinersNeedingPrep
getter? joiners for feedbackloops with >0 enqueues need initialization to perform initial pushes of enqueued values into their input tapes.

Constructor Detail

ClusterCode

public ClusterCode()
Method Detail

generateCode

public static void generateCode(FlatNode topLevel)
Generate and emit code for all nodes in FlatGraph

Parameters:
topLevel - the entry point to the FlatGraph of the program

generateSplitter

public static void generateSplitter(FlatNode node)
Generate and emit code for a splitter.

Parameters:
node - FlatNode for the splitter to generate code for.

generateJoiner

public static void generateJoiner(FlatNode node)
Generate and emit code for a joiner

Parameters:
node - is a FlatNode where node.contents instanceof SIRJoiner

generateSlidingWindow

public static void generateSlidingWindow(FlatNode node,
                                         int n,
                                         int m)