|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.util.Utils
at.dms.kjc.spacedynamic.Util
public class Util
This class contains various function used by multiple passes
Field Summary | |
---|---|
static String |
CGNIFPVAR
|
static String |
CGNIINTVAR
|
static String |
CGNOFPVAR
|
static String |
CGNOINTVAR
|
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(Layout layout,
FlatNode node)
|
static int |
getCount(HashMap counts,
FlatNode node)
|
static int |
getCountPrev(HashMap counts,
FlatNode prev,
FlatNode node)
|
static HashSet<Object> |
getDirectDownstream(FlatNode node)
|
static FlatNode |
getFilterDownstreamAssigned(Layout layout,
FlatNode node)
Given a filter flatnode |
static FlatNode |
getFilterUpstreamAssigned(Layout layout,
FlatNode node)
Given a filter flatnode |
static int |
getItemsProduced(FlatNode node)
Return the number of items node produces during one firing during steady-state. |
static double |
getRRSplitterWeight(FlatNode prev,
FlatNode node)
|
static FlatNode[] |
getSendingSchedule(Layout layout,
FlatNode node)
Given a flatnode of a joiner or a filter that is mapped, get the schedule of mapped nodes that it pushes to (so disregard unmapped splitters and joiners). |
static SIRFilter |
getSinkFilter(SIRStream stream)
|
static SIRFilter |
getSourceFilter(SIRStream stream)
|
static int |
getTypeSize(CType type)
|
static int |
getTypeSize(SIRStructure struct)
|
static int[] |
lcm(int a,
int b)
LCM of a and b. |
static String[] |
makeString(JExpression[] dims)
|
static String |
networkReceive(boolean dynamic,
CType tapeType)
|
static String |
networkSendPrefix(boolean dynamic,
CType tapeType)
|
static String |
networkSendSuffix(boolean dynamic)
|
static int |
nextPow2(int i)
|
static void |
removeIO(SIRFilter filter)
set the push and pop/peek rates to 0 and the input / output types to void * |
static void |
restoreIO(SIRFilter f1,
SIRFilter f2)
Set the i/o rates of f1 to the i/o rates of f2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String CSTOINTVAR
public static String CSTOFPVAR
public static String CSTIFPVAR
public static String CSTIINTVAR
public static String CGNOINTVAR
public static String CGNOFPVAR
public static String CGNIFPVAR
public static String CGNIINTVAR
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static int getItemsProduced(FlatNode node)
node
- The str in question
public static boolean countMe(SIRFilter filter)
public static FlatNode getFilterUpstreamAssigned(Layout layout, FlatNode node)
layout:
- needed to find whether the node is assignednode:
- must be a SIRFilter
public static FlatNode getFilterDownstreamAssigned(Layout layout, FlatNode node)
layout:
- needed to find whether the node is assignednode:
- must be a SIRFilter
public static int nextPow2(int i)
public static int getCount(HashMap counts, FlatNode node)
public static int getCountPrev(HashMap counts, FlatNode prev, FlatNode node)
public static double getRRSplitterWeight(FlatNode prev, FlatNode node)
public static int[] lcm(int a, int b)
a
- b
-
public static int getTypeSize(CType type)
public static int getTypeSize(SIRStructure struct)
public static String[] makeString(JExpression[] dims)
public static String networkReceive(boolean dynamic, CType tapeType)
public static String networkSendPrefix(boolean dynamic, CType tapeType)
public static String networkSendSuffix(boolean dynamic)
public static HashSet<FlatNode> getAssignedEdges(Layout layout, FlatNode node)
public static HashSet<Object> getDirectDownstream(FlatNode node)
public static SIRFilter getSinkFilter(SIRStream stream)
public static SIRFilter getSourceFilter(SIRStream stream)
public static void restoreIO(SIRFilter f1, SIRFilter f2)
f1
- Set this filter to the i/o rates of f2.f2
- Set f1 to this filters i/o rates.public static void removeIO(SIRFilter filter)
public static FlatNode[] getSendingSchedule(Layout layout, FlatNode node)
layout
- node
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |