C-Breeze
C Compiler Infrastructure

[ Project home page]

memoryAccess Class Reference

#include <memoryaccess.h>

Inheritance diagram for memoryAccess:

PerClassHeap< PointersHeap > memoryDef memoryUse List of all members.

Public Types

enum  WeakReason { MultipleLHS, HighMultiplicity, Forced }

Public Member Functions

 memoryAccess (Location *where, memoryBlock *owner)
 The assignment.
Location * where () const
bool is_weak () const
void set_weak (bool is)
Multiplicity multiplicity () const
void set_multiplicity (Multiplicity lin)
bool search_for_def () const
void search_for_def (bool val)
bool is_active () const
void set_active ()
void set_inactive ()
memoryBlock * owner () const

Static Public Member Functions

static void stats ()

Static Public Attributes

static bool Verbose
static unsigned int def_count
static unsigned int use_count
static unsigned int merge_use_count

Private Attributes

Location * _where
 Location of def or use.
int _is_weak:1
 Is it weak?
int _multiplicity:8
 Multiplicity (defs only).
int _search_for_def:1
 Search for reaching def (uses only).
int _active:1
 Active SSA use (uses only).
memoryBlock *const _owner
 The memoryBlock.

Member Enumeration Documentation

enum memoryAccess::WeakReason
 

Enumeration values:
MultipleLHS 
HighMultiplicity 
Forced 

Definition at line 174 of file memoryaccess.h.


Constructor & Destructor Documentation

memoryAccess::memoryAccess (  Location *  where,
memoryBlock *  owner
) 
 

The assignment.

If this memoryUse is the left or right side of an assignment, then this refers to that assignment object.


Member Function Documentation

bool memoryAccess::is_active (   )  const [inline]
 

Definition at line 230 of file memoryaccess.h.

References _active.

bool memoryAccess::is_weak (   )  const [inline]
 

Definition at line 219 of file memoryaccess.h.

References _is_weak.

Multiplicity memoryAccess::multiplicity (   )  const [inline]
 

Definition at line 224 of file memoryaccess.h.

References _multiplicity.

memoryBlock* memoryAccess::owner (   )  const [inline]
 

Definition at line 239 of file memoryaccess.h.

References _owner.

void memoryAccess::search_for_def (  bool  val  )  [inline]
 

Definition at line 228 of file memoryaccess.h.

References _search_for_def.

bool memoryAccess::search_for_def (   )  const [inline]
 

Definition at line 227 of file memoryaccess.h.

References _search_for_def.

void memoryAccess::set_active (   )  [inline]
 

Definition at line 231 of file memoryaccess.h.

References _active.

void memoryAccess::set_inactive (   )  [inline]
 

Definition at line 232 of file memoryaccess.h.

References _active.

void memoryAccess::set_multiplicity (  Multiplicity  lin  )  [inline]
 

Definition at line 225 of file memoryaccess.h.

References _multiplicity.

void memoryAccess::set_weak (  bool  is  )  [inline]
 

Definition at line 220 of file memoryaccess.h.

References _is_weak.

static void memoryAccess::stats (   )  [static]
 

Location* memoryAccess::where (   )  const [inline]
 

Definition at line 217 of file memoryaccess.h.

References _where.


Member Data Documentation

int memoryAccess::_active [private]
 

Active SSA use (uses only).

Definition at line 196 of file memoryaccess.h.

Referenced by is_active(), set_active(), and set_inactive().

int memoryAccess::_is_weak [private]
 

Is it weak?

Definition at line 184 of file memoryaccess.h.

Referenced by is_weak(), and set_weak().

int memoryAccess::_multiplicity [private]
 

Multiplicity (defs only).

Definition at line 188 of file memoryaccess.h.

Referenced by multiplicity(), and set_multiplicity().

memoryBlock* const memoryAccess::_owner [private]
 

The memoryBlock.

Definition at line 200 of file memoryaccess.h.

Referenced by owner().

int memoryAccess::_search_for_def [private]
 

Search for reaching def (uses only).

Definition at line 192 of file memoryaccess.h.

Referenced by search_for_def().

Location* memoryAccess::_where [private]
 

Location of def or use.

Definition at line 180 of file memoryaccess.h.

Referenced by where().

unsigned int memoryAccess::def_count [static]
 

Definition at line 168 of file memoryaccess.h.

unsigned int memoryAccess::merge_use_count [static]
 

Definition at line 170 of file memoryaccess.h.

unsigned int memoryAccess::use_count [static]
 

Definition at line 169 of file memoryaccess.h.

bool memoryAccess::Verbose [static]
 

Definition at line 167 of file memoryaccess.h.


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

Generated on February 1, 2006
Back to the C-Breeze home page