#include <InterActive.hpp>


Classes | |
| class | ActivityProcIter |
| Iterator over procedures in the mProcToActiveMap. More... | |
Public Member Functions | |
| InterActive () | |
| ~InterActive () | |
| OA_ptr< ProcHandleIterator > | getKnownProcIterator () |
| bool | isActive (ProcHandle proc, StmtHandle stmt) |
| Indicate whether the given stmt is active or not within given proc. | |
| bool | isActive (ProcHandle proc, MemRefHandle memref) |
| Indicate whether the given memref is active or not within given proc. | |
| OA_ptr< LocIterator > | getActiveLocsIterator (ProcHandle proc) |
| Return an iterator over set of active locations for given proc. | |
| OA_ptr< StmtHandleIterator > | getActiveStmtIterator (ProcHandle proc) |
| Return an iterator over set of active statements in given proc. | |
| OA_ptr< MemRefHandleIterator > | getActiveMemRefIterator (ProcHandle proc) |
| Return an iterator over set of active memory references in given proc. | |
| int | getNumIterUseful () |
| Return the number of iterations over nodes in Useful. | |
| int | getNumIterVary () |
| Return the number of iterations over nodes in Vary. | |
| int | getNumIterActive () |
| Return the number of iterations over nodes in Active. | |
| int | getActiveSizeInBytes () |
| Return the size of active symbols in bytes. | |
| void | mapProcToActive (ProcHandle p, OA_ptr< Activity::ActiveStandard > active) |
| Associate the given procedure with the given Activity info. | |
| void | setNumIterUseful (int n) |
| Set the number of iterations over nodes in Useful. | |
| void | setNumIterVary (int n) |
| Set the number of iterations over nodes in Useful. | |
| void | setNumIterActive (int n) |
| Set the number of iterations over nodes in Active. | |
| void | setActiveSizeInBytes (int n) |
| Set the number of active symbols in bytes. | |
| void | output (IRHandlesIRInterface &ir) |
| void | dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir) |
| incomplete output of info for debugging | |
Private Attributes | |
| std::map< ProcHandle, OA_ptr < Activity::ActiveStandard > > | mProcToActiveMap |
| std::set< SymHandle > | mActiveSymSet |
| bool | mUnknownLocActive |
| int | mSizeInBytes |
| int | mNumIterUseful |
| int | mNumIterVary |
| int | mNumIterActive |
Definition at line 32 of file InterActive.hpp.
| OA::Activity::InterActive::InterActive | ( | ) |
Definition at line 20 of file InterActive.cpp.
References mNumIterUseful, mNumIterVary, mSizeInBytes, and mUnknownLocActive.
| OA::Activity::InterActive::~InterActive | ( | ) | [inline] |
Definition at line 35 of file InterActive.hpp.
| void OA::Activity::InterActive::dump | ( | std::ostream & | os, | |
| OA_ptr< IRHandlesIRInterface > | ir | |||
| ) |
incomplete output of info for debugging
Definition at line 248 of file InterActive.cpp.
References OA::OA_ptr< T >::dump(), getActiveLocsIterator(), getActiveMemRefIterator(), getActiveSizeInBytes(), getActiveStmtIterator(), and getKnownProcIterator().

