ida.pelab.cgn.ccode
Class CodeExtension
java.lang.Object
ida.pelab.cgn.ccode.CodeExtension
public class CodeExtension
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeExtension
public CodeExtension()
addLoopVariable
public java.lang.String addLoopVariable(cetus.hir.Traversable subTreeRoot,
LoopVariable lv)
- generates a unique variable for in the output which corresponds to the loop variable of the current for-loop
- Parameters:
subTreeRoot
- lv
-
- Returns:
addVectorStatement
public java.lang.String addVectorStatement(cetus.hir.Traversable arrayNode,
java.util.ArrayList<ArrayBoundary> boundaryList)
addMatrixStatement
public java.lang.String addMatrixStatement(cetus.hir.Traversable arrayNode,
java.util.ArrayList<ArrayBoundary> boundaryList)
getNodeName
public java.lang.String getNodeName(cetus.hir.Traversable node)
addIncludeStatements
public static void addIncludeStatements(cetus.hir.Traversable rootNode,
java.util.ArrayList<java.lang.String> directiveLists)
generateWrapperFile
public void generateWrapperFile()