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
-
dims
- Lengths of each dimension to create.
-
dst
- The Temp in which to store the new array reference.
-
hclass
- Description of array class to create.
-
ANEW(HCodeElement, Temp, HClass, Temp[])
- Creates an
ANEW
object.
-
clone()
- Properly clone
dims[]
array.
-
def()
- Returns the Temp defined by this Quad.
-
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 the Temps used by this Quad.
-
visit(QuadVisitor)
- Accept a visitor.
dst
public Temp dst
- The Temp in which to store the new array reference.
hclass
public HClass hclass
- Description of array class to create.
dims
public Temp dims[]
- Lengths of each dimension to create.
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.
def
public Temp[] def()
- Returns the Temp defined by this Quad.
- Returns:
- the
dst
field.
- Overrides:
- def in class Quad
use
public Temp[] use()
- Returns the Temps used by this Quad.
- Returns:
- the
dims
field.
- Overrides:
- use 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
dims[]
array.
- 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