|
|||||||||
| 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 Temps
that are live-in at the HCodeElement. |
Temp[] |
getLiveInandOutArray(Quad hce)
|
Temp[] |
getLiveInArray(Quad hce)
Same as getLiveIn, but returns array of Temps. |
Set<Temp> |
getLiveOut(Quad hce)
Returns the Set of Temps
that are live-out at the HCodeElement. |
Temp[] |
getLiveOutArray(Quad hce)
Same as getLiveOut, but returns array of Temps. |
| 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 Temps
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)
Temps. 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 Temps
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)
Temps.
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 | ||||||||