at.dms.kjc.raw
Class Util

java.lang.Object
  extended by at.dms.util.Utils
      extended by at.dms.kjc.raw.Util
All Implemented Interfaces:
DeepCloneable, Serializable

public class Util
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
Util()
           
 
Method Summary
static boolean countMe(SIRFilter filter)
           
static HashSet<FlatNode> getAssignedEdges(FlatNode node)
           
static int getCount(HashMap<FlatNode,Integer> counts, FlatNode node)
           
static int getCountPrev(HashMap<FlatNode,Integer> counts, FlatNode prev, FlatNode node)
           
static HashSet<Object> getDirectDownstream(FlatNode node)
           
static double getRRSplitterWeight(FlatNode prev, FlatNode node)
           
static int getTypeSize(CType type)
           
static int[] makeInt(JExpression[] dims)
           
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

Util

public Util()
Method Detail

countMe

public static boolean countMe(SIRFilter filter)

nextPow2

public static int nextPow2(int i)

getCount

public static int getCount(HashMap<FlatNode,Integer> counts,
                           FlatNode node)

getCountPrev

public static int getCountPrev(HashMap<FlatNode,Integer> counts,
                               FlatNode prev,
                               FlatNode node)

getRRSplitterWeight

public static double getRRSplitterWeight(FlatNode prev,
                                         FlatNode node)

getTypeSize

public static int getTypeSize(CType type)

makeInt

public static int[] makeInt(JExpression[] dims)

staticNetworkReceivePrefix

public static String staticNetworkReceivePrefix()

staticNetworkReceiveSuffix

public static String staticNetworkReceiveSuffix(CType tapeType)

staticNetworkSendPrefix

public static String staticNetworkSendPrefix(CType tapeType)

staticNetworkSendSuffix

public static String staticNetworkSendSuffix()

getAssignedEdges

public static HashSet<FlatNode> getAssignedEdges(FlatNode node)

getDirectDownstream

public static HashSet<Object> getDirectDownstream(FlatNode node)