Public Member Functions | Private Attributes

OA::Activity::UsefulStandard Class Reference

#include <UsefulStandard.hpp>

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

List of all members.

Public Member Functions

 UsefulStandard (ProcHandle p)
 ~UsefulStandard ()
OA_ptr< LocIteratorgetDepSetIterator ()
OA_ptr< LocIteratorgetInUsefulIterator (StmtHandle s)
OA_ptr< LocIteratorgetOutUsefulIterator (StmtHandle s)
int getNumIter ()
 access the number of iterations over all nodes for Useful
void insertDepLoc (OA_ptr< Location > loc)
 insert an dependent location
void copyIntoInUseful (StmtHandle s, OA_ptr< DataFlow::LocDFSet > dfset)
 copy into the InUseful set for a statement
void copyIntoOutUseful (StmtHandle s, OA_ptr< DataFlow::LocDFSet > dfset)
 copy into the OutUseful set for a call
void copyIntoCallOutUseful (CallHandle c, OA_ptr< DataFlow::LocDFSet > dfset)
 copy into the CallOutUseful set for a call
void setNumIter (int n)
 set the final Useful or InUseful for the entry node of proc
void dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)
 attach UsefulStandard to procedure
void output (IRHandlesIRInterface &ir)

Private Attributes

std::map< StmtHandle, OA_ptr
< DataFlow::LocDFSet > > 
mInUseful
std::map< StmtHandle, OA_ptr
< DataFlow::LocDFSet > > 
mOutUseful
std::map< CallHandle, OA_ptr
< DataFlow::LocDFSet > > 
mCallOutUseful
OA_ptr< DataFlow::LocDFSetmDepLocSet
int mNumIter

Detailed Description

Definition at line 35 of file UsefulStandard.hpp.


Constructor & Destructor Documentation

OA::Activity::UsefulStandard::UsefulStandard ( ProcHandle  p  ) 

Definition at line 21 of file UsefulStandard.cpp.

References mDepLocSet, and mNumIter.

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

Definition at line 38 of file UsefulStandard.hpp.


Member Function Documentation

void OA::Activity::UsefulStandard::copyIntoCallOutUseful ( CallHandle  c,
OA_ptr< DataFlow::LocDFSet dfset 
) [inline]

copy into the CallOutUseful set for a call

Definition at line 82 of file UsefulStandard.hpp.

References OA::OA_ptr< T >::convert(), and mCallOutUseful.

Here is the call graph for this function:

void OA::Activity::UsefulStandard::copyIntoInUseful ( StmtHandle  s,
OA_ptr< DataFlow::LocDFSet dfset 
) [inline]

copy into the InUseful set for a statement

Definition at line 66 of file UsefulStandard.hpp.

References OA::OA_ptr< T >::convert(), and mInUseful.

Here is the call graph for this function:

void OA::Activity::UsefulStandard::copyIntoOutUseful ( StmtHandle  s,
OA_ptr< DataFlow::LocDFSet dfset 
) [inline]

copy into the OutUseful set for a call

Definition at line 74 of file UsefulStandard.hpp.

References OA::OA_ptr< T >::convert(), and mOutUseful.

Here is the call graph for this function:

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

attach UsefulStandard to procedure

incomplete output of info for debugging

incomplete output of info for debugging, just lists stmts and associated set of InUseful locations

Definition at line 70 of file UsefulStandard.cpp.

References OA::OA_ptr< T >::dump(), OA::IRHandle::hval(), mDepLocSet, and mInUseful.

Here is the call graph for this function:

OA_ptr< LocIterator > OA::Activity::UsefulStandard::getDepSetIterator (  ) 

Return an iterator for set of dependent locations the analysis calculated InUseful from

Definition at line 28 of file UsefulStandard.cpp.

References mDepLocSet.

OA_ptr< LocIterator > OA::Activity::UsefulStandard::getInUsefulIterator ( StmtHandle  s  ) 

Return an iterator that will iterate over the set of locations that are in InUseful set for stmt (above the stmt, code-wise)

Definition at line 35 of file UsefulStandard.cpp.

References mInUseful.

int OA::Activity::UsefulStandard::getNumIter (  )  [inline]

access the number of iterations over all nodes for Useful

Definition at line 55 of file UsefulStandard.hpp.

References mNumIter.

OA_ptr< LocIterator > OA::Activity::UsefulStandard::getOutUsefulIterator ( StmtHandle  s  ) 

Return an iterator that will iterate over the set of locations that are in OutUseful set for stmt (below the stmt, code-wise)

Definition at line 45 of file UsefulStandard.cpp.

References mOutUseful.

void OA::Activity::UsefulStandard::insertDepLoc ( OA_ptr< Location loc  )  [inline]

insert an dependent location

Definition at line 62 of file UsefulStandard.hpp.

References mDepLocSet.

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

Implements OA::Annotation.

Definition at line 91 of file UsefulStandard.cpp.

References mDepLocSet, mInUseful, mNumIter, mOutUseful, OA::OA_ptr< T >::ptrEqual(), and OA::Annotation::sOutBuild.

Here is the call graph for this function:

void OA::Activity::UsefulStandard::setNumIter ( int  n  )  [inline]

set the final Useful or InUseful for the entry node of proc

set the number of iterations over all nodes for Useful

Definition at line 93 of file UsefulStandard.hpp.

References mNumIter.


Member Data Documentation

Definition at line 116 of file UsefulStandard.hpp.

Referenced by copyIntoCallOutUseful().

Definition at line 117 of file UsefulStandard.hpp.

Referenced by dump(), getDepSetIterator(), insertDepLoc(), output(), and UsefulStandard().

Definition at line 114 of file UsefulStandard.hpp.

Referenced by copyIntoInUseful(), dump(), getInUsefulIterator(), and output().

Definition at line 120 of file UsefulStandard.hpp.

Referenced by getNumIter(), output(), setNumIter(), and UsefulStandard().

Definition at line 115 of file UsefulStandard.hpp.

Referenced by copyIntoOutUseful(), getOutUsefulIterator(), and output().


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