at.dms.kjc.flatgraph
Class DumpSymbolicGraph

java.lang.Object
  extended by at.dms.kjc.flatgraph.DumpSymbolicGraph
All Implemented Interfaces:
FlatVisitor

public class DumpSymbolicGraph
extends Object
implements FlatVisitor

Dumps a symbolic representation of the flatgraph for interfacing to French collaborators for linear-programming scheduling algorithm.


Constructor Summary
DumpSymbolicGraph()
           
 
Method Summary
 void dumpGraph(SIRStream str, FlatNode toplevel, String filename, HashMap<FlatNode,Integer> initExeCounts, HashMap<FlatNode,Integer> steadyExeCounts)
          Creates the output file representing the flattened graph and stores it in filename.
 void visitNode(FlatNode node)
          This function should not be called by the outside world.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpSymbolicGraph

public DumpSymbolicGraph()
Method Detail

dumpGraph

public void dumpGraph(SIRStream str,
                      FlatNode toplevel,
                      String filename,
                      HashMap<FlatNode,Integer> initExeCounts,
                      HashMap<FlatNode,Integer> steadyExeCounts)
Creates the output file representing the flattened graph and stores it in filename. This function must be called after RawBackend#createExecutionCounts because execution multiplicities need to be set.

Parameters:
str - The original SIR graph.
toplevel - The starting node of the FlatNode graph.
filename - The file to write the graph to.
initExeCounts - The multiplicities in the init stage.
steadyExeCounts - The multiplicities in the steady-state stage.

visitNode

public void visitNode(FlatNode node)
This function should not be called by the outside world. It is used by this class to visit each node of the FlatNode graph and create the dot code for connectivity and for the node label.

Specified by:
visitNode in interface FlatVisitor
Parameters:
node - The current node we are visiting.