OA::Activity::InterActiveFortran Class Reference

#include <InterActiveFortran.hpp>

Inheritance diagram for OA::Activity::InterActiveFortran:

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

Collaboration graph
[legend]

List of all members.

Classes

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

Public Member Functions

 InterActiveFortran ()
 ~InterActiveFortran ()
OA_ptr< ProcHandleIteratorgetKnownProcIterator ()
bool isActive (SymHandle sym)
 Indicate whether the given symbol is active or not within any procedure.
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.
void setActive (SymHandle sym)
 Set the given symbol as active.
OA_ptr< SymHandleIteratorgetActiveSymIterator ()
 Return an iterator for set of active symbols.
OA_ptr< MemRefHandleIteratorgetActiveMemRefIterator (ProcHandle proc)
OA_ptr< StmtHandleIteratorgetActiveStmtIterator (ProcHandle proc)
void mapProcToActive (ProcHandle p, OA_ptr< Activity::ActiveStandard > active)
 Associate the given procedure with the given Activity info.
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 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 size)
 Set the size 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 InterActiveFortran.hpp.


Constructor & Destructor Documentation

OA::Activity::InterActiveFortran::InterActiveFortran (  ) 

Definition at line 20 of file InterActiveFortran.cpp.

References mNumIterUseful, mNumIterVary, mSizeInBytes, and mUnknownLocActive.

OA::Activity::InterActiveFortran::~InterActiveFortran (  ) 

Definition at line 29 of file InterActiveFortran.cpp.


Member Function Documentation

void OA::Activity::InterActiveFortran::dump ( std::ostream &  os,
OA_ptr< IRHandlesIRInterface ir 
)

incomplete output of info for debugging

Definition at line 295 of file InterActiveFortran.cpp.

References getActiveSizeInBytes(), isActive(), and mActiveSymSet.

Here is the call graph for this function:

OA_ptr< MemRefHandleIterator > OA::Activity::InterActiveFortran::getActiveMemRefIterator ( ProcHandle  proc  ) 

Definition at line 118 of file InterActiveFortran.cpp.

References mProcToActiveMap.

Referenced by output().

int OA::Activity::InterActiveFortran::getActiveSizeInBytes (  ) 

Return the size of active symbols in bytes.

Definition at line 187 of file InterActiveFortran.cpp.

References mSizeInBytes.

Referenced by dump().

OA_ptr< StmtHandleIterator > OA::Activity::InterActiveFortran::getActiveStmtIterator ( ProcHandle  proc  ) 

Definition at line 133 of file InterActiveFortran.cpp.

References mProcToActiveMap.

Referenced by output().

OA_ptr< SymHandleIterator > OA::Activity::InterActiveFortran::getActiveSymIterator (  ) 

Return an iterator for set of active symbols.

Return an iterator for set of active symbols Used to determine size in bytes of active symbols WARNING: not list of all active symbols because if unknown loc is active then all symbols are active but won't all show up in this iterator

Definition at line 100 of file InterActiveFortran.cpp.

References mActiveSymSet.

OA_ptr< ProcHandleIterator > OA::Activity::InterActiveFortran::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 36 of file InterActiveFortran.cpp.

References mProcToActiveMap.

Referenced by output().

int OA::Activity::InterActiveFortran::getNumIterActive (  ) 

Return the number of iterations over nodes in Active.

Definition at line 181 of file InterActiveFortran.cpp.

References mNumIterActive.

int OA::Activity::InterActiveFortran::getNumIterUseful (  ) 

Return the number of iterations over nodes in Useful.

Definition at line 169 of file InterActiveFortran.cpp.

References mNumIterUseful.

int OA::Activity::InterActiveFortran::getNumIterVary (  ) 

Return the number of iterations over nodes in Vary.

Definition at line 175 of file InterActiveFortran.cpp.

References mNumIterVary.

bool OA::Activity::InterActiveFortran::isActive ( ProcHandle  proc,
MemRefHandle  memref 
)

Indicate whether the given memref is active or not within given proc.

Definition at line 80 of file InterActiveFortran.cpp.

References mProcToActiveMap.

bool OA::Activity::InterActiveFortran::isActive ( ProcHandle  proc,
StmtHandle  stmt 
)

Indicate whether the given stmt is active or not within given proc.

Definition at line 69 of file InterActiveFortran.cpp.

References mProcToActiveMap.

bool OA::Activity::InterActiveFortran::isActive ( SymHandle  sym  ) 

Indicate whether the given symbol is active or not within any procedure.

Definition at line 55 of file InterActiveFortran.cpp.

References mActiveSymSet, and mUnknownLocActive.

Referenced by dump().

void OA::Activity::InterActiveFortran::mapProcToActive ( ProcHandle  p,
OA_ptr< Activity::ActiveStandard active 
)

Associate the given procedure with the given Activity info.

Definition at line 148 of file InterActiveFortran.cpp.

References mActiveSymSet, mProcToActiveMap, and mUnknownLocActive.

void OA::Activity::InterActiveFortran::output ( IRHandlesIRInterface ir  )  [virtual]

void OA::Activity::InterActiveFortran::setActive ( SymHandle  sym  ) 

Set the given symbol as active.

Definition at line 92 of file InterActiveFortran.cpp.

References mActiveSymSet.

void OA::Activity::InterActiveFortran::setActiveSizeInBytes ( int  size  ) 

Set the size of active symbols in bytes.

Definition at line 211 of file InterActiveFortran.cpp.

References mSizeInBytes.

void OA::Activity::InterActiveFortran::setNumIterActive ( int  n  ) 

Set the number of iterations over nodes in Active.

Definition at line 205 of file InterActiveFortran.cpp.

References mNumIterActive.

void OA::Activity::InterActiveFortran::setNumIterUseful ( int  n  ) 

Set the number of iterations over nodes in Useful.

Definition at line 193 of file InterActiveFortran.cpp.

References mNumIterUseful.

void OA::Activity::InterActiveFortran::setNumIterVary ( int  n  ) 

Set the number of iterations over nodes in Useful.

Definition at line 199 of file InterActiveFortran.cpp.

References mNumIterVary.


Member Data Documentation

Definition at line 112 of file InterActiveFortran.hpp.

Referenced by getNumIterActive(), and setNumIterActive().

Definition at line 111 of file InterActiveFortran.hpp.

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

Definition at line 106 of file InterActiveFortran.hpp.

Referenced by InterActiveFortran(), isActive(), and mapProcToActive().


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

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