All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.IR.QuadSSA.CJMP
java.lang.Object
|
+----harpoon.IR.QuadSSA.Quad
|
+----harpoon.IR.QuadSSA.SIGMA
|
+----harpoon.IR.QuadSSA.CJMP
- public class CJMP
- extends SIGMA
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.
- Version:
- $Id: CJMP.java,v 1.18 1998/10/11 02:37:56 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
-
test
-
-
CJMP(HCodeElement, Temp, Temp[])
-
-
CJMP(HCodeElement, Temp, Temp[][], Temp[])
- Creates a
CJMP
.
-
invert()
- Swaps if-true and if-false targets.
-
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 human-readable representation.
-
use()
- Returns all the Temps used by this Quad.
-
visit(QuadVisitor)
- Accept a visitor.
test
public Temp test
CJMP
public CJMP(HCodeElement source,
Temp test,
Temp dst[][],
Temp src[])
- Creates a
CJMP
.
CJMP
public CJMP(HCodeElement source,
Temp test,
Temp src[])
invert
public void invert()
- Swaps if-true and if-false targets.
use
public Temp[] use()
- Returns all the Temps used by this Quad.
- Returns:
- the
test
field.
- Overrides:
- use in class SIGMA
renameUses
public void renameUses(TempMap tm)
- Rename all used variables in this Quad according to a mapping.
- Overrides:
- renameUses in class SIGMA
renameDefs
public void renameDefs(TempMap tm)
- Rename all defined variables in this Quad according to a mapping.
- Overrides:
- renameDefs in class SIGMA
visit
public void visit(QuadVisitor v)
- Accept a visitor.
- Overrides:
- visit in class SIGMA
toString
public String toString()
- Returns human-readable representation.
- Overrides:
- toString in class SIGMA
All Packages Class Hierarchy This Package Previous Next Index