at.dms.kjc.common
Class RawUtil
java.lang.Object
at.dms.util.Utils
at.dms.kjc.common.RawUtil
- All Implemented Interfaces:
- DeepCloneable, Serializable
public class RawUtil
- extends Utils
This class contains various function used by multiple passes
- See Also:
- Serialized Form
Methods inherited from class at.dms.util.Utils |
asPercent, cellMathEquivalent, cMathEquivalent, cppMathEquivalent, deepClone, deepCloneInto, equalArrays, fail, getEnvironmentVariable, getExpression, hasPeeks, initArray, initArray, initLiteralArray, intArrayToList, isMathMethod, isUniform, kopi_assert, kopi_assert, makeCountdownForLoop, makeDotFileName, makeForLoop, makeForLoop, makeForLoop, makeForLoopFieldIndex, makeForLoopLocalIndex, passThruParens, peelMarkers, popBeforePeek, readFile, removeUnusedPops, replaceAll, setupDotFileName, simplifyMathMethod, splitQualifiedName, splitQualifiedName, toArray, toIntArray, toVector, voidToInt, writeFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSTOINTVAR
public static String CSTOINTVAR
CSTOFPVAR
public static String CSTOFPVAR
CSTIFPVAR
public static String CSTIFPVAR
CSTIINTVAR
public static String CSTIINTVAR
RawUtil
public RawUtil()
countMe
public static boolean countMe(SIRFilter filter)
nextPow2
public static int nextPow2(int i)
getCount
public static int getCount(HashMap counts,
FlatNode node)
- get the execution Count of the previous node
getCountPrev
public static int getCountPrev(HashMap counts,
FlatNode prev,
FlatNode node)
- get the execution count of the previous node
getRRSplitterWeight
public static double getRRSplitterWeight(FlatNode prev,
FlatNode node)
getTypeSize
public static int getTypeSize(CType type)
- for a given CType return the size (number of elements that need to be sent
when routing).
staticNetworkReceivePrefix
public static String staticNetworkReceivePrefix()
staticNetworkReceiveSuffix
public static String staticNetworkReceiveSuffix(CType tapeType)
staticNetworkSendPrefix
public static String staticNetworkSendPrefix(CType tapeType)
staticNetworkSendSuffix
public static String staticNetworkSendSuffix()