at.dms.kjc.sir.lowering.partition
Class FusionTransform

java.lang.Object
  extended by at.dms.kjc.sir.lowering.partition.StreamTransform
      extended by at.dms.kjc.sir.lowering.partition.FusionTransform

public final class FusionTransform
extends StreamTransform

Represents a fusion of children in a stream graph.


Field Summary
 
Fields inherited from class at.dms.kjc.sir.lowering.partition.StreamTransform
id
 
Constructor Summary
FusionTransform()
           
 
Method Summary
 void addPartition(int i)
          Add a partition AFTER child 'i' to the list, where 'i' is 1-indexed.
 SIRStream doMyTransform(SIRStream str)
          Perform the transform on and return new stream.
 String toString()
           
 
Methods inherited from class at.dms.kjc.sir.lowering.partition.StreamTransform
addPred, addSucc, doTransform, getPred, getPredSize, getSucc, getSuccSize, isIdempotent, printHierarchy, reduce
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FusionTransform

public FusionTransform()
Method Detail

doMyTransform

public SIRStream doMyTransform(SIRStream str)
Perform the transform on and return new stream.

Specified by:
doMyTransform in class StreamTransform

addPartition

public void addPartition(int i)
Add a partition AFTER child 'i' to the list, where 'i' is 1-indexed. (So to fuse all children, add partitions at 0 and size()).


toString

public String toString()
Overrides:
toString in class Object