OpenADFortTk (including Open64 and OpenAnalysis references)
|
#include <CallGraph.hpp>
Public Types | |
typedef std::map< SymHandle, OA_ptr< Node > > | SymToNodeMapType |
Private Attributes | |
const SymHandle | mName |
SymToNodeMapType | mSymToNodeMap |
std::map< CallHandle, OA_ptr < std::set< ProcHandle > > > | mCallToCalleeProcSetMap |
Friends | |
class | NodeLabelListIterator |
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 300 of file CallGraph.hpp.
typedef std::map<SymHandle, OA_ptr<Node> > OA::CallGraph::CallGraph::SymToNodeMapType |
Definition at line 331 of file CallGraph.hpp.
OA::CallGraph::CallGraph::CallGraph | ( | const SymHandle | name) |
Definition at line 172 of file CallGraph.cpp.
References OA::CallGraph::debug, and OA_DEBUG_CTRL_MACRO.
OA::CallGraph::CallGraph::CallGraph | ( | ) |
Definition at line 178 of file CallGraph.cpp.
|
virtual |
Definition at line 184 of file CallGraph.cpp.
void OA::CallGraph::CallGraph::addToCallProcSetMap | ( | CallHandle | call, |
ProcHandle | proc | ||
) |
Definition at line 400 of file CallGraph.cpp.
References OA::CallGraph::debug, mCallToCalleeProcSetMap, and NULL.
void OA::CallGraph::CallGraph::connect | ( | OA_ptr< NodeInterface > | src, |
OA_ptr< NodeInterface > | dst, | ||
EdgeType | type, | ||
CallHandle | call | ||
) |
Definition at line 364 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::addEdge().
void OA::CallGraph::CallGraph::disconnect | ( | OA_ptr< EdgeInterface > | e) |
Definition at line 374 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::removeEdge().
|
virtual |
COMMENTED OUT BY plm 08/17/06
os << "===== CallGraph: " << ir->toString(mName) << " =====\n" << endl;
print the contents of all the nodes NodesIterator nodes_iter(*this); for ( ; nodes_iter.isValid(); ++nodes_iter) { OA_ptr<CallGraph::Node> node = nodes_iter.current(); node->longdump(os, ir); os << endl; }
os << "====================" << endl;
Implements OA::CallGraph::CallGraphInterface.
Definition at line 540 of file CallGraph.cpp.
Referenced by fortTkSupport::InterOAInfoMap::init().
Definition at line 381 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::addNode(), mSymToNodeMap, NULL, and OA::OA_ptr< T >::ptrEqual().
|
virtual |
Returns an iterator over ProcHandles, of Procs that are may called from the given CallHandle
Implements OA::CallGraph::CallGraphInterface.
Definition at line 213 of file CallGraph.cpp.
References mCallToCalleeProcSetMap, NULL, and OA::OA_ptr< T >::ptrEqual().
|
virtual |
Implements OA::CallGraph::CallGraphInterface.
Definition at line 510 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::getDFSIterator().
|
virtual |
Implements OA::CallGraph::CallGraphInterface.
Definition at line 490 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::getEdgesIterator().
|
virtual |
Implements OA::CallGraph::CallGraphInterface.
Definition at line 519 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::getEntryNodesIterator().
|
virtual |
Implements OA::CallGraph::CallGraphInterface.
Definition at line 528 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::getExitNodesIterator().
|
virtual |
Implements OA::CallGraph::CallGraphInterface.
Definition at line 481 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::getNodesIterator().
|
virtual |
Implements OA::CallGraph::CallGraphInterface.
Definition at line 500 of file CallGraph.cpp.
References OA::DGraph::DGraphImplement::getReversePostDFSIterator().
|
virtual |
Implements OA::Annotation.
Definition at line 559 of file CallGraph.cpp.
References OA::CallGraph::CallGraphCalleeProcIter::current(), OA::CallGraph::CallGraphCalleeProcIter::isValid(), mCallToCalleeProcSetMap, OA::DGraph::DGraphImplement::output(), OA::OA_ptr< T >::ptrEqual(), OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().
|
inlinevirtual |
Implements OA::CallGraph::CallGraphInterface.
Definition at line 337 of file CallGraph.hpp.
References mName.
|
friend |
Definition at line 312 of file CallGraph.hpp.
|
private |
Definition at line 406 of file CallGraph.hpp.
Referenced by addToCallProcSetMap(), getCalleeProcIter(), and output().
|
private |
Definition at line 402 of file CallGraph.hpp.
Referenced by subprog_name().
|
private |
Definition at line 404 of file CallGraph.hpp.
Referenced by findOrAddNode().