|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.sym.SymImpl
coins.sym.ExpIdImpl
ExpIdImpl
| Field Summary | |
protected HIR |
fCopiedExp
|
protected IrList |
fDefList
Definition list containing IR nodes that define the value of this symbol. |
protected ExpInf |
fExpInf
|
protected FlowExpId |
fFlowExpId
FlowExpId corresponding to this ExpId. |
protected ExpId |
fHashChain
|
protected int |
fIdNumber
|
protected int |
fIndex
|
protected IR |
fLinkedNode
|
protected java.util.Set |
fOperandSet
|
protected IrList |
fUseList
Use list containing IR nodes that use (refer) this symbol. |
| Fields inherited from class coins.sym.SymImpl |
fDbgLevel, fDefinedIn, fFlagBox, fKind, fName, fNextSym, fRecordedIn, fSourceInf, fSymInf, fType, fUniqueNameSym, fWork, machineParam, sourceLanguage, symRoot |
| Fields inherited from interface coins.sym.Sym |
KIND_NAME, VISIBILITY |
| Constructor Summary | |
ExpIdImpl(SymRoot pSymRoot,
java.lang.String pExpIdName,
Sym pDefinedIn)
|
|
| Method Summary | |
void |
addOperand(FlowAnalSym pOperand)
|
HIR |
getCopiedExp()
getCopiedExp Get the expression for which this ExpId is first created. |
ExpInf |
getExpInf()
|
FlowExpId |
getFlowExpId()
getFlowExpId Get the FlowExpId that is used in aflow. |
int |
getIndex()
getIndex Get the index number assigned to the symbol. |
IR |
getLinkedNode()
getLinkedNode Get the IR node for which this ExpId is first created. |
Sym |
getLinkedSym()
getLinkedSym If the linked node of this ExpId has symbol connected to it, then return it, else return null. |
ExpId |
getNextId()
getNextId Get the next ExpId in the hash chain. |
int |
getNumberOfOperations()
Returns the number of operations this FlowExpId involves. |
java.util.Set |
getOperandSet()
Returns the set of FlowAnalSyms that are operands of this FlowExpId. |
java.util.Set |
getOperandSet0()
Returns the set of FlowAnalSyms that are operands of this FlowExpId, and that hold the value that may contribute to the result of the computation of this FlowExpId. |
SetRefRepr |
getSetRefRepr()
Get SetRefRepr information that is used in data flow analysis for the expression corresponding to this ExpId. |
boolean |
isLHS()
|
void |
resetFlowAnalInf()
resetFlowAnalInf Reset information for flow analysis, that is, nullify DefUseList, definition list, use list, ExpId, and reset the index value to 0. |
void |
setExpInf(ExpInf pExpInf)
|
void |
setFlowExpId(FlowExpId pFlowExpId)
setFlowExpId Set the FlowExpId that is used in aflow. |
void |
setIndex(int pIndex)
setIndex Set the index number assigned to the symbol. |
void |
setNextId(ExpId pNextId)
setNextId Set the next ExpId in the hash chain. |
void |
setSetRefRepr(SetRefRepr pSetRefRepr)
Set SetRefRepr information that is used in data flow analysis for the expression corresponding to this ExpId. |
java.lang.String |
toString()
Get the string image of object. |
java.lang.String |
toStringDetail()
toStringDetail Get detailed attributes of this symbol in text which is not interned. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface coins.sym.Sym0 |
charConst, definedType, defineElem, defineLabel, defineParam, defineSubp, defineVar, enumType, floatConst, getDefinedFile, getDefinedIn, getFlag, getName, getNextSym, getRecordedIn, getSymKind, getSymType, getUniqueName, intConst, isGlobal, namedConst, pointerType, setFlag, stringConst, structType, subpType, unionType, vectorType, vectorTypeUnfixed |
| Field Detail |
protected ExpId fHashChain
protected int fIdNumber
protected IR fLinkedNode
protected HIR fCopiedExp
protected ExpInf fExpInf
protected FlowExpId fFlowExpId
protected IrList fDefList
protected IrList fUseList
protected int fIndex
protected java.util.Set fOperandSet
| Constructor Detail |
public ExpIdImpl(SymRoot pSymRoot,
java.lang.String pExpIdName,
Sym pDefinedIn)
| Method Detail |
public IR getLinkedNode()
ExpId
getLinkedNode in interface ExpIdpublic HIR getCopiedExp()
ExpId
getCopiedExp in interface ExpIdpublic Sym getLinkedSym()
ExpId
getLinkedSym in interface ExpIdpublic ExpId getNextId()
ExpId
getNextId in interface ExpIdpublic void setNextId(ExpId pNextId)
ExpId
setNextId in interface ExpIdpNextId - the next ExpId in the hash chain.public java.lang.String toString()
HasStringObject
toString in interface HasStringObjecttoString in class SymImplpublic java.lang.String toStringDetail()
Sym
toStringDetail in interface SymtoStringDetail in class SymImplpublic void setExpInf(ExpInf pExpInf)
setExpInf in interface ExpIdpublic ExpInf getExpInf()
getExpInf in interface ExpIdpublic boolean isLHS()
isLHS in interface ExpIdpublic java.util.Set getOperandSet()
ExpId
getOperandSet in interface ExpIdpublic java.util.Set getOperandSet0()
ExpId
getOperandSet0 in interface ExpIdpublic int getNumberOfOperations()
ExpId
getNumberOfOperations in interface ExpIdpublic void setSetRefRepr(SetRefRepr pSetRefRepr)
ExpIdSet SetRefRepr information that is used in data flow analysis for the expression corresponding to this ExpId. The SetRefRepr represents such information as set of symbols refered by the expression/statement set of symbols modified by the expression/statement ...
setSetRefRepr in interface ExpIdpSetRefRepr - information to be set.public SetRefRepr getSetRefRepr()
ExpIdGet SetRefRepr information that is used in data flow analysis for the expression corresponding to this ExpId. The SetRefRepr represents such information as set of symbols refered by the expression/statement set of symbols modified by the expression/statement ...
getSetRefRepr in interface ExpIdpublic int getIndex()
FlowAnalSym
getIndex in interface FlowAnalSympublic void setIndex(int pIndex)
FlowAnalSym
setIndex in interface FlowAnalSympIndex - index number to be set to this symbol.public void resetFlowAnalInf()
FlowAnalSym
resetFlowAnalInf in interface FlowAnalSympublic void addOperand(FlowAnalSym pOperand)
public FlowExpId getFlowExpId()
ExpId
getFlowExpId in interface ExpIdpublic void setFlowExpId(FlowExpId pFlowExpId)
ExpId
setFlowExpId in interface ExpIdpFlowExpId - corresponding FlowExpId instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||