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>

Variable Index

 o test

Constructor Index

 o CJMP(HCodeElement, Temp, Temp[])
 o CJMP(HCodeElement, Temp, Temp[][], Temp[])
Creates a CJMP.

Method Index

 o invert()
Swaps if-true and if-false targets.
 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 human-readable representation.
 o use()
Returns all the Temps used by this Quad.
 o visit(QuadVisitor)
Accept a visitor.

Variables

 o test
 public Temp test

Constructors

 o CJMP
 public CJMP(HCodeElement source,
             Temp test,
             Temp dst[][],
             Temp src[])
Creates a CJMP.

 o CJMP
 public CJMP(HCodeElement source,
             Temp test,
             Temp src[])

Methods

 o invert
 public void invert()
Swaps if-true and if-false targets.

 o use
 public Temp[] use()
Returns all the Temps used by this Quad.

Returns:
the test field.
Overrides:
use in class SIGMA
 o renameUses
 public void renameUses(TempMap tm)
Rename all used variables in this Quad according to a mapping.

Overrides:
renameUses in class SIGMA
 o renameDefs
 public void renameDefs(TempMap tm)
Rename all defined variables in this Quad according to a mapping.

Overrides:
renameDefs in class SIGMA
 o visit
 public void visit(QuadVisitor v)
Accept a visitor.

Overrides:
visit in class SIGMA
 o toString
 public String toString()
Returns human-readable representation.

Overrides:
toString in class SIGMA

All Packages  Class Hierarchy  This Package  Previous  Next  Index