OA::Activity::DepStandard Class Reference

#include <DepStandard.hpp>

Collaboration diagram for OA::Activity::DepStandard:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DepStandard ()
 ~DepStandard ()
OA_ptr< DepDFSetgetFinalDep ()
 Returns the DepDFSet for the whole procedure.
OA_ptr< LocIteratorgetMayDefIterator (StmtHandle stmt, const OA_ptr< Location > use)
OA_ptr< LocIteratorgetDiffUseIterator (StmtHandle stmt, OA_ptr< Location > def)
OA_ptr< LocIteratorgetMustDefIterator (StmtHandle stmt)
void mapStmtToDeps (StmtHandle stmt, OA_ptr< DepDFSet > depDFSet)
 map stmt to a DepDFSet
void mapFinalDeps (OA_ptr< DepDFSet > depDFSet)
 DepDFSet for whole procedure.
void insertDepForStmt (StmtHandle stmt, OA_ptr< Location > use, OA_ptr< Location > def)
 Insert use,def dependence pair.
void insertMustDefForStmt (StmtHandle stmt, OA_ptr< Location > def)
 Insert must def location.
void dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)

Private Attributes

OA_ptr< DepDFSetmProcDepDFSet
std::map< StmtHandle, OA_ptr
< DepDFSet > > 
mDepDFSet
std::map< StmtHandle, OA_ptr
< LocSet > > 
mMustDefMap

Detailed Description

Definition at line 35 of file DepStandard.hpp.


Constructor & Destructor Documentation

OA::Activity::DepStandard::DepStandard (  )  [inline]

Definition at line 37 of file DepStandard.hpp.

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

Definition at line 38 of file DepStandard.hpp.


Member Function Documentation

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

Definition at line 109 of file DepStandard.cpp.

References OA::OA_ptr< T >::dump(), getMustDefIterator(), mDepDFSet, and mMustDefMap.

Here is the call graph for this function:

OA_ptr< LocIterator > OA::Activity::DepStandard::getDiffUseIterator ( StmtHandle  stmt,
OA_ptr< Location def 
)

Return an iterator over all locations that are differentiable locations used in the possible definition of the given location, in the given stmt

Return an iterator over all locations that are differentiable locations used in the possible definition of the given location

For now assuming that all defs depend on all uses.

Definition at line 49 of file DepStandard.cpp.

References OA::Activity::debug, and mDepDFSet.

OA_ptr<DepDFSet> OA::Activity::DepStandard::getFinalDep (  )  [inline]

Returns the DepDFSet for the whole procedure.

Definition at line 45 of file DepStandard.hpp.

References mProcDepDFSet.

OA_ptr< LocIterator > OA::Activity::DepStandard::getMayDefIterator ( StmtHandle  stmt,
const OA_ptr< Location use 
)

Return an iterator over all locations whose definition may depend on the given use location in the given stmt.

Return an iterator over all locations whose definition may depend on the given use location.

Definition at line 33 of file DepStandard.cpp.

References OA::Activity::debug, mDepDFSet, and OA_DEBUG_CTRL_MACRO.

OA_ptr< LocIterator > OA::Activity::DepStandard::getMustDefIterator ( StmtHandle  stmt  ) 

Return an iterator over all locations that are definitely defined in the given stmt

Definition at line 62 of file DepStandard.cpp.

References mMustDefMap.

Referenced by dump().

void OA::Activity::DepStandard::insertDepForStmt ( StmtHandle  stmt,
OA_ptr< Location use,
OA_ptr< Location def 
)

Insert use,def dependence pair.

Definition at line 80 of file DepStandard.cpp.

References mDepDFSet, and OA::OA_ptr< T >::ptrEqual().

Here is the call graph for this function:

void OA::Activity::DepStandard::insertMustDefForStmt ( StmtHandle  stmt,
OA_ptr< Location def 
)

Insert must def location.

Definition at line 97 of file DepStandard.cpp.

References mMustDefMap.

void OA::Activity::DepStandard::mapFinalDeps ( OA_ptr< DepDFSet depDFSet  )  [inline]

DepDFSet for whole procedure.

Definition at line 72 of file DepStandard.hpp.

References mProcDepDFSet.

void OA::Activity::DepStandard::mapStmtToDeps ( StmtHandle  stmt,
OA_ptr< DepDFSet depDFSet 
) [inline]

map stmt to a DepDFSet

Definition at line 68 of file DepStandard.hpp.

References mDepDFSet.


Member Data Documentation

Definition at line 92 of file DepStandard.hpp.

Referenced by dump(), getMustDefIterator(), and insertMustDefForStmt().

Definition at line 89 of file DepStandard.hpp.

Referenced by getFinalDep(), and mapFinalDeps().


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

Generated on Sat Oct 31 05:29:08 2009 for OpenAnalysis by  doxygen 1.6.1