at.dms.kjc.common
Class RawUtil

java.lang.Object
  extended by at.dms.util.Utils
      extended by 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

Field Summary
static String CSTIFPVAR
           
static String CSTIINTVAR
           
static String CSTOFPVAR
           
static String CSTOINTVAR
           
 
Fields inherited from class at.dms.util.Utils
EMPTY_LIST, getForLoopCallers
 
Constructor Summary
RawUtil()
           
 
Method Summary
static boolean countMe(SIRFilter filter)
           
static int getCount(HashMap counts, FlatNode node)
          get the execution Count of the previous node
static int getCountPrev(HashMap counts, FlatNode prev, FlatNode node)
          get the execution count of the previous node
static double getRRSplitterWeight(FlatNode prev, FlatNode node)
           
static int getTypeSize(CType type)
          for a given CType return the size (number of elements that need to be sent when routing).
static int nextPow2(int i)
           
static String staticNetworkReceivePrefix()
           
static String staticNetworkReceiveSuffix(CType tapeType)
           
static String staticNetworkSendPrefix(CType tapeType)
           
static String staticNetworkSendSuffix()
           
 
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
 

Field Detail

CSTOINTVAR

public static String CSTOINTVAR

CSTOFPVAR

public static String CSTOFPVAR

CSTIFPVAR

public static String CSTIFPVAR

CSTIINTVAR

public static String CSTIINTVAR
Constructor Detail

RawUtil

public RawUtil()
Method Detail

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()