All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.QuadSSA.ANEW

java.lang.Object
   |
   +----harpoon.IR.QuadSSA.Quad
           |
           +----harpoon.IR.QuadSSA.ANEW

public class ANEW
extends Quad
ANEW represents an array creation operation.

Version:
$Id: ANEW.java,v 1.12 1998/11/10 03:34:10 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
NEW, AGET, ASET, ALENGTH

Variable Index

 o dims
Lengths of each dimension to create.
 o dst
The Temp in which to store the new array reference.
 o hclass
Description of array class to create.

Constructor Index

 o ANEW(HCodeElement, Temp, HClass, Temp[])
Creates an ANEW object.

Method Index

 o clone()
Properly clone dims[] array.
 o def()
Returns the Temp defined by this Quad.
 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 the Temps used by this Quad.
 o visit(QuadVisitor)
Accept a visitor.

Variables

 o dst
 public Temp dst
The Temp in which to store the new array reference.

 o hclass
 public HClass hclass
Description of array class to create.

 o dims
 public Temp dims[]
Lengths of each dimension to create.

Constructors

 o ANEW
 public ANEW(HCodeElement source,
             Temp dst,
             HClass hclass,
             Temp dims[])
Creates an ANEW object. ANEW creates an array of the type and number of dimensions indicated by the hclass parameter. Each entry in dims denotes the number of components in a particular dimension of the array. dims[0] corresponds to the left-most dimension. The array class referenced by hclass may have more dimensions than the length of the dims parameter. In that case, only the first dims.length dimensions of the array are created.

Methods

 o def
 public Temp[] def()
Returns the Temp defined by this Quad.

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

Returns:
the dims field.
Overrides:
use 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 dims[] array.

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