at.dms.kjc.sir.lowering
Class RemoveDynamicRates
java.lang.Object
at.dms.kjc.sir.EmptyStreamVisitor
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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