| OA_ptr< LocIterator > OA::Activity::InterActive::getActiveLocsIterator | ( | ProcHandle | proc | ) |
Return an iterator over set of active locations for given proc.
Definition at line 72 of file InterActive.cpp.
References mProcToActiveMap.
| OA_ptr< MemRefHandleIterator > OA::Activity::InterActive::getActiveMemRefIterator | ( | ProcHandle | proc | ) |
Return an iterator over set of active memory references in given proc.
Definition at line 100 of file InterActive.cpp.
References mProcToActiveMap.
| int OA::Activity::InterActive::getActiveSizeInBytes | ( | ) |
Return the size of active symbols in bytes.
Definition at line 128 of file InterActive.cpp.
References mSizeInBytes.
Referenced by dump().
| OA_ptr< StmtHandleIterator > OA::Activity::InterActive::getActiveStmtIterator | ( | ProcHandle | proc | ) |
Return an iterator over set of active statements in given proc.
Definition at line 86 of file InterActive.cpp.
References mProcToActiveMap.
| OA_ptr< ProcHandleIterator > OA::Activity::InterActive::getKnownProcIterator | ( | ) |
Return an iterator over all procedures for which activity analysis is available
Return an iterator over all procedures for which activity analysis is available
Definition at line 30 of file InterActive.cpp.
References mProcToActiveMap.
| int OA::Activity::InterActive::getNumIterActive | ( | ) |
Return the number of iterations over nodes in Active.
Definition at line 123 of file InterActive.cpp.
References mNumIterActive.
| int OA::Activity::InterActive::getNumIterUseful | ( | ) |
Return the number of iterations over nodes in Useful.
Definition at line 113 of file InterActive.cpp.
References mNumIterUseful.
| int OA::Activity::InterActive::getNumIterVary | ( | ) |
Return the number of iterations over nodes in Vary.
Definition at line 118 of file InterActive.cpp.
References mNumIterVary.
| bool OA::Activity::InterActive::isActive | ( | ProcHandle | proc, | |
| MemRefHandle | memref | |||
| ) |
Indicate whether the given memref is active or not within given proc.
Definition at line 60 of file InterActive.cpp.
References mProcToActiveMap.
| bool OA::Activity::InterActive::isActive | ( | ProcHandle | proc, | |
| StmtHandle | stmt | |||
| ) |
Indicate whether the given stmt is active or not within given proc.
Definition at line 49 of file InterActive.cpp.
References mProcToActiveMap.
| void OA::Activity::InterActive::mapProcToActive | ( | ProcHandle | p, | |
| OA_ptr< Activity::ActiveStandard > | active | |||
| ) |
Associate the given procedure with the given Activity info.
Definition at line 138 of file InterActive.cpp.
References mProcToActiveMap, and mUnknownLocActive.
| void OA::Activity::InterActive::output | ( | IRHandlesIRInterface & | ir | ) | [virtual] |
Implements OA::Annotation.
Definition at line 174 of file InterActive.cpp.
References getActiveLocsIterator(), getActiveMemRefIterator(), getActiveStmtIterator(), getKnownProcIterator(), OA::indt(), mNumIterActive, mNumIterUseful, mNumIterVary, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

| void OA::Activity::InterActive::setActiveSizeInBytes | ( | int | n | ) |
Set the number of active symbols in bytes.
Definition at line 165 of file InterActive.cpp.
References mSizeInBytes.
| void OA::Activity::InterActive::setNumIterActive | ( | int | n | ) |
Set the number of iterations over nodes in Active.
Definition at line 160 of file InterActive.cpp.
References mNumIterActive.
| void OA::Activity::InterActive::setNumIterUseful | ( | int | n | ) |
Set the number of iterations over nodes in Useful.
Definition at line 150 of file InterActive.cpp.
References mNumIterUseful.
| void OA::Activity::InterActive::setNumIterVary | ( | int | n | ) |
Set the number of iterations over nodes in Useful.
Definition at line 155 of file InterActive.cpp.
References mNumIterVary.
std::set<SymHandle> OA::Activity::InterActive::mActiveSymSet [private] |
Definition at line 105 of file InterActive.hpp.
int OA::Activity::InterActive::mNumIterActive [private] |
Definition at line 112 of file InterActive.hpp.
Referenced by getNumIterActive(), output(), and setNumIterActive().
int OA::Activity::InterActive::mNumIterUseful [private] |
Definition at line 110 of file InterActive.hpp.
Referenced by getNumIterUseful(), InterActive(), output(), and setNumIterUseful().
int OA::Activity::InterActive::mNumIterVary [private] |
Definition at line 111 of file InterActive.hpp.
Referenced by getNumIterVary(), InterActive(), output(), and setNumIterVary().
std::map<ProcHandle,OA_ptr<Activity::ActiveStandard> > OA::Activity::InterActive::mProcToActiveMap [private] |
Definition at line 102 of file InterActive.hpp.
Referenced by getActiveLocsIterator(), getActiveMemRefIterator(), getActiveStmtIterator(), getKnownProcIterator(), isActive(), and mapProcToActive().
int OA::Activity::InterActive::mSizeInBytes [private] |
Definition at line 107 of file InterActive.hpp.
Referenced by getActiveSizeInBytes(), InterActive(), and setActiveSizeInBytes().
bool OA::Activity::InterActive::mUnknownLocActive [private] |
1.5.7.1