Home
last modified time | relevance | path

Searched refs:Caller (Results 1 – 25 of 98) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp95 << NV("Caller", Caller) in recordUnsuccessfulInliningImpl()
115 << NV("Caller", Caller) in recordUnsuccessfulInliningImpl()
136 Function &Caller = *CB.getCaller(); in getDefaultInlineAdvice() local
252 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred()
280 bool ApplyLastCallBonus = Caller->hasLocalLinkage() && !Caller->hasOneUse(); in shouldBeDeferred()
284 for (User *U : Caller->users()) { in shouldBeDeferred()
290 if (!CS2 || CS2->getCalledFunction() != Caller) { in shouldBeDeferred()
384 Function *Caller = CB.getCaller(); in shouldInline() local
399 << NV("Caller", Caller) in shouldInline()
500 << ore::NV("Caller", &Caller) << "'"; in emitInlinedInto()
[all …]
H A DMLInlineAdvisor.cpp273 Function *Caller = Advice.getCaller(); in onSuccessfulInlining() local
281 FAM.invalidate(*Caller, PA); in onSuccessfulInlining()
296 getCachedFPI(*Caller).DirectCallsToDefinedFunctions; in onSuccessfulInlining()
328 auto &Caller = *CB.getCaller(); in getAdviceImpl() local
335 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getAdviceImpl()
343 &Caller == &Callee) in getAdviceImpl()
386 auto &CallerBefore = getCachedFPI(Caller); in getAdviceImpl()
392 getInitialFunctionLevel(Caller); in getAdviceImpl()
485 : (Advisor->getLocalCalls(*Caller) + in MLInlineAdvice()
487 PreInlineCallerFPI(Advisor->getCachedFPI(*Caller)) { in MLInlineAdvice()
[all …]
H A DReplayInlineAdvisor.cpp61 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 DFunctionPropertiesAnalysis.cpp311 : FPI(FPI), CallSiteBB(*CB.getParent()), Caller(*CallSiteBB.getParent()) { in FunctionPropertiesUpdater()
322 LikelyToChangeBBs.insert(&*Caller.begin()); in FunctionPropertiesUpdater()
387 FAM.getResult<DominatorTreeAnalysis>(const_cast<Function &>(Caller)); in finish()
389 if (&CallSiteBB != &*Caller.begin()) in finish()
390 Reinclude.insert(&*Caller.begin()); in finish()
428 const auto &LI = FAM.getResult<LoopAnalysis>(const_cast<Function &>(Caller)); in finish()
429 FPI.updateAggregateStats(Caller, LI); in finish()
H A DCallPrinter.cpp76 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()
H A DImportedFunctionsInliningStatistics.cpp48 void ImportedFunctionsInliningStatistics::recordInline(const Function &Caller, in recordInline() argument
51 InlineGraphNode &CallerNode = createInlineGraphNode(Caller); in recordInline()
67 auto It = NodesMap.find(Caller.getName()); in recordInline()
H A DInlineCost.cpp807 if (!Caller->getEntryCount()) in isCostBenefitAnalysisEnabled()
982 auto *Caller = CandidateCall.getFunction(); in finalizeAnalysis() local
983 if (Caller->hasMinSize()) { in finalizeAnalysis()
1282 if (Caller->hasMinSize()) { in finalizeAnalysis()
1908 Function *Caller = Call.getCaller(); in updateThreshold() local
1945 if (Caller->hasMinSize()) { in updateThreshold()
1953 } else if (Caller->hasOptSize()) in updateThreshold()
1958 if (!Caller->hasMinSize()) { in updateThreshold()
2712 for (User *U : Caller->users()) { in analyze()
3018 Function *Caller = Call.getCaller(); in getAttributeBasedInliningDecision() local
[all …]
H A DMemoryProfileInfo.cpp203 for (auto &Caller : Node->Callers) { in buildMIBNodes() local
204 MIBCallStack.push_back(Caller.first); in buildMIBNodes()
206 buildMIBNodes(Caller.second, Ctx, MIBCallStack, MIBNodes, in buildMIBNodes()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpFrame.cpp25 InterpFrame *Caller, CodePtr RetPC) in InterpFrame() argument
26 : Caller(Caller), S(S), Depth(Caller ? Caller->Depth + 1 : 0), Func(Func), in InterpFrame()
187 if (Caller->Caller) in getCaller()
188 return Caller; in getCaller()
193 if (!Caller->Func) in getCallRange()
195 return S.getRange(Caller->Func, RetPC - sizeof(uintptr_t)); in getCallRange()
231 if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller) in getSource()
232 return Caller->getSource(RetPC); in getSource()
246 if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller) in getRange()
247 return Caller->getRange(RetPC); in getRange()
H A DInterpState.cpp24 InterpFrame *Next = Current->Caller; in ~InterpState()
37 if (Current && Current->Caller) in getCurrentFrame()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp225 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument
309 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
318 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches()
693 if (!Caller) in CUDARecordImplicitHostDeviceFuncUsedByDevice()
704 (isCUDAImplicitHostDeviceFunction(Caller) && in CUDARecordImplicitHostDeviceFuncUsedByDevice()
871 if (!Caller) in CheckCUDACall()
880 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall()
907 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second) in CheckCUDACall()
912 << IdentifyCUDATarget(Caller); in CheckCUDACall()
942 if (!Caller) in CUDACheckLambdaCapture()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp764 E = Caller->end(); in HandleInlinedEHPad()
1553 Function *Caller = TheCall->getFunction(); in HandleByValArgument() local
2104 Function *Caller = OrigBB->getParent(); in InlineFunction() local
2118 if (!Caller->hasGC()) in InlineFunction()
2119 Caller->setGC(CalledFunc->getGC()); in InlineFunction()
2134 Caller->hasPersonalityFn() in InlineFunction()
2672 {Caller->getReturnType()}); in InlineFunction()
2725 Type *NewRetTy = Caller->getReturnType(); in InlineFunction()
2781 Caller->back().eraseFromParent(); in InlineFunction()
2857 Caller->splice(AfterCallBB->getIterator(), Caller, FirstNewBlock, in InlineFunction()
[all …]
H A DCallGraphUpdater.cpp152 Function *Caller = OldCS.getCaller(); in replaceCallSite() local
155 CallGraphNode *CallerNode = (*CG)[Caller]; in replaceCallSite()
169 Function *Caller = CS.getCaller(); in removeCallSite() local
170 CallGraphNode *CallerNode = (*CG)[Caller]; in removeCallSite()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp2083 if (!Caller.hasStackProtectorFnAttr()) in adjustCallerSSPLevel()
2095 Caller.removeFnAttrs(OldSSPAttr); in adjustCallerSSPLevel()
2096 Caller.addFnAttr(Attribute::StackProtectReq); in adjustCallerSSPLevel()
2099 Caller.removeFnAttrs(OldSSPAttr); in adjustCallerSSPLevel()
2104 Caller.addFnAttr(Attribute::StackProtect); in adjustCallerSSPLevel()
2110 if (!Caller.hasFnAttribute("probe-stack") && in adjustCallerStackProbes()
2130 Caller.addFnAttr(CalleeAttr); in adjustCallerStackProbeSize()
2133 Caller.addFnAttr(CalleeAttr); in adjustCallerStackProbeSize()
2157 Caller.addFnAttr(CalleeAttr); in adjustMinLegalVectorWidth()
2221 return hasCompatibleFnAttrs(Caller, Callee); in areInlineCompatible()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAlwaysInliner.cpp60 Function *Caller = CB->getCaller(); in AlwaysInlineImpl() local
61 OptimizationRemarkEmitter ORE(Caller); in AlwaysInlineImpl()
66 GetBFI ? &GetBFI(*Caller) : nullptr, in AlwaysInlineImpl()
76 << ore::NV("Caller", Caller) in AlwaysInlineImpl()
83 ORE, DLoc, Block, F, *Caller, in AlwaysInlineImpl()
H A DMemProfContextDisambiguation.cpp327 ContextNode *Caller; member
338 : Callee(Callee), Caller(Caller), AllocTypes(AllocType), in ContextEdge()
814 if (Edge->Caller == Caller) { in addOrUpdateCallerEdge()
823 Caller->CalleeEdges.push_back(Edge); in addOrUpdateCallerEdge()
855 if (Edge->Caller == Caller) in findEdgeFromCaller()
1764 if (Caller == Edge->Caller) { in calleesMatch()
1806 AddEdge(Edge->Caller, CurCalleeNode); in calleesMatch()
2480 if (!Visited.count(Edge->Caller) && !Edge->Caller->CloneOf) { in identifyClones()
2772 assert(Caller->hasCall()); in assignFunctions()
2858 if (!CE->Caller->hasCall()) in assignFunctions()
[all …]
H A DSyntheticCountsPropagation.cpp108 Function *Caller = CB.getCaller(); in run() local
109 auto &BFI = FAM.getResult<BlockFrequencyAnalysis>(*Caller); in run()
117 BBCount *= Counts[Caller]; in run()
H A DPartialInlining.cpp729 Function *Caller = CB.getCaller(); in shouldPartialInline() local
751 << NV("Caller", Caller) in shouldPartialInline()
767 const DataLayout &DL = Caller->getParent()->getDataLayout(); in shouldPartialInline()
909 auto ComputeCurrBFI = [&,this](Function *Caller) { in computeCallsiteToProfCountMap() argument
912 DominatorTree DT(*Caller); in computeCallsiteToProfCountMap()
914 BranchProbabilityInfo BPI(*Caller, LI); in computeCallsiteToProfCountMap()
919 CurrentCallerBFI = &(GetBFI(*Caller)); in computeCallsiteToProfCountMap()
928 Function *Caller = CB->getCaller(); in computeCallsiteToProfCountMap() local
929 if (CurrentCaller != Caller) { in computeCallsiteToProfCountMap()
930 CurrentCaller = Caller; in computeCallsiteToProfCountMap()
[all …]
H A DGlobalDCE.cpp158 void GlobalDCEPass::ScanVTableLoad(Function *Caller, Metadata *TypeId, in ScanVTableLoad() argument
166 *Caller->getParent(), VTable); in ScanVTableLoad()
180 LLVM_DEBUG(dbgs() << "vfunc dep " << Caller->getName() << " -> " in ScanVTableLoad()
182 GVDependencies[Caller].insert(Callee); in ScanVTableLoad()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DProfiledCallGraph.h92 ContextTrieNode *Caller = Queue.front();
94 FunctionSamples *CallerSamples = Caller->getFunctionSamples();
102 for (auto &Child : Caller->getAllChildContext()) {
124 addProfiledCall(Caller->getFuncName(), Callee->getFuncName(), Weight);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp349 Function *Caller = CS.getInstruction()->getFunction(); in updateImpl() local
350 LLVM_DEBUG(dbgs() << "[AAUniformWorkGroupSize] Call " << Caller->getName() in updateImpl()
354 *this, IRPosition::function(*Caller), DepClassTy::REQUIRED); in updateImpl()
708 Function *Caller = CS.getInstruction()->getFunction(); in updateImplImpl() local
709 LLVM_DEBUG(dbgs() << '[' << getName() << "] Call " << Caller->getName() in updateImplImpl()
713 *this, IRPosition::function(*Caller), DepClassTy::REQUIRED); in updateImplImpl()
852 Function *Caller = CS.getInstruction()->getFunction(); in updateImpl() local
854 LLVM_DEBUG(dbgs() << '[' << getName() << "] Call " << Caller->getName() in updateImpl()
858 *this, IRPosition::function(*Caller), DepClassTy::REQUIRED); in updateImpl()
866 *Caller, in updateImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/HipStdPar/
H A DHipStdPar.cpp182 auto Caller = CB->getParent()->getParent(); in checkIfSupported() local
184 Caller->getContext().diagnose( in checkIfSupported()
185 DiagnosticInfoUnsupported(*Caller, W, CB->getDebugLoc(), DS_Error)); in checkIfSupported()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp97 bool WebAssemblyTTIImpl::areInlineCompatible(const Function *Caller, in areInlineCompatible() argument
108 TM.getSubtargetImpl(*Caller)->getFeatureBits(); in areInlineCompatible()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DWrapperFunctionUtils.h446 static Error call(const CallerFn &Caller, RetT &Result, in call() argument
461 Caller(ArgBuffer.data(), ArgBuffer.size()); in call()
475 static void callAsync(AsyncCallerFn &&Caller, in callAsync() argument
512 Caller(std::move(SendSerializedResult), ArgBuffer.data(), ArgBuffer.size()); in callAsync()
556 static Error call(const CallerFn &Caller, const ArgTs &...Args) { in call() argument
558 return WrapperFunction<SPSEmpty(SPSTagTs...)>::call(Caller, BE, Args...); in call()
563 static void callAsync(AsyncCallerFn &&Caller, in callAsync() argument
567 std::forward<AsyncCallerFn>(Caller), in callAsync()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DFunctionPropertiesAnalysis.h177 return isUpdateValid(Caller, FPI, FAM); in finishAndTest()
183 Function &Caller; variable

1234