|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.Liveness<Quad>
harpoon.Analysis.Quads.QuadLiveness
public class 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<Quad> hc)
Creates a QuadLiveness . |
Method Summary | |
---|---|
Set<Temp> |
getLiveIn(Quad hce)
Returns the Set of Temp s
that are live-in at the HCodeElement . |
Temp[] |
getLiveInandOutArray(Quad hce)
|
Temp[] |
getLiveInArray(Quad hce)
Same as getLiveIn, but returns array of Temp s. |
Set<Temp> |
getLiveOut(Quad hce)
Returns the Set of Temp s
that are live-out at the HCodeElement . |
Temp[] |
getLiveOutArray(Quad 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<Quad> hc)
QuadLiveness
. Requires
that the HCode
be quad-no-ssa.
Method Detail |
---|
public Set<Temp> getLiveIn(Quad 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<Quad>
public Temp[] getLiveInArray(Quad 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<Temp> getLiveOut(Quad 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<Quad>
public Temp[] getLiveOutArray(Quad hce)
Temp
s.
Makes the same order guarantees as getLiveInArray
.
public Temp[] getLiveInandOutArray(Quad hce)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |