|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.score.Scribble2C
public final class Scribble2C
A class to generate C code from a Scribble CFG.
$Id: Scribble2C.java,v 1.5 2007-10-04 19:58:19 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Constructor Summary | |
---|---|
Scribble2C(Machine machine)
Construct an object to generate C code from a scribble tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scribble2C(Machine machine)
machine
- specifies the target architectureMethod Detail |
---|
public void generateC(Scribble scribble, Emit emit, boolean debug)
scribble
- the Scribble graph (which represents a single routine).emit
- the Emit class instance for generating the outputdebug
- is true to select generation of additional commentspublic static void genCFromCallGraph(CallGraph cg, Emit emit)
cg
- specifies the collection of routinesemit
- is the Emit
object ued to
output the codepublic static void genIncludes(SourceLanguage lang, Emit emit)
lang
- specifies the original source languageemit
- is the Emit
object ued to
output the codepublic static void genGlobalDecls(CallGraph cg, Emit emit)
cg
- specifies the collection of routinesemit
- is the Emit
object ued to
output the codepublic void visitNullChord(NullChord c)
visitNullChord
in interface Predicate
public void visitLoopPreHeaderChord(LoopPreHeaderChord c)
visitLoopPreHeaderChord
in interface Predicate
public void visitLoopHeaderChord(LoopHeaderChord c)
visitLoopHeaderChord
in interface Predicate
public void visitLoopTailChord(LoopTailChord c)
visitLoopTailChord
in interface Predicate
public void visitLoopInitChord(LoopInitChord c)
visitLoopInitChord
in interface Predicate
public void visitLoopExitChord(LoopExitChord c)
visitLoopExitChord
in interface Predicate
public void visitExprChord(ExprChord c)
visitExprChord
in interface Predicate
public void visitPhiExprChord(PhiExprChord c)
visitPhiExprChord
in interface Predicate
public void visitBeginChord(BeginChord c)
visitBeginChord
in interface Predicate
public void visitEndChord(EndChord c)
visitEndChord
in interface Predicate
public void visitSwitchChord(SwitchChord c)
visitSwitchChord
in interface Predicate
public void visitIfThenElseChord(IfThenElseChord c)
visitIfThenElseChord
in interface Predicate
public void visitMarkerChord(MarkerChord c)
visitMarkerChord
in interface Predicate
public void visitGotoChord(GotoChord c)
visitGotoChord
in interface Predicate
public void visitReturnChord(ReturnChord c)
visitReturnChord
in interface Predicate
public void visitExitChord(ExitChord c)
visitExitChord
in interface Predicate
public void visitDualExpr(DualExpr e)
visitDualExpr
in interface Predicate
public void visitLiteralExpr(LiteralExpr e)
visitLiteralExpr
in interface Predicate
public void visitNilExpr(NilExpr e)
visitNilExpr
in interface Predicate
public void visitVaStartExpr(VaStartExpr e)
visitVaStartExpr
in interface Predicate
public void visitVaEndExpr(VaEndExpr e)
visitVaEndExpr
in interface Predicate
public void visitVaArgExpr(VaArgExpr e)
visitVaArgExpr
in interface Predicate
public void visitAbsoluteValueExpr(AbsoluteValueExpr e)
visitAbsoluteValueExpr
in interface Predicate
public void visitBitComplementExpr(BitComplementExpr e)
visitBitComplementExpr
in interface Predicate
public void visitNegativeExpr(NegativeExpr e)
visitNegativeExpr
in interface Predicate
public void visitTranscendentalExpr(TranscendentalExpr e)
visitTranscendentalExpr
in interface Predicate
public void visitTranscendental2Expr(Transcendental2Expr e)
visitTranscendental2Expr
in interface Predicate
public void visitNotExpr(NotExpr e)
visitNotExpr
in interface Predicate
public void visitAllocateExpr(AllocateExpr e)
visitAllocateExpr
in interface Predicate
public void visitAdditionExpr(AdditionExpr ae)
visitAdditionExpr
in interface Predicate
public void visitAndExpr(AndExpr e)
visitAndExpr
in interface Predicate
public void visitBitAndExpr(BitAndExpr e)
visitBitAndExpr
in interface Predicate
public void visitBitOrExpr(BitOrExpr e)
visitBitOrExpr
in interface Predicate
public void visitBitShiftExpr(BitShiftExpr e)
visitBitShiftExpr
in interface Predicate
public void visitBitXorExpr(BitXorExpr e)
visitBitXorExpr
in interface Predicate
public void visitDivisionExpr(DivisionExpr e)
visitDivisionExpr
in interface Predicate
public void visitCompareExpr(CompareExpr e)
visitCompareExpr
in interface Predicate
public void visitEqualityExpr(EqualityExpr e)
visitEqualityExpr
in interface Predicate
public void visitGreaterEqualExpr(GreaterEqualExpr e)
visitGreaterEqualExpr
in interface Predicate
public void visitGreaterExpr(GreaterExpr e)
visitGreaterExpr
in interface Predicate
public void visitLessEqualExpr(LessEqualExpr e)
visitLessEqualExpr
in interface Predicate
public void visitLessExpr(LessExpr e)
visitLessExpr
in interface Predicate
public void visitExponentiationExpr(ExponentiationExpr e)
visitExponentiationExpr
in interface Predicate
public void visitMultiplicationExpr(MultiplicationExpr e)
visitMultiplicationExpr
in interface Predicate
public void visitNotEqualExpr(NotEqualExpr e)
visitNotEqualExpr
in interface Predicate
public void visitOrExpr(OrExpr e)
visitOrExpr
in interface Predicate
public void visitRemainderExpr(RemainderExpr e)
visitRemainderExpr
in interface Predicate
public void visitSubtractionExpr(SubtractionExpr se)
visitSubtractionExpr
in interface Predicate
public void visitLoadFieldValueExpr(LoadFieldValueExpr e)
visitLoadFieldValueExpr
in interface Predicate
public void visitLoadFieldAddressExpr(LoadFieldAddressExpr e)
visitLoadFieldAddressExpr
in interface Predicate
public void visitConditionalExpr(ConditionalExpr ce)
visitConditionalExpr
in interface Predicate
public void visitConversionExpr(ConversionExpr e)
visitConversionExpr
in interface Predicate
public void visitComplexValueExpr(ComplexValueExpr e)
visitComplexValueExpr
in interface Predicate
public void visitCallFunctionExpr(CallFunctionExpr e)
visitCallFunctionExpr
in interface Predicate
public void visitCallMethodExpr(CallMethodExpr e)
visitCallMethodExpr
in interface Predicate
public void visitLoadDeclAddressExpr(LoadDeclAddressExpr e)
visitLoadDeclAddressExpr
in interface Predicate
public void visitLoadDeclValueExpr(LoadDeclValueExpr e)
visitLoadDeclValueExpr
in interface Predicate
public void visitLoadValueIndirectExpr(LoadValueIndirectExpr e)
visitLoadValueIndirectExpr
in interface Predicate
public void visitArrayIndexExpr(ArrayIndexExpr aie)
visitArrayIndexExpr
in interface Predicate
public void visitSubscriptExpr(SubscriptExpr e)
visitSubscriptExpr
in interface Predicate
public void visitPhiExpr(PhiExpr e)
visitPhiExpr
in interface Predicate
public void visitExprPhiExpr(ExprPhiExpr e)
visitExprPhiExpr
in interface Predicate
public void visitVectorExpr(VectorExpr e)
visitVectorExpr
in interface Predicate
public void visitMaxExpr(MaxExpr e)
visitMaxExpr
in interface Predicate
public void visitMinExpr(MinExpr e)
visitMinExpr
in interface Predicate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |