|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.IR.Quads.Quad
harpoon.IR.Quads.SIGMA
harpoon.IR.Quads.CJMP
public class CJMP
CJMP represents conditional branches.
next[0] is if-false, which is taken if
the operand is equal to zero.
next[1] is if-true branch, taken when
the operand is not equal to zero.
| Field Summary | |
|---|---|
protected Temp |
test
|
| Fields inherited from class harpoon.IR.Quads.SIGMA |
|---|
dst, src |
| Fields inherited from class harpoon.IR.Quads.Quad |
|---|
arrayFactory |
| Constructor Summary | |
|---|---|
CJMP(QuadFactory qf,
HCodeElement source,
Temp test,
Temp[] src)
Creates a CJMP representing a conditional branch. |
|
CJMP(QuadFactory qf,
HCodeElement source,
Temp test,
Temp[][] dst,
Temp[] src)
Creates a CJMP representing a conditional branch. |
|
| Method Summary | ||
|---|---|---|
|
accept(QuadValueVisitor<T> v)
|
|
void |
accept(QuadVisitor v)
Accept a visitor. |
|
int |
kind()
Return an integer enumeration of the kind of this Quad. |
|
Quad |
rename(QuadFactory qqf,
TempMap defMap,
TempMap useMap)
Create a new Quad identical to the receiver, but
with all Temps renamed according to a mapping. |
|
Temp |
test()
Returns the Temp tested by this CJMP. |
|
String |
toString()
Returns human-readable representation. |
|
Temp[] |
use()
Returns all the Temps used by this Quad. |
|
| Methods inherited from class harpoon.IR.Quads.SIGMA |
|---|
arity, assign, def, dst, dst, dst, numSigmas, removeSigma, src, src |
| 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 Temp test
| Constructor Detail |
|---|
public CJMP(QuadFactory qf,
HCodeElement source,
Temp test,
Temp[][] dst,
Temp[] src)
CJMP representing a conditional branch.
test - the Temp tested by this branch.src - the source Temps for the underlying
SIGMA.dst - the destination Temps for the underlying
SIGMA.
public CJMP(QuadFactory qf,
HCodeElement source,
Temp test,
Temp[] src)
CJMP representing a conditional branch.
Abbreviated form of the constructor uses an appropriately-sized
array of null values for the dst field.
| Method Detail |
|---|
public Temp test()
Temp tested by this CJMP.
public Temp[] use()
Temps used by this Quad.
use in interface UseDefableuse in class SIGMAtest field.public int kind()
QuadQuad. The enumerated values are defined in
QuadKind.
kind in class Quad
public Quad rename(QuadFactory qqf,
TempMap defMap,
TempMap useMap)
QuadQuad identical to the receiver, but
with all Temps renamed according to a mapping.
The new Quad will have no edges.
The new Quad will come from the specified
QuadFactory.
rename in class Quadpublic void accept(QuadVisitor v)
Quad
accept in class SIGMApublic <T> T accept(QuadValueVisitor<T> v)
accept in class SIGMApublic String toString()
toString in class SIGMA
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||