Tree
Class CJUMP

java.lang.Object
  extended by Tree.Stm
      extended by Tree.CJUMP
All Implemented Interfaces:
Hospitable

public class CJUMP
extends Stm

Implements a conditional jump.


Field Summary
static int EQ
           
static int GE
           
static int GT
           
 Temp.Label iffalse
           
 Temp.Label iftrue
           
static int LE
           
 Exp left
           
static int LT
           
static int NE
           
 int relop
           
 Exp right
           
static int UGE
           
static int UGT
           
static int ULE
           
static int ULT
           
 
Constructor Summary
CJUMP(int rel, Exp l, Exp r, Temp.Label t, Temp.Label f)
           
 
Method Summary
 void accept(IntVisitor v, int d)
           
static int notRel(int relop)
           
static int swapRel(int relop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relop

public int relop

left

public Exp left

right

public Exp right

iftrue

public Temp.Label iftrue

iffalse

public Temp.Label iffalse

EQ

public static final int EQ
See Also:
Constant Field Values

NE

public static final int NE
See Also:
Constant Field Values

LT

public static final int LT
See Also:
Constant Field Values

GT

public static final int GT
See Also:
Constant Field Values

LE

public static final int LE
See Also:
Constant Field Values

GE

public static final int GE
See Also:
Constant Field Values

ULT

public static final int ULT
See Also:
Constant Field Values

ULE

public static final int ULE
See Also:
Constant Field Values

UGT

public static final int UGT
See Also:
Constant Field Values

UGE

public static final int UGE
See Also:
Constant Field Values
Constructor Detail

CJUMP

public CJUMP(int rel,
             Exp l,
             Exp r,
             Temp.Label t,
             Temp.Label f)
Method Detail

notRel

public static int notRel(int relop)

swapRel

public static int swapRel(int relop)

accept

public void accept(IntVisitor v,
                   int d)
Specified by:
accept in interface Hospitable
Specified by:
accept in class Stm