ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
constantProp Class Reference

#include <constantprop.h>

Collaboration diagram for constantProp:

Public Member Functions

 constantProp (Pointers *pointers)
 
void analyze ()
 
void eval (stmtLocation *current, exprNode *expr, constant &val)
 

Private Member Functions

bool merge_constants (memorydef_set &defs, memoryuse_set &uses)
 
void rebuild_constant (memoryuse_set &uses, ipConstant &value)
 
void rebuild_constant (stmtLocation *where, pointerValue &pointer, ipConstant &value)
 

Private Attributes

Pointers * _pointers
 
constant_map _constants
 
bool _debug
 

Detailed Description

Definition at line 69 of file constantprop.h.

Constructor & Destructor Documentation

constantProp::constantProp ( Pointers *  pointers)

Member Function Documentation

void constantProp::analyze ( )
void constantProp::eval ( stmtLocation *  current,
exprNode *  expr,
constant &  val 
)
bool constantProp::merge_constants ( memorydef_set &  defs,
memoryuse_set &  uses 
)
private
void constantProp::rebuild_constant ( memoryuse_set &  uses,
ipConstant value 
)
private
void constantProp::rebuild_constant ( stmtLocation *  where,
pointerValue &  pointer,
ipConstant value 
)
private

Member Data Documentation

Pointers* constantProp::_pointers
private

Definition at line 73 of file constantprop.h.

constant_map constantProp::_constants
private

Definition at line 74 of file constantprop.h.

bool constantProp::_debug
private

Definition at line 75 of file constantprop.h.


The documentation for this class was generated from the following file: