|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ir.hir.HirVisitorModel2
coins.alias.MyExpIdAssigner
Assigns MyExpIds to relevant nodes in a subprogram.
Nodes MyExpIds are assigned to are
VarNodesSubscriptedExp nodesQualifiedExp (both structure and
union member qualifications) nodesPointedExp nodesFunctionExpnodesPhiExp (not implemented, as far as I know)
nodesExp nodes
(including conversion)ADDRESS nodes (HIR nodes whose operator code
(specified by HIR.getOperator()) is
HIR.OP_ADDRESS)CONTENTS nodes
DECAY nodes
UNDECAY nodes
AssignStmt nodes
AssignStmt nodes) are
the nodes that can be considered to have values.
(Nodes with aggregate type are considered to have
arrays of values.) Operands of the ADDRESS
nodes are also included, although their values are irrelevant.
| Field Summary | |
(package private) AliasFactory |
fFactory
Factory object used to create objects. |
(package private) MyExpId[] |
fMyExpIdTable
Table of MyExpId objects whose index is
the HIR node index. |
(package private) SubpDefinition |
fSubpDef
SubpDefinition instance nodes contained
in which to assign MyExpIds. |
| Fields inherited from class coins.ir.hir.HirVisitorModel2 |
fDbgLevel, hirRoot, ioRoot, symRoot |
| Constructor Summary | |
(package private) |
MyExpIdAssigner(SubpDefinition pSubpDef,
HirRoot pHirRoot)
Creates a new instance of MyExpIdAssigner |
| Method Summary | |
(package private) MyExpId[] |
assign()
Performs the assignment for all the nodes contained in fSubpDef. |
void |
atAssignStmt(AssignStmt pStmt)
Assigns MyExpId to the specified
AssignStmt. |
void |
atExp(Exp pExp)
Assigns MyExpId to the specified Exp. |
void |
atFunctionExp(FunctionExp pExp)
Assigns MyExpId to the specified
FunctionExp. |
void |
atPhiExp(PhiExp pExp)
Assigns MyExpId to the specified
PhiExp. |
void |
atPointedExp(PointedExp pExp)
Assigns MyExpId to the specified
PointedExp. |
void |
atQualifiedExp(QualifiedExp pExp)
Assigns MyExpId to the specified
QualifiedExp. |
void |
atSubscriptedExp(SubscriptedExp pExp)
Assigns MyExpId to the specified
SubscriptedExp. |
void |
atVarNode(VarNode pVarNode)
Assigns MyExpId to the specified VarNode. |
| Methods inherited from class coins.ir.hir.HirVisitorModel2 |
atAsmStmt, atBlockStmt, atConstNode, atElemNode, atExpStmt, atForStmt, atHirList, atHirSeq, atIfStmt, atIndexedLoopStmt, atInfNode, atInfStmt, atIrList, atJumpStmt, atLabelDef, atLabeledStmt, atLabelNode, atLoopStmt, atNullNode, atProgram, atRepeatStmt, atReturnStmt, atSubpDefinition, atSubpNode, atSwitchStmt, atSymNode, atTypeNode, atUntilStmt, atWhileStmt, visit, visitChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
MyExpId[] fMyExpIdTable
MyExpId objects whose index is
the HIR node index.
final AliasFactory fFactory
SubpDefinition fSubpDef
SubpDefinition instance nodes contained
in which to assign MyExpIds.
| Constructor Detail |
MyExpIdAssigner(SubpDefinition pSubpDef,
HirRoot pHirRoot)
pSubpDef - SubpDefinition instance
nodes contained in which to assign MyExpIds.pHirRoot - HirRoot object shared by every
module in the program.| Method Detail |
MyExpId[] assign()
fSubpDef.
fMyExpIdTable, the table of assigned
MyExpIds where indexes are HIR node indexes.public void atVarNode(VarNode pVarNode)
MyExpId to the specified VarNode.
atVarNode in interface HirVisitoratVarNode in class HirVisitorModel2pVarNode - VarNode to assign
MyExpId to.public void atExp(Exp pExp)
MyExpId to the specified Exp.
atExp in interface HirVisitoratExp in class HirVisitorModel2pExp - Exp to assign MyExpId to.public void atSubscriptedExp(SubscriptedExp pExp)
MyExpId to the specified
SubscriptedExp.
atSubscriptedExp in interface HirVisitoratSubscriptedExp in class HirVisitorModel2pExp - SubscriptedExp to assign
MyExpId to.public void atQualifiedExp(QualifiedExp pExp)
MyExpId to the specified
QualifiedExp.
atQualifiedExp in interface HirVisitoratQualifiedExp in class HirVisitorModel2pExp - QualifiedExp to assign
MyExpId to.public void atPointedExp(PointedExp pExp)
MyExpId to the specified
PointedExp.
atPointedExp in interface HirVisitoratPointedExp in class HirVisitorModel2pExp - PointedExp to assign
MyExpId to.public void atFunctionExp(FunctionExp pExp)
MyExpId to the specified
FunctionExp.
atFunctionExp in interface HirVisitoratFunctionExp in class HirVisitorModel2pExp - FunctionExp to assign
MyExpId to.public void atAssignStmt(AssignStmt pStmt)
MyExpId to the specified
AssignStmt.
atAssignStmt in interface HirVisitoratAssignStmt in class HirVisitorModel2pStmt - AssignStmt to assign
MyExpId to.public void atPhiExp(PhiExp pExp)
MyExpId to the specified
PhiExp.
atPhiExp in interface HirVisitoratPhiExp in class HirVisitorModel2pExp - PhiExp to assign
MyExpId to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||