at.dms.kjc.spacedynamic
Class SwitchCode
java.lang.Object
at.dms.util.Utils
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 |
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 |
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
SwitchCode
public SwitchCode()
generate
public static void generate(SpdStreamGraph sg)
dumpSchedules
public static void dumpSchedules()