|
LLVM
5.0.0
|
A node in the call graph. More...
#include "llvm/Analysis/LazyCallGraph.h"
Public Member Functions | |
| LazyCallGraph & | getGraph () const |
| Function & | getFunction () const |
| StringRef | getName () const |
| bool | operator== (const Node &N) const |
| Equality is defined as address equality. More... | |
| bool | operator!= (const Node &N) const |
| operator bool () const | |
| Tests whether the node has been populated with edges. More... | |
| EdgeSequence & | operator* () const |
| EdgeSequence * | operator-> () const |
| EdgeSequence & | populate () |
| Populate the edges of this node if necessary. More... | |
Friends | |
| class | LazyCallGraph |
| class | LazyCallGraph::RefSCC |
| raw_ostream & | operator<< (raw_ostream &OS, const Node &N) |
| Print the name of this node's function. More... | |
A node in the call graph.
This represents a single node. It's primary roles are to cache the list of callees, de-duplicate and provide fast testing of whether a function is a callee, and facilitate iteration of child nodes in the graph.
The node works much like an optional in order to lazily populate the edges of each node. Until populated, there are no edges. Once populated, you can access the edges by dereferencing the node or using the -> operator as if the node was an Optional<EdgeSequence>.
Definition at line 316 of file LazyCallGraph.h.
|
inline |
Definition at line 323 of file LazyCallGraph.h.
References F.
Referenced by printNode(), printNodeDOT(), llvm::LazyCallGraph::RefSCC::removeOutgoingEdge(), llvm::LazyCallGraph::RefSCC::replaceNodeFunction(), and llvm::updateCGAndAnalysisManagerForFunctionPass().
|
inline |
Definition at line 321 of file LazyCallGraph.h.
References G.
|
inline |
Definition at line 325 of file LazyCallGraph.h.
References F.
|
inline |
Tests whether the node has been populated with edges.
Definition at line 332 of file LazyCallGraph.h.
Definition at line 329 of file LazyCallGraph.h.
References operator==().
|
inline |
Definition at line 336 of file LazyCallGraph.h.
|
inline |
Definition at line 340 of file LazyCallGraph.h.
Equality is defined as address equality.
Definition at line 328 of file LazyCallGraph.h.
References N.
Referenced by operator!=().
|
inline |
Populate the edges of this node if necessary.
The first time this is called it will populate the edges for this node in the graph. It does this by scanning the underlying function, so once this is done, any changes to that function must be explicitly reflected in updates to the graph.
EdgeSequence to simplify walking it.This will not update or re-scan anything if called repeatedly. Instead, the edge sequence is cached and returned immediately on subsequent calls.
Definition at line 354 of file LazyCallGraph.h.
Referenced by llvm::LazyCallGraph::buildRefSCCs(), printNode(), and printNodeDOT().
|
friend |
Definition at line 317 of file LazyCallGraph.h.
|
friend |
Definition at line 318 of file LazyCallGraph.h.
|
friend |
Print the name of this node's function.
Definition at line 391 of file LazyCallGraph.h.
1.8.6