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>

Variable Index

 o dst
 o src

Constructor Index

 o PHI(HCodeElement, Temp[], int)
Creates a PHI object with the specified arity.
 o PHI(HCodeElement, Temp[], Temp[][], int)
Creates a PHI object.

Method Index

 o clone()
Properly clone src[][] and dst[] arrays.
 o def()
Returns all the Temps defined by this Quad.
 o grow(Temp[])
Grow the arity of a PHI by one.
 o remove(int)
Remove a predecessor from this phi.
 o renameDefs(TempMap)
Rename all defined variables in this Quad according to a mapping.
 o renameUses(TempMap)
Rename all used variables in this Quad according to a mapping.
 o toString()
Returns a human-readable representation of this Quad.
 o use()
Returns all the Temps used by this Quad.
 o visit(QuadVisitor)
Accept a visitor.

Variables

 o dst
 public Temp dst[]
 o src
 public Temp src[][]

Constructors

 o PHI
 public PHI(HCodeElement source,
            Temp dst[],
            Temp src[][],
            int arity)
Creates a PHI object.

 o PHI
 public PHI(HCodeElement source,
            Temp dst[],
            int arity)
Creates a PHI object with the specified arity.

Methods

 o remove
 public void remove(int which_pred)
Remove a predecessor from this phi.

 o grow
 public void grow(Temp args[])
Grow the arity of a PHI by one.

 o use
 public Temp[] use()
Returns all the Temps used by this Quad.

Overrides:
use in class Quad
 o def
 public Temp[] def()
Returns all the Temps defined by this Quad.

Overrides:
def in class Quad
 o renameUses
 public void renameUses(TempMap tm)
Rename all used variables in this Quad according to a mapping.

Overrides:
renameUses in class Quad
 o renameDefs
 public void renameDefs(TempMap tm)
Rename all defined variables in this Quad according to a mapping.

Overrides:
renameDefs in class Quad
 o clone
 public Object clone()
Properly clone src[][] and dst[] arrays.

Overrides:
clone in class Quad
 o visit
 public void visit(QuadVisitor v)
Accept a visitor.

Overrides:
visit in class Quad
 o 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