LLVM 20.0.0git
|
A node (context) in the loaded contextual profile, suitable for mutation during IPO passes. More...
#include "llvm/ProfileData/PGOCtxProfReader.h"
Public Types | |
using | CallTargetMapTy = std::map< GlobalValue::GUID, PGOCtxProfContext > |
using | CallsiteMapTy = std::map< uint32_t, CallTargetMapTy > |
Friends | |
class | PGOCtxProfileReader |
class | PGOContextualProfile |
A node (context) in the loaded contextual profile, suitable for mutation during IPO passes.
We generally expect a fraction of counters and callsites to be populated. We continue to model counters as vectors, but callsites are modeled as a map of a map. The expectation is that, typically, there is a small number of indirect targets (usually, 1 for direct calls); but potentially a large number of callsites, and, as inlining progresses, the callsite count of a caller will grow.
Definition at line 84 of file PGOCtxProfReader.h.
using llvm::PGOCtxProfContext::CallsiteMapTy = std::map<uint32_t, CallTargetMapTy> |
Definition at line 87 of file PGOCtxProfReader.h.
using llvm::PGOCtxProfContext::CallTargetMapTy = std::map<GlobalValue::GUID, PGOCtxProfContext> |
Definition at line 86 of file PGOCtxProfReader.h.
|
delete |
|
default |
|
inline |
Definition at line 150 of file PGOCtxProfReader.h.
References assert(), hasCallsite(), and I.
|
inline |
Definition at line 145 of file PGOCtxProfReader.h.
References assert(), hasCallsite(), and I.
|
inline |
Definition at line 126 of file PGOCtxProfReader.h.
|
inline |
Definition at line 125 of file PGOCtxProfReader.h.
Referenced by llvm::CtxProfAnalysis::collectIndirectCallPromotionList(), ingestAllContexts(), and ingestContext().
|
inline |
Definition at line 116 of file PGOCtxProfReader.h.
References llvm::Counters.
|
inline |
Definition at line 115 of file PGOCtxProfReader.h.
References llvm::Counters.
Referenced by llvm::PGOContextualProfile::flatten().
|
inline |
Insert this node's GUID as well as the GUIDs of the transitive closure of child nodes, into the provided set (technically, all that is required of TSetOfGUIDs
is to have an insert(GUID)
member)
Definition at line 159 of file PGOCtxProfReader.h.
References _.
|
inline |
Definition at line 118 of file PGOCtxProfReader.h.
References assert(), and llvm::Counters.
|
inline |
Definition at line 114 of file PGOCtxProfReader.h.
Referenced by llvm::PGOContextualProfile::flatten().
|
inline |
Definition at line 132 of file PGOCtxProfReader.h.
References _, assert(), callsites(), and llvm::Other.
|
inline |
Definition at line 128 of file PGOCtxProfReader.h.
References callsites(), and llvm::Other.
|
delete |
|
delete |
|
inline |
Definition at line 139 of file PGOCtxProfReader.h.
References llvm::Counters, and Size.
|
friend |
Definition at line 91 of file PGOCtxProfReader.h.
|
friend |
Definition at line 90 of file PGOCtxProfReader.h.