|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--harpoon.Analysis.Liveness | +--harpoon.Analysis.Quads.QuadLiveness
QuadLiveness
performs live variable analysis for a given
HCode
. Since it caches results, you should create a new
QuadLiveness
if you have changed the HCode
.
Field Summary |
Fields inherited from class harpoon.Analysis.Liveness |
hc |
Constructor Summary | |
QuadLiveness(HCode hc)
Creates a QuadLiveness . |
Method Summary | |
Set |
getLiveIn(HCodeElement hce)
Returns the Set of Temp s
that are live-in at the HCodeElement . |
Temp[] |
getLiveInandOutArray(HCodeElement hce)
|
Temp[] |
getLiveInArray(HCodeElement hce)
Same as getLiveIn, but returns array of Temp s. |
Set |
getLiveOut(HCodeElement hce)
Returns the Set of Temp s
that are live-out at the HCodeElement . |
Temp[] |
getLiveOutArray(HCodeElement hce)
Same as getLiveOut, but returns array of Temp s. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QuadLiveness(HCode hc)
QuadLiveness
. Requires
that the HCode
be quad-no-ssa.
Method Detail |
public Set getLiveIn(HCodeElement hce)
Set
of Temp
s
that are live-in at the HCodeElement
.
Requires that the HCodeElement
be in
quad-no-ssa form. Returns null
if there
no live-in variables.
getLiveIn
in class Liveness
public Temp[] getLiveInArray(HCodeElement hce)
Temp
s. This
array is guaranteed to have the Temp's in the same order for a given
QuadLiveness object,Quad pair.
public Set getLiveOut(HCodeElement hce)
Set
of Temp
s
that are live-out at the HCodeElement
.
Requires that the HCodeElement
be in
quad-no-ssa form. Returns null
if there
no live-in variables.
getLiveOut
in class Liveness
public Temp[] getLiveOutArray(HCodeElement hce)
Temp
s.
Makes the same order guarantees as getLiveInArray
.
public Temp[] getLiveInandOutArray(HCodeElement hce)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |