OpenADFortTk (including Open64 and OpenAnalysis references)
|
#include <CallGraph.hpp>
Private Attributes | |
SymHandle | mSym |
ProcHandle | mProc |
std::list< CallHandle > | mCalls |
Friends | |
class | NodeCallsIterator |
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 115 of file CallGraph.hpp.
OA::CallGraph::Node::Node | ( | ) |
Definition at line 85 of file CallGraph.cpp.
OA::CallGraph::Node::Node | ( | SymHandle | s) |
Definition at line 87 of file CallGraph.cpp.
OA::CallGraph::Node::~Node | ( | ) |
Definition at line 90 of file CallGraph.cpp.
void OA::CallGraph::Node::add_call | ( | CallHandle | h) |
Definition at line 102 of file CallGraph.cpp.
References mCalls.
void OA::CallGraph::Node::add_def | ( | ProcHandle | h) |
Definition at line 100 of file CallGraph.cpp.
References mProc.
|
inlinevirtual |
Implements OA::DGraph::NodeInterface.
Definition at line 167 of file CallGraph.hpp.
void OA::CallGraph::Node::dump | ( | std::ostream & | os, |
OA_ptr< IRHandlesIRInterface > | ir | ||
) |
Definition at line 609 of file CallGraph.cpp.
References OA::IRHandle::hval(), isDefined(), and mSym.
|
virtual |
Implements OA::CallGraph::NodeInterface.
Definition at line 313 of file CallGraph.cpp.
References OA::DGraph::NodeImplement::getIncomingEdgesIterator().
|
virtual |
Implements OA::CallGraph::NodeInterface.
Definition at line 321 of file CallGraph.cpp.
References OA::DGraph::NodeImplement::getOutgoingEdgesIterator().
|
virtual |
Implements OA::CallGraph::NodeInterface.
Definition at line 337 of file CallGraph.cpp.
References OA::DGraph::NodeImplement::getSinkNodesIterator().
|
virtual |
Implements OA::CallGraph::NodeInterface.
Definition at line 329 of file CallGraph.cpp.
References OA::DGraph::NodeImplement::getSourceNodesIterator().
|
virtual |
Implements OA::CallGraph::NodeInterface.
Definition at line 96 of file CallGraph.cpp.
References mProc.
Referenced by fortTkSupport::MassageOACallGraphIntoXAIFCallGraph(), and whirl2xaif::Whirl2Xaif::translatePU().
|
virtual |
Implements OA::CallGraph::NodeInterface.
Definition at line 98 of file CallGraph.cpp.
References mSym.
Referenced by fortTkSupport::MassageOACallGraphIntoXAIFCallGraph().
|
virtual |
Implements OA::CallGraph::NodeInterface.
Definition at line 94 of file CallGraph.cpp.
References mCalls.
|
virtual |
getId: An id unique within instances of CallGraph::Node
Implements OA::CallGraph::NodeInterface.
Definition at line 92 of file CallGraph.cpp.
References OA::IRHandle::hval(), and mProc.
Referenced by dump(), and output().
void OA::CallGraph::Node::longdump | ( | std::ostream & | os, |
OA_ptr< IRHandlesIRInterface > | ir | ||
) |
Commented out by PLM 08/18/06
print the node ID os << "CallGraph Node: "; dump(os,ir);
if (isAnEntry()) { os << " (ENTRY)"; } else if (isAnExit()) { os << " (EXIT)"; } os << endl;
print the source(s) unsigned int count = 0; OA_ptr<NodesIterator> srcIt = getSourceNodesIterator(); for ( ; srcIt->isValid(); ++(*srcIt), ++count) { OA_ptr<Node> node = srcIt->current(); if (count == 0) { os << " <-- ("; } else { os << ", "; }
node->dump(os,ir); } if (count > 0) { os << ")" << endl; }
print the sink(s) count = 0; OutgoingEdgesIterator outIt(*this); OA_ptr<NodesIterator> outIt = getSinkNodesIterator(); for ( ; outIt->isValid(); ++(*outIt), ++count) { OA_ptr<Edge> edge = outIt.current(); OA_ptr<Node> node = edge->sink().convert<Node>(); OA_ptr<Node> node = outIt->current(); if (count == 0) { os << " --> ("; } else { os << ", "; }
node->dump(os,ir); os << " ["; edge->shortdump(os); os << "]"; } if (count > 0) { os << ")" << endl; }
Definition at line 633 of file CallGraph.cpp.
|
virtual |
Implements OA::Annotation.
Definition at line 620 of file CallGraph.cpp.
References OA::IRHandle::hval(), isDefined(), mSym, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().
|
friend |
Definition at line 171 of file CallGraph.hpp.
|
private |
Definition at line 214 of file CallGraph.hpp.
Referenced by add_call(), and isCalled().
|
private |
Definition at line 213 of file CallGraph.hpp.
Referenced by add_def(), getProc(), and isDefined().
|
private |
Definition at line 212 of file CallGraph.hpp.
Referenced by dump(), getProcSym(), and output().