LLVM 19.0.0git
Public Types | Public Member Functions | List of all members
llvm::sampleprof::ProfiledCallGraph Class Reference

#include "llvm/Transforms/IPO/ProfiledCallGraph.h"

Public Types

using iterator = ProfiledCallGraphNode::iterator
 

Public Member Functions

 ProfiledCallGraph (SampleProfileMap &ProfileMap, uint64_t IgnoreColdCallThreshold=0)
 
 ProfiledCallGraph (SampleContextTracker &ContextTracker, uint64_t IgnoreColdCallThreshold=0)
 
iterator begin ()
 
iterator end ()
 
ProfiledCallGraphNodegetEntryNode ()
 
void addProfiledFunction (FunctionId Name)
 

Detailed Description

Definition at line 61 of file ProfiledCallGraph.h.

Member Typedef Documentation

◆ iterator

Definition at line 63 of file ProfiledCallGraph.h.

Constructor & Destructor Documentation

◆ ProfiledCallGraph() [1/2]

llvm::sampleprof::ProfiledCallGraph::ProfiledCallGraph ( SampleProfileMap ProfileMap,
uint64_t  IgnoreColdCallThreshold = 0 
)
inline

Definition at line 66 of file ProfiledCallGraph.h.

References assert(), and llvm::sampleprof::FunctionSamples::ProfileIsCS.

◆ ProfiledCallGraph() [2/2]

llvm::sampleprof::ProfiledCallGraph::ProfiledCallGraph ( SampleContextTracker ContextTracker,
uint64_t  IgnoreColdCallThreshold = 0 
)
inline

Member Function Documentation

◆ addProfiledFunction()

void llvm::sampleprof::ProfiledCallGraph::addProfiledFunction ( FunctionId  Name)
inline

Definition at line 137 of file ProfiledCallGraph.h.

References llvm::sampleprof::ProfiledCallGraphNode::Edges, and Name.

Referenced by ProfiledCallGraph().

◆ begin()

iterator llvm::sampleprof::ProfiledCallGraph::begin ( )
inline

◆ end()

iterator llvm::sampleprof::ProfiledCallGraph::end ( )
inline

◆ getEntryNode()

ProfiledCallGraphNode * llvm::sampleprof::ProfiledCallGraph::getEntryNode ( )
inline

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