Home
last modified time | relevance | path

Searched refs:ContextNode (Results 1 – 6 of 6) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DSampleContextTracker.cpp279 ContextTrieNode *ContextNode = getContextFor(DIL); in getContextSamplesFor() local
280 if (!ContextNode) in getContextSamplesFor()
289 FunctionSamples *Samples = ContextNode->getFunctionSamples(); in getContextSamplesFor()
290 if (Samples && ContextNode->getParentContext() != &RootContext) in getContextSamplesFor()
519 ContextTrieNode *ContextNode = &RootContext; in getContextFor() local
521 while (--I >= 0 && ContextNode) { in getContextFor()
524 ContextNode = ContextNode->getChildContext(CallSite, CalleeName); in getContextFor()
528 return ContextNode; in getContextFor()
536 ContextTrieNode *ContextNode = &RootContext; in getOrCreateContextPath() local
542 ContextNode = in getOrCreateContextPath()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-profgen/
H A DProfileGenerator.cpp741 CSProfileGenerator::getOrCreateFunctionSamples(ContextTrieNode *ContextNode, in getOrCreateFunctionSamples() argument
743 FunctionSamples *FProfile = ContextNode->getFunctionSamples(); in getOrCreateFunctionSamples()
747 FProfile->setName(ContextNode->getFuncName()); in getOrCreateFunctionSamples()
748 ContextNode->setFunctionSamples(FProfile); in getOrCreateFunctionSamples()
768 ContextTrieNode *ContextNode = in getOrCreateContextNode() local
770 getOrCreateFunctionSamples(ContextNode, WasLeafInlined); in getOrCreateContextNode()
771 return ContextNode; in getOrCreateContextNode()
832 ContextTrieNode *ContextNode = &getRootContext(); in generateLineNumBasedProfile() local
837 ContextNode = in generateLineNumBasedProfile()
840 populateBodySamplesForFunction(*ContextNode->getFunctionSamples(), in generateLineNumBasedProfile()
[all …]
H A DCSPreInliner.cpp141 uint32_t CSPreInliner::getFuncSize(const ContextTrieNode *ContextNode) { in getFuncSize() argument
143 return Binary.getFuncSizeForContext(ContextNode); in getFuncSize()
145 return ContextNode->getFunctionSamples()->getBodySamples().size(); in getFuncSize()
H A DCSPreInliner.h80 uint32_t getFuncSize(const ContextTrieNode *ContextNode);
H A DProfiledBinary.h483 uint32_t getFuncSizeForContext(const ContextTrieNode *ContextNode) { in getFuncSizeForContext() argument
484 return FuncSizeTracker.getFuncSizeForContext(ContextNode); in getFuncSizeForContext()
H A DProfileGenerator.h308 FunctionSamples *getOrCreateFunctionSamples(ContextTrieNode *ContextNode,