|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.cluster.TapeBase
at.dms.kjc.cluster.TapeDynrate
public class TapeDynrate
Dynamic-rate tapes linking nodes.
The tape is only one part of the story: the tape creates push, pop, etc routines
but to pass arrays over tapes we need to change some types so the calls to push,
pop, ets mat need to be wrapped in a cast or in a memcpy().
The translation functionality should be part of the tape class, but (alas) is
actually in the code emitters FlatIRToCluster and ClusterCode.
| Field Summary |
|---|
| Fields inherited from class at.dms.kjc.cluster.TapeBase |
|---|
dst, peek_name, pop_name, push_name, src, type, typeString |
| Constructor Summary | |
|---|---|
TapeDynrate(int source,
int dest,
CType type)
|
|
| Method Summary | |
|---|---|
String |
assignPeekToVar(String varName,
String offset)
Assign the result of peeking. |
String |
assignPopToVar(String varName)
Statement, but no ";" to pop an item into a variable. |
String |
dataDeclaration()
Data declaration: in .c file if needed else noop. |
String |
dataDeclarationH()
Data declaration: in .h file if needed else noop. |
String |
downstreamCleanup()
Any cleanup needed before exit for downstream end of tape. |
String |
downstreamDeclaration()
Data declaration: for code doing downstream processing. |
String |
downstreamDeclarationExtern()
Data declaration: following "extern" if needed else noop. |
String |
getTypeCastName()
returns the type to cast to, which is only relevant for arrays. |
String |
peekPrefix()
prefix to peek expression |
String |
peekSuffix()
suffix to peek expression |
String |
popExpr()
expression to pop an item: to end of statement. |
String |
popExprCleanup()
if expression to pop an item requires statements to clean up then this is cleanup. |
String |
popExprNoCleanup()
expression to pop an item, really an expression. |
String |
popNStmt(int N)
prefix to pop N items discarding them. |
String |
pushbackCleanup()
|
String |
pushbackInit(int NumberToPush)
|
String |
pushbackPrefix()
|
String |
pushbackSuffix()
|
String |
pushPrefix()
prefix before data expression to push. |
String |
pushSuffix()
suffix after data expression to push. |
String |
topOfWorkIteration()
Code used at top of work iteration. |
String |
upstreamCleanup()
Any cleanup needed before exit for upstream end of tape. |
String |
upstreamDeclaration()
Data declaration: for code doing upstream processing. |
String |
upstreamDeclarationExtern()
Data declaration: following "extern" if needed else noop. |
| Methods inherited from class at.dms.kjc.cluster.TapeBase |
|---|
getDest, getPeekName, getPopName, getPushName, getSource, getType, newTape, popManyItems, pushManyItems |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface at.dms.kjc.cluster.Tape |
|---|
getDest, getPeekName, getPopName, getPushName, getSource, getType, popManyItems, pushManyItems |
| Constructor Detail |
|---|
public TapeDynrate(int source,
int dest,
CType type)
| Method Detail |
|---|
public String dataDeclarationH()
Tape
dataDeclarationH in interface TapedataDeclarationH in class TapeBasepublic String dataDeclaration()
Tape
dataDeclaration in interface TapedataDeclaration in class TapeBasepublic String downstreamDeclarationExtern()
Tape
downstreamDeclarationExtern in interface TapedownstreamDeclarationExtern in class TapeBasepublic String downstreamDeclaration()
Tape
downstreamDeclaration in interface TapedownstreamDeclaration in class TapeBasepublic String upstreamDeclarationExtern()
Tape
upstreamDeclarationExtern in interface TapeupstreamDeclarationExtern in class TapeBasepublic String upstreamDeclaration()
Tape
upstreamDeclaration in interface TapeupstreamDeclaration in class TapeBasepublic String topOfWorkIteration()
Tape
topOfWorkIteration in interface TapetopOfWorkIteration in class TapeBasepublic String upstreamCleanup()
Tape
upstreamCleanup in interface TapeupstreamCleanup in class TapeBasepublic String downstreamCleanup()
Tape
downstreamCleanup in interface TapedownstreamCleanup in class TapeBasepublic String pushPrefix()
Tape
pushPrefix in interface TapepushPrefix in class TapeBasepublic String pushSuffix()
Tape
pushSuffix in interface TapepushSuffix in class TapeBasepublic String popExpr()
Tape
popExpr in interface TapepopExpr in class TapeBasepublic String popExprNoCleanup()
Tape
popExprNoCleanup in interface TapepopExprNoCleanup in class TapeBasepublic String popExprCleanup()
Tape
popExprCleanup in interface TapepopExprCleanup in class TapeBasepublic String popNStmt(int N)
Tape
popNStmt in interface TapepopNStmt in class TapeBasepublic String peekPrefix()
Tape
peekPrefix in interface TapepeekPrefix in class TapeBasepublic String peekSuffix()
Tape
peekSuffix in interface TapepeekSuffix in class TapeBasepublic String pushbackInit(int NumberToPush)
pushbackInit in interface TapepushbackInit in class TapeBasepublic String pushbackPrefix()
pushbackPrefix in interface TapepushbackPrefix in class TapeBasepublic String pushbackSuffix()
pushbackSuffix in interface TapepushbackSuffix in class TapeBasepublic String pushbackCleanup()
pushbackCleanup in interface TapepushbackCleanup in class TapeBasepublic String assignPopToVar(String varName)
Tape
assignPopToVar in interface TapeassignPopToVar in class TapeBase
public String assignPeekToVar(String varName,
String offset)
Tape
assignPeekToVar in interface TapeassignPeekToVar in class TapeBasepublic String getTypeCastName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||