OA::Activity::ActiveStandard Class Reference

#include <ActiveStandard.hpp>

List of all members.

Public Member Functions

 ActiveStandard (ProcHandle p)
 ~ActiveStandard ()
OA_ptr< SymHandleIteratorgetActiveSymIterator ()
 Return an iterator for set of active symbols.
bool isActive (SymHandle sym)
 Indicate whether the given symbol is active or not.
bool isActive (StmtHandle stmt)
 Indicate whether the given stmt is active or not.
bool isActive (MemRefHandle memref)
 Indicate whether the given memref is active or not.
OA_ptr< StmtHandleIteratorgetActiveStmtIterator ()
 Return an iterator for set of active stmts.
OA_ptr< MemRefHandleIteratorgetActiveMemRefIterator ()
 Return an iterator for set of active memory references.
OA_ptr< LocIteratorgetActiveLocsIterator ()
 Get an iterator over active locations.
void insertLoc (OA_ptr< Location > loc)
 insert an active location
void insertStmt (StmtHandle stmt)
 insert an active Stmt
void insertMemRef (MemRefHandle memref)
 insert an active MemRef
bool getUnknownLocActive ()
 For construction of InterActive.
void dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)
 incomplete output of info for debugging

Private Attributes

OA_ptr< DataFlow::LocDFSetmActiveLocSet
OA_ptr< std::set< SymHandle > > mActiveSymSet
bool mUnknownLocActive
OA_ptr< std::set< StmtHandle > > mActiveStmtSet
OA_ptr< std::set< MemRefHandle > > mActiveMemRefSet


Detailed Description

Definition at line 31 of file ActiveStandard.hpp.


Constructor & Destructor Documentation

OA::Activity::ActiveStandard::ActiveStandard ( ProcHandle  p  ) 

OA::Activity::ActiveStandard::~ActiveStandard (  )  [inline]

Definition at line 34 of file ActiveStandard.hpp.


Member Function Documentation

void OA::Activity::ActiveStandard::dump ( std::ostream &  os,
OA_ptr< IRHandlesIRInterface ir 
)

incomplete output of info for debugging

incomplete output of info for debugging, just lists the contents of the three active sets

Definition at line 129 of file ActiveStandard.cpp.

References getActiveMemRefIterator(), getActiveStmtIterator(), mActiveLocSet, mActiveSymSet, and mUnknownLocActive.

Here is the call graph for this function:

OA_ptr< LocIterator > OA::Activity::ActiveStandard::getActiveLocsIterator (  ) 

Get an iterator over active locations.

Return an iterator for set of active locations.

Definition at line 29 of file ActiveStandard.cpp.

References mActiveLocSet.

OA_ptr< MemRefHandleIterator > OA::Activity::ActiveStandard::getActiveMemRefIterator (  ) 

Return an iterator for set of active memory references.

Definition at line 44 of file ActiveStandard.cpp.

References mActiveMemRefSet.

Referenced by dump().

OA_ptr< StmtHandleIterator > OA::Activity::ActiveStandard::getActiveStmtIterator (  ) 

Return an iterator for set of active stmts.

Definition at line 36 of file ActiveStandard.cpp.

References mActiveStmtSet.

Referenced by dump().

OA_ptr< SymHandleIterator > OA::Activity::ActiveStandard::getActiveSymIterator (  ) 

Return an iterator for set of active symbols.

Return an iterator for set of active symbols FIXME: not really possible unless we know all visible symbols because could have the Unknown location be active and under that circumstance all symbols are active

Definition at line 53 of file ActiveStandard.cpp.

References mActiveSymSet.

bool OA::Activity::ActiveStandard::getUnknownLocActive (  )  [inline]

For construction of InterActive.

Definition at line 79 of file ActiveStandard.hpp.

References mUnknownLocActive.

void OA::Activity::ActiveStandard::insertLoc ( OA_ptr< Location loc  ) 

insert an active location

Definition at line 100 of file ActiveStandard.cpp.

References mActiveLocSet.

void OA::Activity::ActiveStandard::insertMemRef ( MemRefHandle  memref  ) 

insert an active MemRef

Definition at line 119 of file ActiveStandard.cpp.

References mActiveMemRefSet.

void OA::Activity::ActiveStandard::insertStmt ( StmtHandle  stmt  ) 

insert an active Stmt

Definition at line 115 of file ActiveStandard.cpp.

References mActiveStmtSet.

bool OA::Activity::ActiveStandard::isActive ( MemRefHandle  memref  ) 

Indicate whether the given memref is active or not.

Definition at line 86 of file ActiveStandard.cpp.

References mActiveMemRefSet.

bool OA::Activity::ActiveStandard::isActive ( StmtHandle  stmt  ) 

Indicate whether the given stmt is active or not.

Definition at line 76 of file ActiveStandard.cpp.

References mActiveStmtSet.

bool OA::Activity::ActiveStandard::isActive ( SymHandle  sym  ) 

Indicate whether the given symbol is active or not.

Indicate whether the given sym is active or not.

FIXME: will eventually need a routine to indicate what statements dynamically allocate memory that is active

Definition at line 63 of file ActiveStandard.cpp.

References mActiveSymSet, and mUnknownLocActive.


Member Data Documentation

Definition at line 91 of file ActiveStandard.hpp.

Referenced by ActiveStandard(), dump(), getActiveLocsIterator(), and insertLoc().

Definition at line 96 of file ActiveStandard.hpp.

Referenced by ActiveStandard(), getActiveMemRefIterator(), insertMemRef(), and isActive().

Definition at line 95 of file ActiveStandard.hpp.

Referenced by ActiveStandard(), getActiveStmtIterator(), insertStmt(), and isActive().

Definition at line 92 of file ActiveStandard.hpp.

Referenced by ActiveStandard(), dump(), getActiveSymIterator(), and isActive().

Definition at line 93 of file ActiveStandard.hpp.

Referenced by ActiveStandard(), dump(), getUnknownLocActive(), and isActive().


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

Generated on Fri Jul 24 05:36:32 2009 for OpenADFortTk (extended to Open64) by  doxygen 1.5.7.1