at.dms.kjc.spacedynamic
Class SwitchCode

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

public class SwitchCode
extends Utils

This class generates the switch code for each tile and writes it to a file

See Also:
Serialized Form

Field Summary
static int LOOP_IF_BIGGER
          if we find a sequence of anything greater we will loop it if possible
static String SW_SS_TRIPS
          the name of the function that sends the loop trip counts to the switch for switch code compression in the steady state
static HashSet switchCodeSimple
          HashSet to hold RawTile for which we generated simple switch code (disregarding output of communication simulator
 
Fields inherited from class at.dms.util.Utils
EMPTY_LIST, getForLoopCallers
 
Constructor Summary
SwitchCode()
           
 
Method Summary
static void dumpSchedules()
           
static void generate(SpdStreamGraph sg)
           
 
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, nextPow2, 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

switchCodeSimple

public static HashSet switchCodeSimple
HashSet to hold RawTile for which we generated simple switch code (disregarding output of communication simulator


LOOP_IF_BIGGER

public static final int LOOP_IF_BIGGER
if we find a sequence of anything greater we will loop it if possible

See Also:
Constant Field Values

SW_SS_TRIPS

public static final String SW_SS_TRIPS
the name of the function that sends the loop trip counts to the switch for switch code compression in the steady state

See Also:
Constant Field Values
Constructor Detail

SwitchCode

public SwitchCode()
Method Detail

generate

public static void generate(SpdStreamGraph sg)

dumpSchedules

public static void dumpSchedules()