#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 18 of file InterActive.cpp.
References getKnownProcIterator(), mNumIterUseful, mNumIterVary, mProcToActiveMap, 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 246 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 70 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 98 of file InterActive.cpp.
References mProcToActiveMap.
| int OA::Activity::InterActive::getActiveSizeInBytes | ( | ) |
Return the size of active symbols in bytes.
Definition at line 126 of file InterActive.cpp.
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 84 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
Definition at line 28 of file InterActive.cpp.
Referenced by dump(), InterActive(), and output().
| int OA::Activity::InterActive::getNumIterActive | ( | ) |
Return the number of iterations over nodes in Active.
Definition at line 121 of file InterActive.cpp.
| int OA::Activity::InterActive::getNumIterUseful | ( | ) |
Return the number of iterations over nodes in Useful.
Definition at line 111 of file InterActive.cpp.
| int OA::Activity::InterActive::getNumIterVary | ( | ) |
Return the number of iterations over nodes in Vary.
Definition at line 116 of file InterActive.cpp.
| bool OA::Activity::InterActive::isActive | ( | ProcHandle | proc, | |
| StmtHandle | stmt | |||
| ) |
Indicate whether the given stmt is active or not within given proc.
Definition at line 47 of file InterActive.cpp.
References mProcToActiveMap.
| bool OA::Activity::InterActive::isActive | ( | ProcHandle | proc, | |
| MemRefHandle | memref | |||
| ) |
Indicate whether the given memref is active or not within given proc.
Definition at line 58 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 136 of file InterActive.cpp.
References mProcToActiveMap, and mUnknownLocActive.
| void OA::Activity::InterActive::output | ( | IRHandlesIRInterface & | ir | ) | [virtual] |
Implements OA::Annotation.
Definition at line 172 of file InterActive.cpp.
References getActiveLocsIterator(), getActiveMemRefIterator(), getActiveStmtIterator(), getKnownProcIterator(), 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 163 of file InterActive.cpp.
| void OA::Activity::InterActive::setNumIterActive | ( | int | n | ) |
Set the number of iterations over nodes in Active.
Definition at line 158 of file InterActive.cpp.
| void OA::Activity::InterActive::setNumIterUseful | ( | int | n | ) |
Set the number of iterations over nodes in Useful.
Definition at line 148 of file InterActive.cpp.
| void OA::Activity::InterActive::setNumIterVary | ( | int | n | ) |
Set the number of iterations over nodes in Useful.
Definition at line 153 of file InterActive.cpp.
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 output().
int OA::Activity::InterActive::mNumIterUseful [private] |
Definition at line 110 of file InterActive.hpp.
Referenced by InterActive(), and output().
int OA::Activity::InterActive::mNumIterVary [private] |
Definition at line 111 of file InterActive.hpp.
Referenced by InterActive(), and output().
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(), InterActive(), isActive(), and mapProcToActive().
int OA::Activity::InterActive::mSizeInBytes [private] |
Definition at line 107 of file InterActive.hpp.
Referenced by InterActive().
bool OA::Activity::InterActive::mUnknownLocActive [private] |
Definition at line 106 of file InterActive.hpp.
Referenced by InterActive(), and mapProcToActive().
1.7.1