Home
last modified time | relevance | path

Searched refs:CallerNode (Results 1 – 8 of 8) sorted by relevance

/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DCallGraphUpdater.cpp153 CallGraphNode *CallerNode = (*CG)[Caller]; in replaceCallSite() local
154 if (llvm::none_of(*CallerNode, [&OldCS](const CallGraphNode::CallRecord &CR) { in replaceCallSite()
158 CallerNode->replaceCallEdge(OldCS, NewCS, NewCalleeNode); in replaceCallSite()
168 CallGraphNode *CallerNode = (*CG)[Caller]; in removeCallSite() local
169 CallerNode->removeCallEdgeFor(CS); in removeCallSite()
H A DInlineFunction.cpp1475 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining() local
1483 if (CalleeNode == CallerNode) { in UpdateCallGraphAfterInlining()
1525 CallerNode->addCalledFunction(NewCall, CG[F]); in UpdateCallGraphAfterInlining()
1530 CallerNode->addCalledFunction(NewCall, I->second); in UpdateCallGraphAfterInlining()
1535 CallerNode->removeCallEdgeFor(*cast<CallBase>(&CB)); in UpdateCallGraphAfterInlining()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DImportedFunctionsInliningStatistics.cpp51 InlineGraphNode &CallerNode = createInlineGraphNode(Caller); in recordInline() local
55 if (!CallerNode.Imported && !CalleeNode.Imported) { in recordInline()
64 CallerNode.InlinedCallees.push_back(&CalleeNode); in recordInline()
65 if (!CallerNode.Imported) { in recordInline()
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/
H A DSampleContextTracker.cpp262 ContextTrieNode *CallerNode = getContextFor(DIL); in getIndirectCalleeContextSamplesFor() local
264 for (auto &It : CallerNode->getAllChildContext()) { in getIndirectCalleeContextSamplesFor()
382 ContextTrieNode *CallerNode = getContextFor(DIL); in promoteMergeContextSamplesTree() local
383 if (!CallerNode) in promoteMergeContextSamplesTree()
391 for (auto &It : CallerNode->getAllChildContext()) { in promoteMergeContextSamplesTree()
405 CallerNode->getChildContext(CallSite, CalleeName); in promoteMergeContextSamplesTree()
/openbsd/gnu/llvm/clang/lib/Analysis/
H A DCallGraph.cpp48 CallGraphNode *CallerNode; member in __anone99960a80111::CGBuilder
51 CGBuilder(CallGraph *g, CallGraphNode *N) : G(g), CallerNode(N) {} in CGBuilder()
72 CallerNode->addCallee({CalleeNode, CallExpr}); in addCalledDecl()
/openbsd/gnu/llvm/llvm/tools/llvm-profgen/
H A DProfileGenerator.cpp901 ContextTrieNode *CallerNode = Node; in populateBoundarySamplesForFunction() local
903 if (CallerNode != &getRootContext()) { in populateBoundarySamplesForFunction()
907 CallerNode->getFunctionSamples()->addCalledTargetSamples( in populateBoundarySamplesForFunction()
917 CallerNode->getOrCreateChildContext(CalleeCallSite, CalleeName); in populateBoundarySamplesForFunction()
939 ContextTrieNode *CallerNode = Node.getParentContext(); in populateInferredFunctionSamples() local
942 if (CallerNode == &getRootContext()) in populateInferredFunctionSamples()
946 FunctionSamples &CallerProfile = *getOrCreateFunctionSamples(CallerNode); in populateInferredFunctionSamples()
1169 ContextTrieNode *CallerNode = ContextNode->getParentContext(); in populateBodySamplesWithProbes() local
1170 if (InlinerDesc != nullptr && CallerNode != &getRootContext()) { in populateBodySamplesWithProbes()
1178 *getOrCreateFunctionSamples(CallerNode); in populateBodySamplesWithProbes()
H A DCSPreInliner.cpp108 ContextTrieNode *CallerNode = in getInlineCandidates() local
112 for (auto &Child : CallerNode->getAllChildContext()) { in getInlineCandidates()
H A DProfileGenerator.h326 void populateBoundarySamplesForFunction(ContextTrieNode *CallerNode,