Classes | Public Member Functions | Private Attributes

OA::Activity::InterActive Class Reference

#include <InterActive.hpp>

Inheritance diagram for OA::Activity::InterActive:
Inheritance graph
[legend]
Collaboration diagram for OA::Activity::InterActive:
Collaboration graph
[legend]

List of all members.

Classes

class  ActivityProcIter
 Iterator over procedures in the mProcToActiveMap. More...

Public Member Functions

 InterActive ()
 ~InterActive ()
OA_ptr< ProcHandleIteratorgetKnownProcIterator ()
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< LocIteratorgetActiveLocsIterator (ProcHandle proc)
 Return an iterator over set of active locations for given proc.
OA_ptr< StmtHandleIteratorgetActiveStmtIterator (ProcHandle proc)
 Return an iterator over set of active statements in given proc.
OA_ptr< MemRefHandleIteratorgetActiveMemRefIterator (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< SymHandlemActiveSymSet
bool mUnknownLocActive
int mSizeInBytes
int mNumIterUseful
int mNumIterVary
int mNumIterActive

Detailed Description

Definition at line 32 of file InterActive.hpp.


Constructor & Destructor Documentation

OA::Activity::InterActive::InterActive (  ) 

Definition at line 18 of file InterActive.cpp.

References getKnownProcIterator(), mNumIterUseful, mNumIterVary, mProcToActiveMap, mSizeInBytes, and mUnknownLocActive.

Here is the call graph for this function:

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

Definition at line 35 of file InterActive.hpp.


Member Function Documentation

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().

Here is the call graph for this function:

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.

Referenced by dump(), and output().

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.

Referenced by dump(), and output().

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.

Referenced by dump(), and output().

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]
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.


Member Data Documentation

Definition at line 105 of file InterActive.hpp.

Definition at line 112 of file InterActive.hpp.

Referenced by output().

Definition at line 110 of file InterActive.hpp.

Referenced by InterActive(), and output().

Definition at line 111 of file InterActive.hpp.

Referenced by InterActive(), and output().

Definition at line 107 of file InterActive.hpp.

Referenced by InterActive().

Definition at line 106 of file InterActive.hpp.

Referenced by InterActive(), and mapProcToActive().


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