ida.pelab.cgn.ccode
Class CodeExtension

java.lang.Object
  extended by ida.pelab.cgn.ccode.CodeExtension

public class CodeExtension
extends java.lang.Object


Constructor Summary
CodeExtension()
           
 
Method Summary
static void addIncludeStatements(cetus.hir.Traversable rootNode, java.util.ArrayList<java.lang.String> directiveLists)
           
 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
 java.lang.String addMatrixStatement(cetus.hir.Traversable arrayNode, java.util.ArrayList<ArrayBoundary> boundaryList)
           
 java.lang.String addVectorStatement(cetus.hir.Traversable arrayNode, java.util.ArrayList<ArrayBoundary> boundaryList)
           
 void generateWrapperFile()
           
 java.lang.String getNodeName(cetus.hir.Traversable node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeExtension

public CodeExtension()
Method Detail

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()