| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | NonTrivialTypesLibcMemoryCallsCheck.cpp | 112 if (const auto *Caller = Result.Nodes.getNodeAs<CallExpr>("lazyConstruct")) { in check() local 113 diag(Caller->getBeginLoc(), "calling %0 on a non-trivially default " in check() 115 << cast<NamedDecl>(Caller->getCalleeDecl()); in check() 117 if (const auto *Caller = Result.Nodes.getNodeAs<CallExpr>("lazyCopy")) { in check() local 118 diag(Caller->getBeginLoc(), in check() 120 << cast<NamedDecl>(Caller->getCalleeDecl()); in check() 122 if (const auto *Caller = Result.Nodes.getNodeAs<CallExpr>("lazyCompare")) { in check() local 123 diag(Caller->getBeginLoc(), in check() 125 << cast<NamedDecl>(Caller->getCalleeDecl()); in check()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InlineAdvisor.cpp | 92 << NV("Caller", Caller) in recordUnsuccessfulInliningImpl() 112 << NV("Caller", Caller) in recordUnsuccessfulInliningImpl() 133 Function &Caller = *CB.getCaller(); in getDefaultInlineAdvice() local 244 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred() 272 bool ApplyLastCallBonus = Caller->hasLocalLinkage() && !Caller->hasOneUse(); in shouldBeDeferred() 276 for (User *U : Caller->users()) { in shouldBeDeferred() 282 if (!CS2 || CS2->getCalledFunction() != Caller) { in shouldBeDeferred() 376 Function *Caller = CB.getCaller(); in shouldInline() local 391 << NV("Caller", Caller) in shouldInline() 492 << ore::NV("Caller", &Caller) << "'"; in emitInlinedInto() [all …]
|
| H A D | FunctionPropertiesAnalysis.cpp | 131 : FPI(FPI), CallSiteBB(*CB.getParent()), Caller(*CallSiteBB.getParent()) { in FunctionPropertiesUpdater() 142 LikelyToChangeBBs.insert(&*Caller.begin()); in FunctionPropertiesUpdater() 207 FAM.getResult<DominatorTreeAnalysis>(const_cast<Function &>(Caller)); in finish() 209 if (&CallSiteBB != &*Caller.begin()) in finish() 210 Reinclude.insert(&*Caller.begin()); in finish() 248 const auto &LI = FAM.getResult<LoopAnalysis>(const_cast<Function &>(Caller)); in finish() 249 FPI.updateAggregateStats(Caller, LI); in finish() 250 assert(FPI == FunctionPropertiesInfo::getFunctionPropertiesInfo(Caller, FAM)); in finish()
|
| H A D | MLInlineAdvisor.cpp | 231 Function *Caller = Advice.getCaller(); in onSuccessfulInlining() local 239 FAM.invalidate(*Caller, PA); in onSuccessfulInlining() 254 getCachedFPI(*Caller).DirectCallsToDefinedFunctions; in onSuccessfulInlining() 286 auto &Caller = *CB.getCaller(); in getAdviceImpl() local 293 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getAdviceImpl() 301 &Caller == &Callee) in getAdviceImpl() 344 auto &CallerBefore = getCachedFPI(Caller); in getAdviceImpl() 350 getInitialFunctionLevel(Caller); in getAdviceImpl() 433 : (Advisor->getLocalCalls(*Caller) + in MLInlineAdvice() 435 PreInlineCallerFPI(Advisor->getCachedFPI(*Caller)) { in MLInlineAdvice() [all …]
|
| H A D | ReplayInlineAdvisor.cpp | 61 StringRef Caller = CalleeCaller.second.rsplit("'").first; in ReplayInlineAdvisor() local 65 if (Callee.empty() || Caller.empty() || CallSite.empty()) { in ReplayInlineAdvisor() 73 CallersToReplay.insert(Caller); in ReplayInlineAdvisor() 96 Function &Caller = *CB.getCaller(); in getAdviceImpl() local 97 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getAdviceImpl()
|
| H A D | CallPrinter.cpp | 76 for (Function *Caller : Callers) in CallGraphDOTInfo() 77 localSumFreq += getNumOfCalls(*Caller, F); in CallGraphDOTInfo() 183 Function *Caller = Node->getFunction(); in getEdgeAttributes() local 184 if (Caller == nullptr || Caller->isDeclaration()) in getEdgeAttributes() 191 uint64_t Counter = getNumOfCalls(*Caller, *Callee); in getEdgeAttributes()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-opt-report/Inputs/ |
| H A D | or.yaml | 9 - Caller: foo 20 - Caller: TestH 31 - Caller: TestH 46 - Caller: TestH 56 - Caller: TestH 71 - Caller: TestH 81 - Caller: TestH 116 - Caller: Test 127 - Caller: Test 142 - Caller: Test [all …]
|
| H A D | q3.yaml | 9 - Caller: foo 20 - Caller: quack 35 - Caller: quack 55 - Caller: quack2 70 - Caller: quack2
|
| H A D | q.yaml | 9 - Caller: foo 20 - Caller: quack 35 - Caller: quack 55 - Caller: quack2 70 - Caller: quack2
|
| H A D | qx.yaml | 9 - Caller: _Z3fooi 20 - Caller: _Z5quackv 35 - Caller: _Z5quackv 55 - Caller: _Z6quack2v 70 - Caller: _Z6quack2v
|
| H A D | dm.yaml | 9 - Caller: foo 22 - Caller: quack 39 - Caller: quack 51 - Caller: quack2 68 - Caller: quack2
|
| H A D | q2.yaml | 9 - Caller: foo 20 - Caller: quack 35 - Caller: quack 65 - Caller: quack2 80 - Caller: quack2
|
| /llvm-project-15.0.7/llvm/test/tools/opt-viewer/Inputs/basic/ |
| H A D | or.yaml | 9 - Caller: foo 20 - Caller: TestH 31 - Caller: TestH 46 - Caller: TestH 56 - Caller: TestH 71 - Caller: TestH 81 - Caller: TestH 116 - Caller: Test 127 - Caller: Test 142 - Caller: Test [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SignalHandlerCheck.cpp | 284 Expr *findCallExpr(const CallGraphNode *Caller, const CallGraphNode *Callee) { in findCallExpr() argument 286 Caller->callees(), [Callee](const CallGraphNode::CallRecord &Call) { in findCallExpr() 289 assert(FoundCallee != Caller->end() && in findCallExpr() 429 const CallGraphNode *Caller = Itr.getPath(CallLevel + 1), *Callee = nullptr; in reportHandlerChain() local 431 Callee = Caller; in reportHandlerChain() 432 Caller = Itr.getPath(CallLevel); in reportHandlerChain() 433 const Expr *CE = findCallExpr(Caller, Callee); in reportHandlerChain() 437 << cast<FunctionDecl>(Caller->getDecl()); in reportHandlerChain() 443 << cast<FunctionDecl>(Caller->getDecl()) << HandlerRef->getSourceRange(); in reportHandlerChain()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | InterpFrame.cpp | 20 InterpFrame::InterpFrame(InterpState &S, Function *Func, InterpFrame *Caller, in InterpFrame() argument 22 : Caller(Caller), S(S), Func(Func), This(std::move(This)), RetPC(RetPC), in InterpFrame() 140 if (Caller->Caller) in getCaller() 141 return Caller; in getCaller() 146 if (!Caller->Func) in getCallLocation() 148 return S.getLocation(Caller->Func, RetPC - sizeof(uintptr_t)); in getCallLocation()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 770 E = Caller->end(); in HandleInlinedEHPad() 1339 const Function *Caller = CB.getCaller(); in UpdateCallGraphAfterInlining() local 1342 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining() 1429 Function *Caller = TheCall->getFunction(); in HandleByValArgument() local 1827 Function *Caller = OrigBB->getParent(); in InlineFunction() local 1841 if (!Caller->hasGC()) in InlineFunction() 1842 Caller->setGC(CalledFunc->getGC()); in InlineFunction() 1857 Caller->hasPersonalityFn() in InlineFunction() 2297 Module *M = Caller->getParent(); in InlineFunction() 2380 {Caller->getReturnType()}); in InlineFunction() [all …]
|
| H A D | CallGraphUpdater.cpp | 150 Function *Caller = OldCS.getCaller(); in replaceCallSite() local 153 CallGraphNode *CallerNode = (*CG)[Caller]; in replaceCallSite() 167 Function *Caller = CS.getCaller(); in removeCallSite() local 168 CallGraphNode *CallerNode = (*CG)[Caller]; in removeCallSite()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 207 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument 210 CUDAFunctionTarget CallerTarget = IdentifyCUDATarget(Caller); in IdentifyCUDAPreference() 273 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument 282 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches() 797 if (!Caller) in CheckCUDACall() 804 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCUDACall() 806 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall() 833 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second) in CheckCUDACall() 838 << IdentifyCUDATarget(Caller); in CheckCUDACall() 868 if (!Caller) in CUDACheckLambdaCapture() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | AlwaysInliner.cpp | 63 Function *Caller = CB->getCaller(); in run() local 64 OptimizationRemarkEmitter ORE(Caller); in run() 70 &FAM.getResult<BlockFrequencyAnalysis>(*Caller), in run() 80 << ore::NV("Caller", Caller) in run() 87 ORE, DLoc, Block, F, *Caller, in run() 92 AttributeFuncs::mergeAttributesForInlining(*Caller, F); in run()
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | CallGraph.cpp | 101 for (NodeId Caller : Func.predecessors()) { in normalizeArcWeights() local 102 ArcIterator Arc = findArc(Caller, FuncId); in normalizeArcWeights() 106 assert(Arc->AvgCallOffset <= size(Caller) && in normalizeArcWeights() 116 for (NodeId Caller : Func.predecessors()) { in adjustArcWeights() local 117 ArcIterator Arc = findArc(Caller, FuncId); in adjustArcWeights()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | MemoryBuiltinsTest.cpp | 35 std::unique_ptr<CallInst> Caller( in TEST() local 39 EXPECT_FALSE(isAllocLikeFn(Caller.get(), TLI)); in TEST() 43 EXPECT_FALSE(isAllocationFn(Caller.get(), TLI)); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Attributes.cpp | 1904 if (!Caller.hasStackProtectorFnAttr()) in adjustCallerSSPLevel() 1916 Caller.removeFnAttrs(OldSSPAttr); in adjustCallerSSPLevel() 1917 Caller.addFnAttr(Attribute::StackProtectReq); in adjustCallerSSPLevel() 1920 Caller.removeFnAttrs(OldSSPAttr); in adjustCallerSSPLevel() 1925 Caller.addFnAttr(Attribute::StackProtect); in adjustCallerSSPLevel() 1931 if (!Caller.hasFnAttribute("probe-stack") && in adjustCallerStackProbes() 1951 Caller.addFnAttr(CalleeAttr); in adjustCallerStackProbeSize() 1954 Caller.addFnAttr(CalleeAttr); in adjustCallerStackProbeSize() 1978 Caller.addFnAttr(CalleeAttr); in adjustMinLegalVectorWidth() 2042 return hasCompatibleFnAttrs(Caller, Callee); in areInlineCompatible() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | HelperDeclRefGraph.cpp | 38 void HelperDeclRefGraph::addEdge(const Decl *Caller, const Decl *Callee) { in addEdge() argument 39 assert(Caller); in addEdge() 46 if (Caller == Callee) return; in addEdge() 49 CallGraphNode *CallerNode = getOrInsertNode(const_cast<Decl *>(Caller)); in addEdge()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUOpenCLEnqueuedBlockLowering.cpp | 80 auto *Caller = CI->getParent()->getParent(); in collectCallers() local 81 if (Callers.insert(Caller).second) in collectCallers() 82 collectCallers(Caller, Callers); in collectCallers()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/ |
| H A D | ProfiledCallGraph.h | 87 ContextTrieNode *Caller = Queue.front(); in ProfiledCallGraph() local 89 FunctionSamples *CallerSamples = Caller->getFunctionSamples(); in ProfiledCallGraph() 97 for (auto &Child : Caller->getAllChildContext()) { in ProfiledCallGraph() 120 addProfiledCall(ContextTracker.getFuncNameFor(Caller), in ProfiledCallGraph()
|