|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.sir.statespace.LinearRedundancy
public class LinearRedundancy
A LinearRedundancy contains information about redundant computations
that occur across filter invocations. LinearRedundancy is probably a
misnomer as this class merely contains information that lets us
identify redundant computation. Specifically, we keep a
mapping between a computation tuple (eg [input,coefficient]) and
"uses." A use of a computation tuple is definied as the number
subsequenct work function after the current one that the tuple is re used.
More information might be gleaned from:
http://cag.lcs.mit.edu/commit/papers/03/aalamb-meng-thesis.pdf
$Id: LinearRedundancy.java,v 1.4 2006/09/25 13:54:46 dimock Exp $
Constructor Summary | |
---|---|
LinearRedundancy(LinearFilterRepresentation lfr)
Creates a new linear redundancy from the linear filter rep that is passed in (which has a matrix and a vector to describe computation. |
Method Summary | |
---|---|
void |
addUse(LinearComputationTuple tuple,
int use)
add an entry for the specified execution use to this tuple |
at.dms.kjc.sir.statespace.LinearRedundancy.RedundancyStatistics |
calculateRedundancyStatistics()
Calculate redundancy statistics. |
String |
calculateRedundancyString()
Returns a number between zero and one that represents the amount of redundant computation that this LinearRedundancy does. |
static int |
divCeiling(int a,
int b)
Gets the ceiling of the division of two integers. |
HashMap<LinearComputationTuple,LinkedList> |
getTuplesToUses()
Accessor into the internal tuples to uses map. |
String |
getTupleString()
Returns a string version of the tuple -> list mapping. |
String |
makeShortRedundancyString()
Generates a string of the form: totalOriginalTuples:reusedTuples|crossFiringTuples reused pct:subsequent reused pct) |
String |
toString()
Make a nice human readable string for this LinearRedundancy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinearRedundancy(LinearFilterRepresentation lfr)
Method Detail |
---|
public void addUse(LinearComputationTuple tuple, int use)
public HashMap<LinearComputationTuple,LinkedList> getTuplesToUses()
public String toString()
toString
in class Object
public at.dms.kjc.sir.statespace.LinearRedundancy.RedundancyStatistics calculateRedundancyStatistics()
public String makeShortRedundancyString()
public String calculateRedundancyString()
public String getTupleString()
public static int divCeiling(int a, int b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |