at.dms.kjc.flatgraph
Class FlatGraphToSIR

java.lang.Object
  extended by at.dms.kjc.flatgraph.FlatGraphToSIR

public class FlatGraphToSIR
extends Object

This class will convert the FlatGraph back to an SIR representation. It will create the necessary SIR containers to represent the flat graph. This assume that the Flat graph is amenable to this conversion. For example, it will not work if filter nodes have multiple input/output. It should does not change any filters in the graph, but may re-create splitters and joiners. It completely recreates any pipelines in the graph.

Author:
mgordon

Constructor Summary
FlatGraphToSIR(FlatNode top)
          Create a new FlatGraphToSIR with top as the entry-point to the FlatGraph and construct an SIR graph from the flat graph.
 
Method Summary
 SIRPipeline getTopLevelSIR()
          Return the toplevel pipeline for the constructed SIR graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatGraphToSIR

public FlatGraphToSIR(FlatNode top)
Create a new FlatGraphToSIR with top as the entry-point to the FlatGraph and construct an SIR graph from the flat graph. Note: this expects splitters and joiners for a feedbackloop to be in the same flatgraph. Can we guarantee this in presence of dynamic rates? If not, what to do?

Parameters:
top - The entry point to the Flat graph.
Method Detail

getTopLevelSIR

public SIRPipeline getTopLevelSIR()
Return the toplevel pipeline for the constructed SIR graph.

Returns:
the toplevel pipeline for the constructed SIR graph.