|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--harpoon.Analysis.UseDef
UseDef
objects map Temp
s to the
HCodeElement
s which use or define
them. The UseDef
caches its results, so you should
throw away your current UseDef
object and make
another one if you make modifications to the IR.
Constructor Summary | |
UseDef()
Creates a new, empty UseDef . |
Method Summary | |
Temp[] |
allDefs(HCode hc)
Return an array of all Temps defined in a given HCode. |
Enumeration |
allDefsE(HCode hc)
Return an Enumeration of all Temps defined in a given HCode. |
Temp[] |
allTemps(HCode hc)
Return an array of all Temps used or defined in a given HCode. |
Enumeration |
allTempsE(HCode hc)
Return an Enumeration of all Temps used or defined in a given HCode. |
Temp[] |
allUses(HCode hc)
Return an array of all Temps used in a given HCode. |
Enumeration |
allUsesE(HCode hc)
Return an Enumeration of all Temps used in a given HCode. |
HCodeElement[] |
defMap(HCode hc,
Temp t)
Return the HCodeElements which define a given Temp. |
Enumeration |
defMapE(HCode hc,
Temp t)
Enumerate the HCodeElements which define a given Temp. |
HCodeElement[] |
useMap(HCode hc,
Temp t)
Return the HCodeElements which use a given Temp. |
Enumeration |
useMapE(HCode hc,
Temp t)
Enumerate the HCodeElements which use a given Temp. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UseDef()
UseDef
.
Method Detail |
public HCodeElement[] defMap(HCode hc, Temp t)
defMap
in interface UseDefMap
hc
- The HCode
containing t
.t
- The temporary to examine.
HCodeElement
s where
HCodeElement.def()
includes t
.public Enumeration defMapE(HCode hc, Temp t)
defMapE
in interface UseDefMap
hc
- The HCode
containing t
.t
- The temporary to examine.
HCodeElement
s where
HCodeElement.def()
includes t
.public HCodeElement[] useMap(HCode hc, Temp t)
useMap
in interface UseDefMap
hc
- The HCode
containing t
.t
- The temporary to examine.
HCodeElement
s where
HCodeElement.use()
includes t
.public Enumeration useMapE(HCode hc, Temp t)
useMapE
in interface UseDefMap
hc
- The HCode
containing t
.t
- The temporary to examine.
HCodeElement
s where
HCodeElement.use()
includes t
.public Temp[] allDefs(HCode hc)
public Enumeration allDefsE(HCode hc)
public Temp[] allUses(HCode hc)
public Enumeration allUsesE(HCode hc)
public Temp[] allTemps(HCode hc)
public Enumeration allTempsE(HCode hc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |