|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.casttohir.ToHirVisit
coins.casttohir.ToHirCOpt
coins.casttohir.ToHirCOpt2
Do HIR-C optimization for arithmetic expression and conditional expression. Optimization level is controlled by compile option. ToHirCOpt2 does kind 4 through kind 8 optimizations described in ToHirCOpt.
| Field Summary | |
protected SideEffectCutter |
cutter
|
protected ToHirCOpt2 |
toOpt
|
| Fields inherited from class coins.casttohir.ToHirCOpt |
buffer, fDbgLevel, hir, inverter, nowBlock, sym, toCast, toHir |
| Constructor Summary | |
ToHirCOpt2(ToHir tohir)
Constructor. |
|
| Method Summary | |
protected Exp |
atAdd(Exp e)
At add expression node. |
protected Exp |
atAnd(Exp e)
At and expression node. |
protected Exp |
atARShift(Exp e)
At arithmetic R-shift expression node. |
protected Exp |
atCmpEq(Exp e)
At EQ expression node. |
protected Exp |
atCmpGe(Exp e)
At GE expression node. |
protected Exp |
atCmpGt(Exp e)
At GT expression node. |
protected Exp |
atCmpLe(Exp e)
At LE expression node. |
protected Exp |
atCmpLt(Exp e)
At LT expression node. |
protected Exp |
atCmpNe(Exp e)
At NE expression node. |
protected Exp |
atDiv(Exp e)
At mul expression node. |
protected Exp |
atLgAnd(Exp e)
At logical-and expression node. |
protected Exp |
atLgOr(Exp e)
At logical-or expression node. |
protected Exp |
atLShift(Exp e)
At L-shift expression node. |
protected Exp |
atMod(Exp e)
At mod expression node. |
protected Exp |
atMul(Exp e)
At mul expression node. |
protected Exp |
atOffset(Exp e)
At offset(difference of address) expression node. |
protected Exp |
atOr(Exp e)
At and expression node. |
protected Exp |
atRShift(Exp e)
At logical R-shift expression node. |
protected Exp |
atSelect(Exp e)
At selection expression node. |
protected Exp |
atSub(Exp e)
At sub expression node. |
protected Exp |
atXor(Exp e)
At xor expression node. |
protected void |
message(int level,
java.lang.String mes)
Output debug message. |
protected ToHirCOpt2 |
sureChild()
Make sure child of this object. |
| Methods inherited from class coins.casttohir.ToHirCOpt |
atAddAssign, atAddr, atAndAssign, atArrow, atAssign, atAssignStmt, atBlock, atCall, atComma, atConst, atContents, atConv, atDecay, atDivAssign, atElem, atEqZero, atExpList, atExpRepeat, atExpStmt, atFor, atIf, atIndex, atInfStmt, atJump, atLabeledStmt, atLShiftAssign, atModAssign, atMulAssign, atNeg, atNot, atOrAssign, atPost, atPre, atQual, atReturn, atRShiftAssign, atSetDataStmt, atSubAssign, atSubp, atSubpDefinition, atSubs, atSwitch, atUndecay, atUntil, atVar, atWhile, atXorAssign, inInitBlock, processPragmaItem, visitExp, visitProgram, visitProgram, visitStmt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ToHirCOpt2 toOpt
protected final SideEffectCutter cutter
| Constructor Detail |
public ToHirCOpt2(ToHir tohir)
tohir - Offers cooperation with the object of other packages.| Method Detail |
protected ToHirCOpt2 sureChild()
protected void message(int level,
java.lang.String mes)
message in class ToHirCOptlevel - Debug level.mes - Debug message.protected Exp atAdd(Exp e)
atAdd in class ToHirVisite - Exp
protected Exp atSub(Exp e)
atSub in class ToHirVisite - Exp
protected Exp atMul(Exp e)
atMul in class ToHirVisite - Exp
protected Exp atDiv(Exp e)
atDiv in class ToHirVisite - Exp
protected Exp atMod(Exp e)
atMod in class ToHirVisite - Exp
protected Exp atAnd(Exp e)
atAnd in class ToHirVisite - Exp
protected Exp atOr(Exp e)
atOr in class ToHirVisite - Exp
protected Exp atXor(Exp e)
atXor in class ToHirVisite - Exp
protected Exp atCmpEq(Exp e)
atCmpEq in class ToHirVisite - Exp
protected Exp atCmpNe(Exp e)
atCmpNe in class ToHirVisite - Exp
protected Exp atCmpGt(Exp e)
atCmpGt in class ToHirVisite - Exp
protected Exp atCmpGe(Exp e)
atCmpGe in class ToHirVisite - Exp
protected Exp atCmpLt(Exp e)
atCmpLt in class ToHirVisite - Exp
protected Exp atCmpLe(Exp e)
atCmpLe in class ToHirVisite - Exp
protected Exp atLShift(Exp e)
atLShift in class ToHirVisite - Exp
protected Exp atARShift(Exp e)
atARShift in class ToHirVisite - Exp
protected Exp atRShift(Exp e)
atRShift in class ToHirVisite - Exp
protected Exp atOffset(Exp e)
atOffset in class ToHirVisite - Exp
protected Exp atLgAnd(Exp e)
atLgAnd in class ToHirVisite - Exp
protected Exp atLgOr(Exp e)
atLgOr in class ToHirVisite - Exp
protected Exp atSelect(Exp e)
atSelect in class ToHirVisite - Exp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||