at.dms.kjc.slicegraph
Class FlattenAndPartition

java.lang.Object
  extended by at.dms.kjc.slicegraph.Partitioner
      extended by at.dms.kjc.slicegraph.FlattenAndPartition

public class FlattenAndPartition
extends Partitioner

Convert SIR graph to Slice without synch removal. Partitions as one filter per Slice.

Author:
mgordon

Field Summary
 
Fields inherited from class at.dms.kjc.slicegraph.Partitioner
bottleNeckFilter, exeCounts, filterOccupancy, filterStartupCost, genIdWorks, io, lfa, maxPartitions, sirToContent, sliceBNWork, sliceGraph, steadyMult, topFilters, topSlices, work, workEstimation
 
Constructor Summary
FlattenAndPartition(UnflatFilter[] topFilters, HashMap[] exeCounts, LinearAnalyzer lfa, WorkEstimate work, int maxPartitions)
           
 
Method Summary
 void flatten(SIRStream str, HashMap[] exeCounts)
           
 Slice[] partition()
          Partition the stream graph into slices (slices) and return the slices.
 
Methods inherited from class at.dms.kjc.slicegraph.Partitioner
addFilterToSlice, calculateWorkStats, containsSlice, createPredefinedContent, dumpGraph, ensureSimpleSlices, getContent, getFilterContent, getFilterOccupancy, getFilterStartupCost, getFilterWork, getFilterWorkSteadyMult, getNext, getSliceBNFilter, getSliceBNWork, getSliceGraph, getTopSlices, getWorkEstimate, getWorkEstOneFiring, isIO, setSliceGraphNewIds, sliceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlattenAndPartition

public FlattenAndPartition(UnflatFilter[] topFilters,
                           HashMap[] exeCounts,
                           LinearAnalyzer lfa,
                           WorkEstimate work,
                           int maxPartitions)
Method Detail

partition

public Slice[] partition()
Description copied from class: Partitioner
Partition the stream graph into slices (slices) and return the slices.

Specified by:
partition in class Partitioner
Returns:
The slices (slices) of the partitioned graph.

flatten

public void flatten(SIRStream str,
                    HashMap[] exeCounts)