LLVM 20.0.0git
Classes | Public Member Functions | Friends | List of all members
llvm::PGOContextualProfile Class Reference

The instrumented contextual profile, produced by the CtxProfAnalysis. More...

#include "llvm/Analysis/CtxProfAnalysis.h"

Public Member Functions

 PGOContextualProfile (const PGOContextualProfile &)=delete
 
 PGOContextualProfile (PGOContextualProfile &&)=default
 
 operator bool () const
 
const PGOCtxProfContext::CallTargetMapTyprofiles () const
 
bool isFunctionKnown (const Function &F) const
 
uint32_t allocateNextCounterIndex (const Function &F)
 
uint32_t allocateNextCallsiteIndex (const Function &F)
 
bool invalidate (Module &, const PreservedAnalyses &PA, ModuleAnalysisManager::Invalidator &)
 

Friends

class CtxProfAnalysis
 
class CtxProfAnalysisPrinterPass
 

Detailed Description

The instrumented contextual profile, produced by the CtxProfAnalysis.

Definition at line 22 of file CtxProfAnalysis.h.

Constructor & Destructor Documentation

◆ PGOContextualProfile() [1/2]

llvm::PGOContextualProfile::PGOContextualProfile ( const PGOContextualProfile )
delete

◆ PGOContextualProfile() [2/2]

llvm::PGOContextualProfile::PGOContextualProfile ( PGOContextualProfile &&  )
default

Member Function Documentation

◆ allocateNextCallsiteIndex()

uint32_t llvm::PGOContextualProfile::allocateNextCallsiteIndex ( const Function F)
inline

Definition at line 63 of file CtxProfAnalysis.h.

References assert(), F, and isFunctionKnown().

◆ allocateNextCounterIndex()

uint32_t llvm::PGOContextualProfile::allocateNextCounterIndex ( const Function F)
inline

Definition at line 58 of file CtxProfAnalysis.h.

References assert(), F, and isFunctionKnown().

◆ invalidate()

bool llvm::PGOContextualProfile::invalidate ( Module ,
const PreservedAnalyses PA,
ModuleAnalysisManager::Invalidator  
)
inline

Definition at line 68 of file CtxProfAnalysis.h.

References llvm::PreservedAnalyses::getChecker().

◆ isFunctionKnown()

bool llvm::PGOContextualProfile::isFunctionKnown ( const Function F) const
inline

Definition at line 54 of file CtxProfAnalysis.h.

References F.

Referenced by allocateNextCallsiteIndex(), and allocateNextCounterIndex().

◆ operator bool()

llvm::PGOContextualProfile::operator bool ( ) const
inline

Definition at line 48 of file CtxProfAnalysis.h.

◆ profiles()

const PGOCtxProfContext::CallTargetMapTy & llvm::PGOContextualProfile::profiles ( ) const
inline

Definition at line 50 of file CtxProfAnalysis.h.

Friends And Related Function Documentation

◆ CtxProfAnalysis

friend class CtxProfAnalysis
friend

Definition at line 23 of file CtxProfAnalysis.h.

◆ CtxProfAnalysisPrinterPass

friend class CtxProfAnalysisPrinterPass
friend

Definition at line 24 of file CtxProfAnalysis.h.


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