at.dms.kjc.vanillaSlice
Class UniComputeCodeStore
java.lang.Object
at.dms.kjc.backendSupport.ComputeCodeStore<UniProcessor>
at.dms.kjc.vanillaSlice.UniComputeCodeStore
- All Implemented Interfaces:
- SIRCodeUnit
public class UniComputeCodeStore
- extends ComputeCodeStore<UniProcessor>
Modest extension to ComputeCodeStore
.
- Author:
- dimock
Method Summary |
protected void |
addSteadyLoop()
We always use an iteration bound, so override version in superclass. |
String |
getMyMainName()
get name for MAIN method in this code store. |
protected void |
setMyMainName(String baseName)
Set name of main routine to be unique per processor. |
Methods inherited from class at.dms.kjc.backendSupport.ComputeCodeStore |
addCleanupStatement, addField, addFields, addInitFunctionCall, addInitStatement, addInitStatementFirst, addMethod, addMethods, addSteadyLoop, addSteadyLoopStatement, getFields, getMainFunction, getMethods, hasMethod, setFields, setMethods |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniComputeCodeStore
public UniComputeCodeStore(UniProcessor parent)
- Construct new ComputeCodeStore for a vanilla processor
- Parameters:
parent
- the processor that this ComputeCodeStore is storing code for.
addSteadyLoop
protected void addSteadyLoop()
- We always use an iteration bound, so override version in superclass.
- Overrides:
addSteadyLoop
in class ComputeCodeStore<UniProcessor>
setMyMainName
protected void setMyMainName(String baseName)
- Set name of main routine to be unique per processor.
Allows code for multiple processors to be generated into the
same scope without having to worry about name clashes.
- Overrides:
setMyMainName
in class ComputeCodeStore<UniProcessor>
getMyMainName
public String getMyMainName()
- Description copied from class:
ComputeCodeStore
- get name for MAIN method in this code store.
- Overrides:
getMyMainName
in class ComputeCodeStore<UniProcessor>
- Returns:
- name from a JMethodDeclaration