LLVM 17.0.0git
|
#include "llvm/Transforms/IPO/SampleContextTracker.h"
Definition at line 35 of file SampleContextTracker.h.
|
inline |
Definition at line 37 of file SampleContextTracker.h.
void llvm::ContextTrieNode::addFunctionSize | ( | uint32_t | FSize | ) |
Definition at line 131 of file SampleContextTracker.cpp.
void llvm::ContextTrieNode::dumpNode | ( | ) |
Definition at line 152 of file SampleContextTracker.cpp.
References llvm::dbgs().
void llvm::ContextTrieNode::dumpTree | ( | ) |
Definition at line 163 of file SampleContextTracker.cpp.
References llvm::dbgs().
Referenced by llvm::SampleContextTracker::dump().
std::map< uint64_t, ContextTrieNode > & llvm::ContextTrieNode::getAllChildContext | ( | ) |
Definition at line 113 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 138 of file SampleContextTracker.cpp.
Referenced by llvm::SampleContextTracker::getContextString(), llvm::SampleContextTracker::getIndirectCalleeContextSamplesFor(), and llvm::SampleContextTracker::promoteMergeContextSamplesTree().
ContextTrieNode * llvm::ContextTrieNode::getChildContext | ( | const LineLocation & | CallSite, |
StringRef | ChildName | ||
) |
Definition at line 31 of file SampleContextTracker.cpp.
References llvm::StringRef::empty(), llvm::sampleprof::FunctionSamples::getCallSiteHash(), and getHottestChildContext().
Referenced by llvm::SampleContextTracker::promoteMergeContextSamplesTree().
StringRef llvm::ContextTrieNode::getFuncName | ( | ) | const |
Definition at line 117 of file SampleContextTracker.cpp.
FunctionSamples * llvm::ContextTrieNode::getFunctionSamples | ( | ) | const |
Definition at line 119 of file SampleContextTracker.cpp.
Referenced by llvm::SampleContextTracker::getCalleeContextSamplesFor(), getHottestChildContext(), llvm::SampleContextTracker::getIndirectCalleeContextSamplesFor(), llvm::SampleContextTracker::promoteMergeContextSamplesTree(), and llvm::SampleContextTracker::SampleContextTracker().
std::optional< uint32_t > llvm::ContextTrieNode::getFunctionSize | ( | ) | const |
Definition at line 127 of file SampleContextTracker.cpp.
ContextTrieNode * llvm::ContextTrieNode::getHottestChildContext | ( | const LineLocation & | CallSite | ) |
Definition at line 44 of file SampleContextTracker.cpp.
References getFunctionSamples(), and llvm::sampleprof::FunctionSamples::getTotalSamples().
Referenced by getChildContext().
ContextTrieNode * llvm::ContextTrieNode::getOrCreateChildContext | ( | const LineLocation & | CallSite, |
StringRef | ChildName, | ||
bool | AllowCreate = true |
||
) |
Definition at line 180 of file SampleContextTracker.cpp.
References assert(), and llvm::sampleprof::FunctionSamples::getCallSiteHash().
ContextTrieNode * llvm::ContextTrieNode::getParentContext | ( | ) | const |
Definition at line 140 of file SampleContextTracker.cpp.
void llvm::ContextTrieNode::removeChildContext | ( | const LineLocation & | CallSite, |
StringRef | ChildName | ||
) |
Definition at line 106 of file SampleContextTracker.cpp.
References llvm::sampleprof::FunctionSamples::getCallSiteHash().
void llvm::ContextTrieNode::setCallSiteLoc | ( | const LineLocation & | Loc | ) |
Definition at line 148 of file SampleContextTracker.cpp.
void llvm::ContextTrieNode::setFunctionSamples | ( | FunctionSamples * | FSamples | ) |
Definition at line 123 of file SampleContextTracker.cpp.
Referenced by llvm::SampleContextTracker::SampleContextTracker().
void llvm::ContextTrieNode::setParentContext | ( | ContextTrieNode * | Parent | ) |
Definition at line 144 of file SampleContextTracker.cpp.