harpoon.IR.Tree
Interface Typed

All Known Subinterfaces:
PreciselyTyped
All Known Implementing Classes:
BINOP, CONST, ESEQ, Exp, MEM, MOVE, NAME, OPER, RETURN, TEMP, THROW, UNOP

public interface Typed

The Typed interface allows access to type information for Exps (including TEMP, MEM, CONST, OPER, and UNOP) and the Stms THROW, RETURN, and MOVE.

Version:
$Id: Typed.java,v 1.2 2002/02/25 21:05:42 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
static int DOUBLE
           
static int FLOAT
           
static int INT
           
static int LONG
           
static int POINTER
           
 
Method Summary
 boolean isDoubleWord()
          Returns true if the expression corresponds to a 64-bit value.
 boolean isFloatingPoint()
          Returns true if the expression corresponds to a floating-point value.
 int type()
          Returns enumerated constant (INT, LONG, FLOAT, DOUBLE, or POINTER) corresponding to the type of the expression.
 

Field Detail

INT

static final int INT
See Also:
Constant Field Values

LONG

static final int LONG
See Also:
Constant Field Values

FLOAT

static final int FLOAT
See Also:
Constant Field Values

DOUBLE

static final int DOUBLE
See Also:
Constant Field Values

POINTER

static final int POINTER
See Also:
Constant Field Values
Method Detail

type

int type()
Returns enumerated constant (INT, LONG, FLOAT, DOUBLE, or POINTER) corresponding to the type of the expression.


isDoubleWord

boolean isDoubleWord()
Returns true if the expression corresponds to a 64-bit value.


isFloatingPoint

boolean isFloatingPoint()
Returns true if the expression corresponds to a floating-point value.