ida.pelab.cgn.ccode
Class CCodeGenerator

java.lang.Object
  extended by ida.pelab.cgn.ccode.CCodeGenerator
All Implemented Interfaces:
ICodeGenerator

public class CCodeGenerator
extends java.lang.Object
implements ICodeGenerator


Constructor Summary
CCodeGenerator()
           
 
Method Summary
 CGNAnnotation generateCode(MatchedInstance instance)
           
 PatternLevel getLevel()
           
 CcodePlatform getPlatform()
           
 boolean hideCode()
           
 void runExtraOperation(cetus.hir.Traversable irTreeRoot)
          This function can be used to implement the extra operations that should be applied to the IR based on the target architecture.
 void setPlatform(CcodePlatform platform)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCodeGenerator

public CCodeGenerator()
Method Detail

generateCode

public CGNAnnotation generateCode(MatchedInstance instance)
Specified by:
generateCode in interface ICodeGenerator

runExtraOperation

public void runExtraOperation(cetus.hir.Traversable irTreeRoot)
Description copied from interface: ICodeGenerator
This function can be used to implement the extra operations that should be applied to the IR based on the target architecture.

Specified by:
runExtraOperation in interface ICodeGenerator

setPlatform

public void setPlatform(CcodePlatform platform)

getPlatform

public CcodePlatform getPlatform()

hideCode

public boolean hideCode()
Specified by:
hideCode in interface ICodeGenerator

getLevel

public PatternLevel getLevel()
Specified by:
getLevel in interface ICodeGenerator