|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.Analysis.UseDef<HCE>
public class UseDef<HCE extends HCodeElement>
UseDef objects map Temps to the
HCodeElements 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<HCE> hc)
Return an array of all Temps defined in a given HCode. |
Temp[] |
allTemps(HCode<HCE> hc)
Return an array of all Temps used or defined in a given HCode. |
Temp[] |
allUses(HCode<HCE> hc)
Return an array of all Temps used in a given HCode. |
HCE[] |
defMap(HCode<HCE> hc,
Temp t)
Return the HCodeElements which define a given Temp. |
HCE[] |
useMap(HCode<HCE> hc,
Temp t)
Return 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 HCE[] defMap(HCode<HCE> hc,
Temp t)
defMap in interface UseDefMap<HCE extends HCodeElement>hc - The HCode containing t.t - The temporary to examine.
HCodeElements where
HCodeElement.def() includes t.
public HCE[] useMap(HCode<HCE> hc,
Temp t)
useMap in interface UseDefMap<HCE extends HCodeElement>hc - The HCode containing t.t - The temporary to examine.
HCodeElements where
HCodeElement.use() includes t.public Temp[] allDefs(HCode<HCE> hc)
public Temp[] allUses(HCode<HCE> hc)
public Temp[] allTemps(HCode<HCE> hc)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||