All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.IR.QuadSSA.PHI
java.lang.Object
|
+----harpoon.IR.QuadSSA.Quad
|
+----harpoon.IR.QuadSSA.PHI
- public class PHI
- extends Quad
PHI
objects represent blocks of PHI functions.
- Version:
- $Id: PHI.java,v 1.21 1998/11/10 03:34:10 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
-
dst
-
-
src
-
-
PHI(HCodeElement, Temp[], int)
- Creates a
PHI
object with the specified arity.
-
PHI(HCodeElement, Temp[], Temp[][], int)
- Creates a
PHI
object.
-
clone()
- Properly clone
src[][]
and dst[]
arrays.
-
def()
- Returns all the Temps defined by this Quad.
-
grow(Temp[])
- Grow the arity of a PHI by one.
-
remove(int)
- Remove a predecessor from this phi.
-
renameDefs(TempMap)
- Rename all defined variables in this Quad according to a mapping.
-
renameUses(TempMap)
- Rename all used variables in this Quad according to a mapping.
-
toString()
- Returns a human-readable representation of this Quad.
-
use()
- Returns all the Temps used by this Quad.
-
visit(QuadVisitor)
- Accept a visitor.
dst
public Temp dst[]
src
public Temp src[][]
PHI
public PHI(HCodeElement source,
Temp dst[],
Temp src[][],
int arity)
- Creates a
PHI
object.
PHI
public PHI(HCodeElement source,
Temp dst[],
int arity)
- Creates a
PHI
object with the specified arity.
remove
public void remove(int which_pred)
- Remove a predecessor from this phi.
grow
public void grow(Temp args[])
- Grow the arity of a PHI by one.
use
public Temp[] use()
- Returns all the Temps used by this Quad.
- Overrides:
- use in class Quad
def
public Temp[] def()
- Returns all the Temps defined by this Quad.
- Overrides:
- def in class Quad
renameUses
public void renameUses(TempMap tm)
- Rename all used variables in this Quad according to a mapping.
- Overrides:
- renameUses in class Quad
renameDefs
public void renameDefs(TempMap tm)
- Rename all defined variables in this Quad according to a mapping.
- Overrides:
- renameDefs in class Quad
clone
public Object clone()
- Properly clone
src[][]
and dst[]
arrays.
- Overrides:
- clone in class Quad
visit
public void visit(QuadVisitor v)
- Accept a visitor.
- Overrides:
- visit in class Quad
toString
public String toString()
- Returns a human-readable representation of this Quad.
- Overrides:
- toString in class Quad
All Packages Class Hierarchy This Package Previous Next Index