LLVM 20.0.0git
|
The instrumented contextual profile, produced by the CtxProfAnalysis. More...
#include "llvm/Analysis/CtxProfAnalysis.h"
Public Types | |
using | ConstVisitor = function_ref< void(const PGOCtxProfContext &)> |
using | Visitor = function_ref< void(PGOCtxProfContext &)> |
Public Member Functions | |
PGOContextualProfile (const PGOContextualProfile &)=delete | |
PGOContextualProfile (PGOContextualProfile &&)=default | |
operator bool () const | |
const PGOCtxProfContext::CallTargetMapTy & | profiles () const |
bool | isFunctionKnown (const Function &F) const |
StringRef | getFunctionName (GlobalValue::GUID GUID) const |
uint32_t | getNumCounters (const Function &F) const |
uint32_t | getNumCallsites (const Function &F) const |
uint32_t | allocateNextCounterIndex (const Function &F) |
uint32_t | allocateNextCallsiteIndex (const Function &F) |
void | update (Visitor, const Function &F) |
void | visit (ConstVisitor, const Function *F=nullptr) const |
const CtxProfFlatProfile | flatten () const |
bool | invalidate (Module &, const PreservedAnalyses &PA, ModuleAnalysisManager::Invalidator &) |
Friends | |
class | CtxProfAnalysis |
class | CtxProfAnalysisPrinterPass |
The instrumented contextual profile, produced by the CtxProfAnalysis.
Definition at line 31 of file CtxProfAnalysis.h.
using llvm::PGOContextualProfile::ConstVisitor = function_ref<void(const PGOCtxProfContext &)> |
Definition at line 96 of file CtxProfAnalysis.h.
using llvm::PGOContextualProfile::Visitor = function_ref<void(PGOCtxProfContext &)> |
Definition at line 97 of file CtxProfAnalysis.h.
|
delete |
|
default |
Definition at line 91 of file CtxProfAnalysis.h.
References assert(), F, and isFunctionKnown().
Referenced by llvm::promoteCallWithIfThenElse(), and remapIndices().
Definition at line 86 of file CtxProfAnalysis.h.
References assert(), F, and isFunctionKnown().
Referenced by llvm::promoteCallWithIfThenElse(), and remapIndices().
const CtxProfFlatProfile PGOContextualProfile::flatten | ( | ) | const |
Definition at line 320 of file CtxProfAnalysis.cpp.
References llvm::append_range(), assert(), llvm::PGOCtxProfContext::counters(), llvm::PGOCtxProfContext::guid(), I, preorderVisit(), and llvm::SmallVectorBase< Size_T >::size().
|
inline |
Definition at line 69 of file CtxProfAnalysis.h.
References llvm::StringRef::find().
Definition at line 81 of file CtxProfAnalysis.h.
References assert(), F, and isFunctionKnown().
Referenced by llvm::InlineFunction().
Definition at line 76 of file CtxProfAnalysis.h.
References assert(), F, and isFunctionKnown().
Referenced by llvm::InlineFunction().
|
inline |
Definition at line 104 of file CtxProfAnalysis.h.
References llvm::PreservedAnalyses::getChecker().
Definition at line 65 of file CtxProfAnalysis.h.
References F.
Referenced by allocateNextCallsiteIndex(), allocateNextCounterIndex(), getNumCallsites(), getNumCounters(), llvm::promoteCallWithIfThenElse(), update(), and visit().
|
inline |
Definition at line 59 of file CtxProfAnalysis.h.
|
inline |
Definition at line 61 of file CtxProfAnalysis.h.
Definition at line 301 of file CtxProfAnalysis.cpp.
References assert(), F, G, and isFunctionKnown().
Referenced by llvm::InlineFunction(), and llvm::promoteCallWithIfThenElse().
void PGOContextualProfile::visit | ( | ConstVisitor | V, |
const Function * | F = nullptr |
||
) | const |
Definition at line 309 of file CtxProfAnalysis.cpp.
References assert(), F, G, isFunctionKnown(), and preorderVisit().
|
friend |
Definition at line 32 of file CtxProfAnalysis.h.
|
friend |
Definition at line 33 of file CtxProfAnalysis.h.