ExpCastInserter Class Reference

#include <include/visitor.h>

Inheritance diagram for ExpCastInserter:

ExpModifier List of all members.

Detailed Description

Definition at line 653 of file visitor.h.

Public Member Functions

 ExpCastInserter (UserProc *proc)
virtual ExppostVisit (Const *e)
virtual ExppostVisit (Binary *e)
virtual ExppostVisit (RefExp *e)
virtual ExppreVisit (TypedExp *e, bool &recur)

Static Public Member Functions

static void checkMemofType (Exp *memof, Type *memofType)

Private Attributes

UserProcproc


Constructor & Destructor Documentation

ExpCastInserter::ExpCastInserter UserProc proc  )  [inline]
 

Definition at line 656 of file visitor.h.


Member Function Documentation

void ExpCastInserter::checkMemofType Exp memof,
Type memofType
[static]
 

Definition at line 906 of file visitor.cpp.

References addr(), and Type::isCompatibleWith().

Referenced by StmtCastInserter::common(), and postVisit().

Exp * ExpCastInserter::postVisit Const e  )  [virtual]
 

Reimplemented from ExpModifier.

Definition at line 980 of file visitor.cpp.

References Type::asInteger(), Const::getInt(), IntegerType::getSize(), Const::getType(), Exp::isIntConst(), Type::isInteger(), and IntegerType::isSigned().

Exp * ExpCastInserter::postVisit Binary e  )  [virtual]
 

Reimplemented from ExpModifier.

Definition at line 951 of file visitor.cpp.

References checkSignedness(), Exp::getOper(), Unary::getSubExp1(), Binary::getSubExp2(), opGtr, opGtrEq, opGtrEqUns, opGtrUns, opLess, opLessEq, opLessEqUns, opLessUns, opShiftR, opShiftRA, Unary::setSubExp1(), and Binary::setSubExp2().

Exp * ExpCastInserter::postVisit RefExp e  )  [virtual]
 

Reimplemented from ExpModifier.

Definition at line 918 of file visitor.cpp.

References checkMemofType(), RefExp::getDef(), Unary::getSubExp1(), Statement::getTypeFor(), and Exp::isMemOf().

virtual Exp* ExpCastInserter::preVisit TypedExp e,
bool &  recur
[inline, virtual]
 

Reimplemented from ExpModifier.

Definition at line 661 of file visitor.h.


Member Data Documentation

UserProc* ExpCastInserter::proc [private]
 

Definition at line 654 of file visitor.h.


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:42 2006 for Boomerang by  doxygen 1.4.6