OpenADFortTk (including Open64 and OpenAnalysis references)
|
#include <ICFGDep.hpp>
Public Member Functions | |
ICFGDep () | |
~ICFGDep () | |
OA_ptr< LocIterator > | getMayDefIterator (StmtHandle stmt, const OA_ptr< Location > use) |
OA_ptr< LocIterator > | getDiffUseIterator (StmtHandle stmt, OA_ptr< Location > def) |
OA_ptr< LocIterator > | getMustDefIterator (StmtHandle stmt) |
void | mapStmtToDeps (StmtHandle stmt, OA_ptr< DepDFSet > depDFSet) |
map stmt to a DepDFSet More... | |
void | insertDepForStmt (StmtHandle stmt, OA_ptr< Location > use, OA_ptr< Location > def) |
Insert use,def dependence pair. More... | |
void | insertMustDefForStmt (StmtHandle stmt, OA_ptr< Location > def) |
Insert must def location. More... | |
void | output (OA::IRHandlesIRInterface &ir) |
void | dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir) |
Public Member Functions inherited from OA::Annotation | |
Annotation () | |
virtual | ~Annotation () |
Private Attributes | |
std::map< StmtHandle, OA_ptr < DepDFSet > > | mDepDFSet |
std::map< StmtHandle, OA_ptr < LocSet > > | mMustDefMap |
Additional Inherited Members | |
Static Public Member Functions inherited from OA::Annotation | |
static void | configOutput (OA_ptr< OutputBuilder > ob) |
Static Protected Attributes inherited from OA::Annotation | |
static OA_ptr< OutputBuilder > | sOutBuild |
Definition at line 41 of file ICFGDep.hpp.
|
inline |
Definition at line 43 of file ICFGDep.hpp.
|
inline |
Definition at line 44 of file ICFGDep.hpp.
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, mMustDefMap, and NULL.
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.
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().
void OA::Activity::ICFGDep::insertMustDefForStmt | ( | StmtHandle | stmt, |
OA_ptr< Location > | def | ||
) |
|
inline |
|
virtual |
Implements OA::Annotation.
Definition at line 140 of file ICFGDep.cpp.
References getMustDefIterator(), mDepDFSet, mMustDefMap, NULL, OA::Annotation::output(), OA::popIndt(), OA::OA_ptr< T >::ptrEqual(), OA::pushIndt(), OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().
|
private |
Definition at line 91 of file ICFGDep.hpp.
Referenced by dump(), getDiffUseIterator(), getMayDefIterator(), insertDepForStmt(), mapStmtToDeps(), and output().
|
private |
Definition at line 93 of file ICFGDep.hpp.
Referenced by dump(), getMustDefIterator(), insertMustDefForStmt(), and output().