OA::Activity::ICFGDep Class Reference

#include <ICFGDep.hpp>

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

List of all members.

Public Member Functions

 ICFGDep ()
 ~ICFGDep ()
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 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 output (OA::IRHandlesIRInterface &ir)
void dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)

Private Attributes

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

Detailed Description

Definition at line 41 of file ICFGDep.hpp.


Constructor & Destructor Documentation

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

Definition at line 43 of file ICFGDep.hpp.

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

Definition at line 44 of file ICFGDep.hpp.


Member Function Documentation

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

Definition at line 110 of file ICFGDep.cpp.

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

Here is the call graph for this function:

OA_ptr< LocIterator > OA::Activity::ICFGDep::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 ICFGDep.cpp.

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

OA_ptr< LocIterator > OA::Activity::ICFGDep::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 ICFGDep.cpp.

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

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

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

Definition at line 63 of file ICFGDep.cpp.

References mMustDefMap.

Referenced by dump(), and output().

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

Insert use,def dependence pair.

Definition at line 81 of file ICFGDep.cpp.

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

Here is the call graph for this function:

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

Insert must def location.

Definition at line 98 of file ICFGDep.cpp.

References mMustDefMap.

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

map stmt to a DepDFSet

Definition at line 70 of file ICFGDep.hpp.

References mDepDFSet.

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

Member Data Documentation

Definition at line 93 of file ICFGDep.hpp.

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


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

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