|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.IR.Quads.Quad
harpoon.IR.LowQuad.LowQuad
harpoon.IR.LowQuad.PSET
public class PSET
PSET
represents a POINTER
dereference to
set a field or array element. The ptr
Temp
ought to contain a POINTER
value.
Field Summary | |
---|---|
protected Temp |
ptr
Temp holding the POINTER value to
dereference and store to. |
protected Temp |
src
Temp containing the desired new value of the
field or element. |
protected HClass |
type
The type of the object we are storing. |
Fields inherited from class harpoon.IR.Quads.Quad |
---|
arrayFactory |
Constructor Summary | |
---|---|
PSET(LowQuadFactory qf,
HCodeElement source,
Temp ptr,
Temp src,
HClass type)
Creates a PSET representing a pointer dereference and
store. |
Method Summary | |
---|---|
Temp[] |
def()
Return all the Temps defined by this Quad. |
int |
kind()
Return an integer enumeration of the kind of this Quad . |
Temp |
ptr()
Returns the Temp holding the POINTER value
to dereference. |
Quad |
rename(QuadFactory qf,
TempMap defMap,
TempMap useMap)
Create a new Quad identical to the receiver, but
with all Temp s renamed according to a mapping. |
Temp |
src()
Returns the Temp holding the desired new value for
the dereference field or element. |
String |
toString()
Force everyone to reimplement toString() |
HClass |
type()
Returns the type of the field or array element we are storing. |
Temp[] |
use()
Return all the Temps used by this Quad. |
Methods inherited from class harpoon.IR.LowQuad.LowQuad |
---|
accept, accept |
Methods inherited from class harpoon.IR.Quads.Quad |
---|
addEdge, addEdges, addHandlers, clone, clone, clone, compareTo, defC, edgeC, edges, getFactory, getID, getLineNumber, getSourceFile, handlers, hashCode, isPred, isSucc, map, map, map, next, next, nextEdge, nextEdge, nextLength, pred, predC, prev, prev, prevEdge, prevEdge, prevLength, remove, removeHandlers, rename, replace, succ, succC, toLongString, transferHandlers, useC |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Temp ptr
Temp
holding the POINTER
value to
dereference and store to.
protected final Temp src
Temp
containing the desired new value of the
field or element.
protected final HClass type
src
. For non-primitive types, this may be
simply Object
; use a typemap and the src
field if you need accurate non-primitive types.
Constructor Detail |
---|
public PSET(LowQuadFactory qf, HCodeElement source, Temp ptr, Temp src, HClass type)
PSET
representing a pointer dereference and
store.
ptr
- the Temp
holding the POINTER
value
to dereference.src
- the Temp
containing the value to put into the
field or element.type
- the type of the object we are storing; possibly a sub-integer
type. Not necessarily precise if non-primitive.Method Detail |
---|
public Temp ptr()
Temp
holding the POINTER
value
to dereference.
public Temp src()
Temp
holding the desired new value for
the dereference field or element.
public HClass type()
public int kind()
Quad
Quad
. The enumerated values are defined in
QuadKind
.
kind
in class Quad
public Temp[] use()
Quad
use
in interface UseDefable
use
in class Quad
public Temp[] def()
Quad
def
in interface UseDefable
def
in class Quad
public Quad rename(QuadFactory qf, TempMap defMap, TempMap useMap)
Quad
Quad
identical to the receiver, but
with all Temp
s renamed according to a mapping.
The new Quad
will have no edges.
The new Quad
will come from the specified
QuadFactory
.
rename
in class Quad
public String toString()
Quad
toString
in class Quad
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |