|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.opt.LoopExpansion
title: LoopExpansion class.
description: Abstract class for Loop Expansion implement class.
| Field Summary | |
protected int |
fDbgLevel
|
protected FlowRoot |
flowRoot
|
protected int |
fMaxAllowableNodesInLoopBody
|
protected int |
fNumberOfGeneralRegisters
|
protected java.util.Map |
fOptionMap
|
protected CoinsOptions |
fOptions
|
protected HirRoot |
hirRoot
|
protected IoRoot |
ioRoot
|
protected SymRoot |
symRoot
|
| Constructor Summary | |
protected |
LoopExpansion(HirRoot phirRoot)
Construct this object |
| Method Summary | |
protected int |
calcStatementCount(Stmt pStmt)
Calculate Stmt count in pStmt. |
abstract boolean |
doSubprogram(SubpDefinition pSubpDef)
Do Optimize in subprogram. |
protected Var |
getArrayVar(SubscriptedExp Subs)
Get array Var SubscriptedExp has. |
protected Debug |
getDebug()
Get Debug this object refer. |
int |
getMaxAllowableStmtsInLoopBody()
Get max statement count in loopbody of which allow expand. |
protected Exp |
getSimpleExp(Exp pExp)
Get simple Exp for Conv'ed, or Undecay'ed Exp. |
protected java.util.Set |
getSubscriptVar(SubscriptedExp Subs)
Get subscript Vars SubscriptedExp has. |
protected boolean |
hasBadElement(Stmt pStmt)
Check whether Stmt contains bad element. |
protected boolean |
isBadElement(HIR hirElement)
Check whether hir element is bad for loop optimizations, is follows at least. |
void |
setMaxAllowableStmtsInLoopBody(int pMaxAllowableStmtCount)
Set max statement count in loopbody of which allow expand. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected HirRoot hirRoot
protected FlowRoot flowRoot
protected SymRoot symRoot
protected IoRoot ioRoot
protected java.util.Map fOptionMap
protected CoinsOptions fOptions
protected int fNumberOfGeneralRegisters
protected int fMaxAllowableNodesInLoopBody
protected int fDbgLevel
| Constructor Detail |
protected LoopExpansion(HirRoot phirRoot)
phirRoot - HIR root object.| Method Detail |
public int getMaxAllowableStmtsInLoopBody()
public void setMaxAllowableStmtsInLoopBody(int pMaxAllowableStmtCount)
pMaxAllowableStmtCount - max statement count in loopbody of which allow expand.public abstract boolean doSubprogram(SubpDefinition pSubpDef)
pSubpDef - SubpDefinition to do optimization.
protected Debug getDebug()
protected Exp getSimpleExp(Exp pExp)
pExp - Exp object.
protected boolean isBadElement(HIR hirElement)
protected boolean hasBadElement(Stmt pStmt)
pStmt - Stmt object.
protected int calcStatementCount(Stmt pStmt)
pStmt - Stmt object.
protected Var getArrayVar(SubscriptedExp Subs)
Subs - SubscriptedExp object
protected java.util.Set getSubscriptVar(SubscriptedExp Subs)
Subs - SubscriptedExp object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||