LLVM 20.0.0git
|
#include "llvm/Transforms/IPO/SampleContextTracker.h"
Definition at line 34 of file SampleContextTracker.h.
|
inline |
Definition at line 36 of file SampleContextTracker.h.
void llvm::ContextTrieNode::addFunctionSize | ( | uint32_t | FSize | ) |
Definition at line 130 of file SampleContextTracker.cpp.
void llvm::ContextTrieNode::dumpNode | ( | ) |
Definition at line 151 of file SampleContextTracker.cpp.
References llvm::dbgs().
void llvm::ContextTrieNode::dumpTree | ( | ) |
Definition at line 162 of file SampleContextTracker.cpp.
References llvm::dbgs().
Referenced by llvm::SampleContextTracker::dump().
std::map< uint64_t, ContextTrieNode > & llvm::ContextTrieNode::getAllChildContext | ( | ) |
Definition at line 112 of file SampleContextTracker.cpp.
Referenced by llvm::SampleContextTracker::getIndirectCalleeContextSamplesFor(), llvm::sampleprof::ProfiledCallGraph::ProfiledCallGraph(), and llvm::SampleContextTracker::promoteMergeContextSamplesTree().
LineLocation llvm::ContextTrieNode::getCallSiteLoc | ( | ) | const |
Definition at line 137 of file SampleContextTracker.cpp.
Referenced by llvm::SampleContextTracker::getContextString(), llvm::SampleContextTracker::getIndirectCalleeContextSamplesFor(), and llvm::SampleContextTracker::promoteMergeContextSamplesTree().
ContextTrieNode * llvm::ContextTrieNode::getChildContext | ( | const LineLocation & | CallSite, |
FunctionId | ChildName | ||
) |
Definition at line 30 of file SampleContextTracker.cpp.
References llvm::sampleprof::FunctionId::empty(), llvm::sampleprof::FunctionSamples::getCallSiteHash(), and getHottestChildContext().
Referenced by llvm::SampleContextTracker::getOrCreateContextPath(), and llvm::SampleContextTracker::promoteMergeContextSamplesTree().
FunctionId llvm::ContextTrieNode::getFuncName | ( | ) | const |
Definition at line 116 of file SampleContextTracker.cpp.
FunctionSamples * llvm::ContextTrieNode::getFunctionSamples | ( | ) | const |
Definition at line 118 of file SampleContextTracker.cpp.
Referenced by llvm::SampleContextTracker::getCalleeContextSamplesFor(), llvm::SampleContextTracker::getContextSamplesFor(), getHottestChildContext(), llvm::SampleContextTracker::getIndirectCalleeContextSamplesFor(), llvm::SampleContextTracker::promoteMergeContextSamplesTree(), and llvm::SampleContextTracker::SampleContextTracker().
std::optional< uint32_t > llvm::ContextTrieNode::getFunctionSize | ( | ) | const |
Definition at line 126 of file SampleContextTracker.cpp.
ContextTrieNode * llvm::ContextTrieNode::getHottestChildContext | ( | const LineLocation & | CallSite | ) |
Definition at line 43 of file SampleContextTracker.cpp.
References getFunctionSamples(), and llvm::sampleprof::FunctionSamples::getTotalSamples().
Referenced by getChildContext().
ContextTrieNode * llvm::ContextTrieNode::getOrCreateChildContext | ( | const LineLocation & | CallSite, |
FunctionId | ChildName, | ||
bool | AllowCreate = true |
||
) |
Definition at line 179 of file SampleContextTracker.cpp.
References assert(), and llvm::sampleprof::FunctionSamples::getCallSiteHash().
Referenced by llvm::SampleContextTracker::getOrCreateContextPath().
ContextTrieNode * llvm::ContextTrieNode::getParentContext | ( | ) | const |
Definition at line 139 of file SampleContextTracker.cpp.
Referenced by llvm::SampleContextTracker::getContextSamplesFor().
void llvm::ContextTrieNode::removeChildContext | ( | const LineLocation & | CallSite, |
FunctionId | ChildName | ||
) |
Definition at line 105 of file SampleContextTracker.cpp.
References llvm::sampleprof::FunctionSamples::getCallSiteHash().
void llvm::ContextTrieNode::setCallSiteLoc | ( | const LineLocation & | Loc | ) |
Definition at line 147 of file SampleContextTracker.cpp.
void llvm::ContextTrieNode::setFunctionSamples | ( | FunctionSamples * | FSamples | ) |
Definition at line 122 of file SampleContextTracker.cpp.
Referenced by llvm::SampleContextTracker::SampleContextTracker().
void llvm::ContextTrieNode::setParentContext | ( | ContextTrieNode * | Parent | ) |
Definition at line 143 of file SampleContextTracker.cpp.