LLVM  4.0.0
Public Member Functions | Friends | List of all members
llvm::LazyCallGraph::Node Class Reference

A node in the call graph. More...

#include <LazyCallGraph.h>

Public Member Functions

LazyCallGraphgetGraph () const
 
FunctiongetFunction () const
 
edge_iterator begin () const
 
edge_iterator end () const
 
const Edgeoperator[] (int i) const
 
const Edgeoperator[] (Function &F) const
 
const Edgeoperator[] (Node &N) const
 
const Edgelookup (Function &F) const
 
call_edge_iterator call_begin () const
 
call_edge_iterator call_end () const
 
iterator_range
< call_edge_iterator
calls () const
 
bool operator== (const Node &N) const
 Equality is defined as address equality. More...
 
bool operator!= (const Node &N) const
 

Friends

class LazyCallGraph
 
class LazyCallGraph::SCC
 
class LazyCallGraph::RefSCC
 
raw_ostreamoperator<< (raw_ostream &OS, const Node &N)
 Print the name of this node's function. More...
 

Detailed Description

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.

Definition at line 199 of file LazyCallGraph.h.

Member Function Documentation

edge_iterator llvm::LazyCallGraph::Node::begin ( ) const
inline
call_edge_iterator llvm::LazyCallGraph::Node::call_begin ( ) const
inline
call_edge_iterator llvm::LazyCallGraph::Node::call_end ( ) const
inline
iterator_range<call_edge_iterator> llvm::LazyCallGraph::Node::calls ( ) const
inline

Definition at line 274 of file LazyCallGraph.h.

References call_begin(), call_end(), and llvm::make_range().

Referenced by llvm::LazyCallGraph::SCC::isParentOf().

edge_iterator llvm::LazyCallGraph::Node::end ( ) const
inline
Function& llvm::LazyCallGraph::Node::getFunction ( ) const
inline
LazyCallGraph& llvm::LazyCallGraph::Node::getGraph ( ) const
inline

Definition at line 246 of file LazyCallGraph.h.

References G.

const Edge* llvm::LazyCallGraph::Node::lookup ( Function F) const
inline

Definition at line 262 of file LazyCallGraph.h.

Referenced by llvm::updateCGAndAnalysisManagerForFunctionPass().

bool llvm::LazyCallGraph::Node::operator!= ( const Node N) const
inline

Definition at line 280 of file LazyCallGraph.h.

References operator==().

bool llvm::LazyCallGraph::Node::operator== ( const Node N) const
inline

Equality is defined as address equality.

Definition at line 279 of file LazyCallGraph.h.

References N.

Referenced by operator!=().

const Edge& llvm::LazyCallGraph::Node::operator[] ( int  i) const
inline

Definition at line 255 of file LazyCallGraph.h.

References i.

const Edge& llvm::LazyCallGraph::Node::operator[] ( Function F) const
inline

Definition at line 256 of file LazyCallGraph.h.

References assert().

const Edge& llvm::LazyCallGraph::Node::operator[] ( Node N) const
inline

Definition at line 260 of file LazyCallGraph.h.

References getFunction().

Friends And Related Function Documentation

friend class LazyCallGraph
friend

Definition at line 200 of file LazyCallGraph.h.

friend class LazyCallGraph::RefSCC
friend

Definition at line 202 of file LazyCallGraph.h.

friend class LazyCallGraph::SCC
friend

Definition at line 201 of file LazyCallGraph.h.

raw_ostream& operator<< ( raw_ostream OS,
const Node N 
)
friend

Print the name of this node's function.

Definition at line 238 of file LazyCallGraph.h.


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