harpoon.Analysis
Class Liveness<HCE extends HCodeElement>

java.lang.Object
  extended by harpoon.Analysis.Liveness<HCE>
Direct Known Subclasses:
LiveVars, QuadLiveness

public abstract class Liveness<HCE extends HCodeElement>
extends Object

Liveness defines an abstract class for live variable analysis.

Version:
$Id: Liveness.java,v 1.3 2002/04/10 02:58:48 cananian Exp $
Author:
Karen K. Zee <kkz@alum.mit.edu>

Field Summary
protected  HCode<HCE> hc
          The HCode for which this object contains analysis results.
 
Constructor Summary
Liveness(HCode<HCE> hc)
          Creates a Liveness object from provided HCode.
 
Method Summary
abstract  Set<Temp> getLiveIn(HCE hce)
          Returns the Set of Temps that are live-in at the HCodeElement.
abstract  Set<Temp> getLiveOut(HCE hce)
          Returns the Set of Temps that are live-out at the HCodeElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hc

protected final HCode<HCE extends HCodeElement> hc
The HCode for which this object contains analysis results.

Constructor Detail

Liveness

public Liveness(HCode<HCE> hc)
Creates a Liveness object from provided HCode.

Method Detail

getLiveIn

public abstract Set<Temp> getLiveIn(HCE hce)
Returns the Set of Temps that are live-in at the HCodeElement.


getLiveOut

public abstract Set<Temp> getLiveOut(HCE hce)
Returns the Set of Temps that are live-out at the HCodeElement.