at.dms.kjc.sir.lowering
Class RemoveDynamicRates

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

public class RemoveDynamicRates
extends EmptyStreamVisitor

NOTE: This class is deprecated in favor of SIRDynamicRateManager. (However, this class still might be useful if we want to replace all dynamic rates with something in the IR.) This class performs an UNSAFE TRANSFORMATION in which all dynamic rates are replaced with the constant 1. This is an easy way to push dynamic rates through backends such as the cluster backend, where the rate information is not used for anything critical but needs to be resolved to some constant.


Method Summary
static void doit(SIRStream str)
           
 void preVisitStream(SIRStream self, SIRIterator iter)
          This is called before all visits to a stream structure (Filter, Pipeline, SplitJoin, FeedbackLoop)
 
Methods inherited from class at.dms.kjc.sir.EmptyStreamVisitor
postVisitFeedbackLoop, postVisitPipeline, postVisitSplitJoin, postVisitStream, preVisitFeedbackLoop, preVisitPipeline, preVisitSplitJoin, visitFilter, visitPhasedFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doit

public static void doit(SIRStream str)

preVisitStream

public void preVisitStream(SIRStream self,
                           SIRIterator iter)
Description copied from class: EmptyStreamVisitor
This is called before all visits to a stream structure (Filter, Pipeline, SplitJoin, FeedbackLoop)

Overrides:
preVisitStream in class EmptyStreamVisitor