harpoon.IR.Tree
Interface PreciselyTyped

All Superinterfaces:
Typed
All Known Implementing Classes:
CONST, ESEQ, MEM

public interface PreciselyTyped
extends Typed

The PreciselyTyped interface allows access to type information for expressions which have a type which cannot be expressed by the standard types in the Typed interface. Only CONST, MEM, and ESEQ implement PreciselyTyped. All other Tree.Exps deal with register-native types.

Version:
$Id: PreciselyTyped.java,v 1.2 2002/02/25 21:05:40 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>, Duncan Bryce <duncan@lcs.mit.edu>

Field Summary
 
Fields inherited from interface harpoon.IR.Tree.Typed
DOUBLE, FLOAT, INT, LONG, POINTER
 
Method Summary
 int bitwidth()
          Returns the size of the expression, in bits.
 boolean isSmall()
          Returns true if this expression is a small type, false otherwise.
 boolean signed()
          Returns true if this is a signed expression, false otherwise.
 
Methods inherited from interface harpoon.IR.Tree.Typed
isDoubleWord, isFloatingPoint, type
 

Method Detail

isSmall

boolean isSmall()
Returns true if this expression is a small type, false otherwise.


bitwidth

int bitwidth()
Returns the size of the expression, in bits. Only valid if the isSmall()==true.


signed

boolean signed()
Returns true if this is a signed expression, false otherwise. Only valid if the isSmall()==true.