Home
last modified time | relevance | path

Searched refs:Callsite (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-profgen/
H A DCallContext.h20 inline std::string getCallSite(const SampleContextFrame &Callsite) { in getCallSite() argument
21 std::string CallsiteStr = Callsite.FuncName.str(); in getCallSite()
23 CallsiteStr += Twine(Callsite.Location.LineOffset).str(); in getCallSite()
24 if (Callsite.Location.Discriminator > 0) { in getCallSite()
26 CallsiteStr += Twine(Callsite.Location.Discriminator).str(); in getCallSite()
35 for (const auto &Callsite : Context) { in getLocWithContext() local
38 OContextStr << getCallSite(Callsite); in getLocWithContext()
48 for (const auto &Callsite : reverse(Context)) { in getReversedLocWithContext() local
51 OContextStr << getCallSite(Callsite); in getReversedLocWithContext()
H A DProfiledBinary.h541 auto &Callsite = ProbeInlineContext[I]; variable
543 if (Callsite.second == 0 && I != ProbeInlineContext.size() - 1) {
547 InlineContextStack.emplace_back(Callsite.first,
548 LineLocation(Callsite.second, 0));
H A DCSPreInliner.cpp122 LineLocation Callsite = CalleeNode->getCallSiteLoc(); in getInlineCandidates() local
123 if (auto CallTargets = CallerSamples->findCallTargetMapAt(Callsite)) { in getInlineCandidates()
H A DProfiledBinary.cpp75 for (const auto &Callsite : reverse(Context)) { in addInstructionForContext() local
76 StringRef CallerName = Callsite.FuncName; in addInstructionForContext()
77 LineLocation CallsiteLoc = IsLeaf ? LineLocation(0, 0) : Callsite.Location; in addInstructionForContext()
H A DProfileGenerator.cpp609 LineLocation Callsite( in getLeafProfileAndAddTotalSamples() local
613 FunctionProfile->functionSamplesAt(Callsite); in getLeafProfileAndAddTotalSamples()
/llvm-project-15.0.7/bolt/include/bolt/Passes/
H A DIndirectCallPromotion.h113 struct Callsite { struct
121 Callsite(BinaryFunction &BF, const IndirectCallProfile &ICP); argument
122 Callsite(const Location &From, const Location &To, uint64_t Mispreds, in Callsite() argument
175 std::vector<IndirectCallPromotion::Callsite> &Targets,
178 std::vector<Callsite> getCallTargets(BinaryBasicBlock &BB,
182 const std::vector<Callsite> &Targets,
186 const std::vector<Callsite> &Targets, const size_t N,
194 SymTargetsType findCallTargetSymbols(std::vector<Callsite> &Targets,
210 const std::vector<Callsite> &Targets) const;
/llvm-project-15.0.7/bolt/lib/Passes/
H A DIndirectCallPromotion.cpp187 IndirectCallPromotion::Callsite::Callsite(BinaryFunction &BF, in Callsite() function in llvm::bolt::IndirectCallPromotion::Callsite
202 for (const Callsite &S : Targets) { in printDecision()
216 for (const Callsite &S : Targets) { in printDecision()
240 std::vector<Callsite> Targets; in getCallTargets()
271 llvm::sort(Targets, [](const Callsite &A, const Callsite &B) { in getCallTargets()
290 Callsite &A = *Result; in getCallTargets()
291 const Callsite &B = *First; in getCallTargets()
316 Callsite Site(BF, CSP); in getCallTargets()
326 llvm::stable_sort(Targets, [](const Callsite &A, const Callsite &B) { in getCallTargets()
342 for (const Callsite &S : Targets) { in getCallTargets()
[all …]
/llvm-project-15.0.7/llvm/lib/ProfileData/
H A DSampleProf.cpp239 const LineLocation &Callsite) { in getCallSiteHash() argument
242 (((uint64_t)Callsite.LineOffset) << 32) | Callsite.Discriminator; in getCallSiteHash()
493 for (auto &Callsite : Context.getContextFrames()) { in getOrCreateContextPath() local
494 Node = Node->getOrCreateChildFrame(CallSiteLoc, Callsite.FuncName); in getOrCreateContextPath()
495 CallSiteLoc = Callsite.Location; in getOrCreateContextPath()
H A DSampleProfWriter.cpp297 for (auto &Callsite : Frames) { in writeCSNameTableSection() local
298 if (std::error_code EC = writeNameIdx(Callsite.FuncName)) in writeCSNameTableSection()
300 encodeULEB128(Callsite.Location.LineOffset, OS); in writeCSNameTableSection()
301 encodeULEB128(Callsite.Location.Discriminator, OS); in writeCSNameTableSection()
572 for (auto &Callsite : Context.getContextFrames()) in addContext() local
573 SampleProfileWriterBinary::addName(Callsite.FuncName); in addContext()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/
H A DProfiledCallGraph.h110 LineLocation Callsite = Callee->getCallSiteLoc(); in ProfiledCallGraph() local
111 if (auto CallTargets = CallerSamples->findCallTargetMapAt(Callsite)) { in ProfiledCallGraph()
/llvm-project-15.0.7/llvm/test/Verifier/
H A Dvarargs-intrinsic.ll8 ; CHECK: Callsite was not defined with variable arguments!
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DSampleContextTracker.cpp537 for (auto &Callsite : Context.getContextFrames()) { in getOrCreateContextPath() local
541 ContextNode->getOrCreateChildContext(CallSiteLoc, Callsite.FuncName); in getOrCreateContextPath()
544 ContextNode->getChildContext(CallSiteLoc, Callsite.FuncName); in getOrCreateContextPath()
546 CallSiteLoc = Callsite.Location; in getOrCreateContextPath()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp2513 for (auto *Callsite : Intrinsics) in inlineGetBaseAndOffset() local
2514 switch (Callsite->getIntrinsicID()) { in inlineGetBaseAndOffset()
2519 assert(!DVCache.count(Callsite)); in inlineGetBaseAndOffset()
2524 Callsite->replaceAllUsesWith(BaseBC); in inlineGetBaseAndOffset()
2526 BaseBC->takeName(Callsite); in inlineGetBaseAndOffset()
2527 Callsite->eraseFromParent(); in inlineGetBaseAndOffset()
2534 assert(!DVCache.count(Callsite)); in inlineGetBaseAndOffset()
2537 IRBuilder<> Builder(Callsite); in inlineGetBaseAndOffset()
2545 Callsite->replaceAllUsesWith(Offset); in inlineGetBaseAndOffset()
2546 Offset->takeName(Callsite); in inlineGetBaseAndOffset()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dstackmap-fast-isel.ll155 ; Callsite 16
H A Dstackmap.ll490 ; Callsite 16
503 ; Callsite 17
/llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/
H A Dstackmap.ll452 ; Callsite 16
465 ; Callsite 17
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dstackmap.ll407 ; Callsite 16
420 ; Callsite 17
/llvm-project-15.0.7/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp669 for (const auto &Callsite : CallsiteSamples.second) { in remapSamples() local
671 remapSamples(Callsite.second, Remapper, Error); in remapSamples()
1577 auto Callsite = (CallsiteStepStatus == MS_FirstUnique) in computeSampleFunctionInternalOverlap() local
1580 for (const auto &F : Callsite->second) in computeSampleFunctionInternalOverlap()
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/
H A DSampleProf.h1089 const LineLocation &Callsite);
/llvm-project-15.0.7/clang/docs/
H A DUsersManual.rst2198 - Callsite line represents the profile information of an inlined callsite.