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 20 of file InterActive.cpp.

References mNumIterUseful, mNumIterVary, mSizeInBytes, and mUnknownLocActive.

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 248 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 72 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 100 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 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.

Referenced by dump(), and output().

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.

Referenced by dump(), and output().

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]

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.


Member Data Documentation

Definition at line 105 of file InterActive.hpp.

Definition at line 112 of file InterActive.hpp.

Referenced by getNumIterActive(), output(), and setNumIterActive().

Definition at line 110 of file InterActive.hpp.

Referenced by getNumIterUseful(), InterActive(), output(), and setNumIterUseful().

Definition at line 111 of file InterActive.hpp.

Referenced by getNumIterVary(), InterActive(), output(), and setNumIterVary().

Definition at line 107 of file InterActive.hpp.

Referenced by getActiveSizeInBytes(), InterActive(), and setActiveSizeInBytes().

Definition at line 106 of file InterActive.hpp.

Referenced by InterActive(), and mapProcToActive().


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

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