C-Breeze
C Compiler Infrastructure

[ Project home page]
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

orderedDefs Class Reference

#include <memoryaccess.h>

List of all members.

Public Member Functions

 orderedDefs ()
const memorydef_listdef_list () const
memoryDeffind_def (Location *where)
memoryDeffind_strictly_dominating_def (Location *where)
memoryDeffind_dominating_def (Location *where)
memoryDefmake_def_at (Location *where, memoryBlock *owner, bool &is_new)
void prune (orderedUses &Uses)
void print (ostream &o) const
void clear ()
void stats (int &total_defs, int &merge_defs, int &weak_defs)

Private Attributes

memorydef_list _defs
memorydef_location_map _quick_lookup


Constructor & Destructor Documentation

orderedDefs::orderedDefs   [inline]
 

Definition at line 367 of file memoryaccess.h.


Member Function Documentation

void orderedDefs::clear  
 

Definition at line 396 of file memoryaccess.cc.

References _defs, and memorydef_list_cp.

Referenced by memoryBlock::clear().

const memorydef_list& orderedDefs::def_list   const [inline]
 

Definition at line 374 of file memoryaccess.h.

References memorydef_list.

Referenced by memoryBlock::clear().

memoryDef * orderedDefs::find_def Location   where
 

Definition at line 132 of file memoryaccess.cc.

References _quick_lookup, and memorydef_location_map_cp.

Referenced by memoryBlock::find_def_at(), and memoryBlock::set_current_def_use().

memoryDef * orderedDefs::find_dominating_def Location   where
 

Definition at line 198 of file memoryaccess.cc.

References _defs, memorydef_key::def, memorydef_key::location, memorydef_list_cp, Location::subtree_id(), Location::tree_max(), and Location::tree_min().

Referenced by memoryBlock::last_def_at().

memoryDef * orderedDefs::find_strictly_dominating_def Location   where
 

Definition at line 144 of file memoryaccess.cc.

References _defs, memorydef_key::def, memorydef_key::location, memorydef_list_cp, Location::subtree_id(), Location::tree_max(), and Location::tree_min().

Referenced by memoryBlock::nearest_def_at().

memoryDef * orderedDefs::make_def_at Location   where,
memoryBlock   owner,
bool &    is_new
 

This should never happen if (current == where) { dominator = key.def; break; }

Definition at line 260 of file memoryaccess.cc.

References _defs, _quick_lookup, memorydef_key::def, memorydef_key::location, memorydef_list_p, memorydef_location_map_p, Location::subtree_id(), Location::tree_max(), and Location::tree_min().

Referenced by memoryBlock::def_at(), memoryBlock::last_def_at(), and memoryBlock::nearest_def_at().

void orderedDefs::print ostream &    o const
 

Definition at line 386 of file memoryaccess.cc.

References _defs, and memorydef_list_cp.

Referenced by memoryBlock::print_def_use().

void orderedDefs::prune orderedUses   Uses
 

Definition at line 358 of file memoryaccess.cc.

References _defs, and memorydef_list_p.

Referenced by memoryBlock::prune_defs_uses().

void orderedDefs::stats int &    total_defs,
int &    merge_defs,
int &    weak_defs
 

Definition at line 408 of file memoryaccess.cc.

References _defs, Location::BasicBlock, def, and memorydef_list_p.

Referenced by memoryBlock::stats().


Member Data Documentation

memorydef_list orderedDefs::_defs [private]
 

Definition at line 361 of file memoryaccess.h.

Referenced by clear(), find_dominating_def(), find_strictly_dominating_def(), make_def_at(), print(), prune(), and stats().

memorydef_location_map orderedDefs::_quick_lookup [private]
 

Definition at line 363 of file memoryaccess.h.

Referenced by find_def(), and make_def_at().


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

Generated on August 27, 2003
Back to the C-Breeze home page