#include <ActiveStandard.hpp>
Public Member Functions | |
| ActiveStandard (ProcHandle p) | |
| ~ActiveStandard () | |
| OA_ptr< SymHandleIterator > | getActiveSymIterator () |
| 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< StmtHandleIterator > | getActiveStmtIterator () |
| Return an iterator for set of active stmts. | |
| OA_ptr< MemRefHandleIterator > | getActiveMemRefIterator () |
| Return an iterator for set of active memory references. | |
| OA_ptr< LocIterator > | getActiveLocsIterator () |
| 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::LocDFSet > | mActiveLocSet |
| OA_ptr< std::set< SymHandle > > | mActiveSymSet |
| bool | mUnknownLocActive |
| OA_ptr< std::set< StmtHandle > > | mActiveStmtSet |
| OA_ptr< std::set< MemRefHandle > > | mActiveMemRefSet |
Definition at line 31 of file ActiveStandard.hpp.
| OA::Activity::ActiveStandard::ActiveStandard | ( | ProcHandle | p | ) |
Definition at line 20 of file ActiveStandard.cpp.
References mActiveLocSet, mActiveMemRefSet, mActiveStmtSet, mActiveSymSet, and mUnknownLocActive.
| OA::Activity::ActiveStandard::~ActiveStandard | ( | ) | [inline] |
Definition at line 34 of file ActiveStandard.hpp.
| 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.

| 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.
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 | ) |
| 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.
Definition at line 91 of file ActiveStandard.hpp.
Referenced by ActiveStandard(), dump(), getActiveLocsIterator(), and insertLoc().
OA_ptr<std::set<MemRefHandle> > OA::Activity::ActiveStandard::mActiveMemRefSet [private] |
Definition at line 96 of file ActiveStandard.hpp.
Referenced by ActiveStandard(), getActiveMemRefIterator(), insertMemRef(), and isActive().
OA_ptr<std::set<StmtHandle> > OA::Activity::ActiveStandard::mActiveStmtSet [private] |
Definition at line 95 of file ActiveStandard.hpp.
Referenced by ActiveStandard(), getActiveStmtIterator(), insertStmt(), and isActive().
OA_ptr<std::set<SymHandle> > OA::Activity::ActiveStandard::mActiveSymSet [private] |
Definition at line 92 of file ActiveStandard.hpp.
Referenced by ActiveStandard(), dump(), getActiveSymIterator(), and isActive().
bool OA::Activity::ActiveStandard::mUnknownLocActive [private] |
Definition at line 93 of file ActiveStandard.hpp.
Referenced by ActiveStandard(), dump(), getUnknownLocActive(), and isActive().
1.5.7.1