at.dms.kjc.spacedynamic
Class RawWorkEstimator

java.lang.Object
  extended by at.dms.kjc.sir.EmptyStreamVisitor
      extended by at.dms.kjc.spacedynamic.RawWorkEstimator
All Implemented Interfaces:
StreamVisitor

public class RawWorkEstimator
extends EmptyStreamVisitor


Field Summary
static boolean SIMULATING_WORK
          Global indicator that we're in the process of simulating work.
static SIRStructure[] structures
           
 
Constructor Summary
RawWorkEstimator()
           
 
Method Summary
static int estimateWork(SIRFilter oldFilter)
          Given a filter, run the work function on raw and return the number of cycles for the work function
static void test(SIRStream stream)
           
 void visitFilter(SIRFilter self, SIRFilterIter iter)
          PLAIN-VISITS
 
Methods inherited from class at.dms.kjc.sir.EmptyStreamVisitor
postVisitFeedbackLoop, postVisitPipeline, postVisitSplitJoin, postVisitStream, preVisitFeedbackLoop, preVisitPipeline, preVisitSplitJoin, preVisitStream, visitPhasedFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

structures

public static SIRStructure[] structures

SIMULATING_WORK

public static boolean SIMULATING_WORK
Global indicator that we're in the process of simulating work. Avoids threading some information through multiple levels.

Constructor Detail

RawWorkEstimator

public RawWorkEstimator()
Method Detail

estimateWork

public static int estimateWork(SIRFilter oldFilter)
Given a filter, run the work function on raw and return the number of cycles for the work function


test

public static void test(SIRStream stream)

visitFilter

public void visitFilter(SIRFilter self,
                        SIRFilterIter iter)
Description copied from class: EmptyStreamVisitor
PLAIN-VISITS

Specified by:
visitFilter in interface StreamVisitor
Overrides:
visitFilter in class EmptyStreamVisitor