LLVM 22.0.0git
llvm::CallGraphSCC Class Reference

CallGraphSCC - This is a single SCC that a CallGraphSCCPass is run on. More...

#include "llvm/Analysis/CallGraphSCCPass.h"

Public Types

using iterator = std::vector<CallGraphNode *>::const_iterator

Public Member Functions

 CallGraphSCC (CallGraph &cg, void *context)
void initialize (ArrayRef< CallGraphNode * > NewNodes)
bool isSingular () const
unsigned size () const
LLVM_ABI void ReplaceNode (CallGraphNode *Old, CallGraphNode *New)
 ReplaceNode - This informs the SCC and the pass manager that the specified Old node has been deleted, and New is to be used in its place.
LLVM_ABI void DeleteNode (CallGraphNode *Old)
 DeleteNode - This informs the SCC and the pass manager that the specified Old node has been deleted.
iterator begin () const
iterator end () const
const CallGraphgetCallGraph ()

Detailed Description

CallGraphSCC - This is a single SCC that a CallGraphSCCPass is run on.

Definition at line 83 of file CallGraphSCCPass.h.

Member Typedef Documentation

◆ iterator

Definition at line 106 of file CallGraphSCCPass.h.

Constructor & Destructor Documentation

◆ CallGraphSCC()

llvm::CallGraphSCC::CallGraphSCC ( CallGraph & cg,
void * context )
inline

Definition at line 89 of file CallGraphSCCPass.h.

Member Function Documentation

◆ begin()

iterator llvm::CallGraphSCC::begin ( ) const
inline

Definition at line 108 of file CallGraphSCCPass.h.

◆ DeleteNode()

void CallGraphSCC::DeleteNode ( CallGraphNode * Old)

DeleteNode - This informs the SCC and the pass manager that the specified Old node has been deleted.

Definition at line 601 of file CallGraphSCCPass.cpp.

References ReplaceNode().

◆ end()

iterator llvm::CallGraphSCC::end ( ) const
inline

Definition at line 109 of file CallGraphSCCPass.h.

◆ getCallGraph()

const CallGraph & llvm::CallGraphSCC::getCallGraph ( )
inline

Definition at line 111 of file CallGraphSCCPass.h.

◆ initialize()

void llvm::CallGraphSCC::initialize ( ArrayRef< CallGraphNode * > NewNodes)
inline

Definition at line 91 of file CallGraphSCCPass.h.

References llvm::ArrayRef< T >::begin(), and llvm::ArrayRef< T >::end().

◆ isSingular()

bool llvm::CallGraphSCC::isSingular ( ) const
inline

Definition at line 95 of file CallGraphSCCPass.h.

◆ ReplaceNode()

void CallGraphSCC::ReplaceNode ( CallGraphNode * Old,
CallGraphNode * New )

ReplaceNode - This informs the SCC and the pass manager that the specified Old node has been deleted, and New is to be used in its place.

This informs the SCC and the pass manager that the specified Old node has been deleted, and New is to be used in its place.

Definition at line 583 of file CallGraphSCCPass.cpp.

References assert(), and llvm::scc_iterator< GraphT, GT >::ReplaceNode().

Referenced by DeleteNode().

◆ size()

unsigned llvm::CallGraphSCC::size ( ) const
inline

Definition at line 96 of file CallGraphSCCPass.h.


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