| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InlineAdvisor.cpp | 60 << NV("Caller", Caller) << ": " in recordUnsuccessfulInliningImpl() 67 emitInlinedInto(ORE, DLoc, Block, *Callee, *Caller, *OIC); in recordInliningWithCalleeDeletedImpl() 72 emitInlinedInto(ORE, DLoc, Block, *Callee, *Caller, *OIC); in recordInliningImpl() 77 Function &Caller = *CB.getCaller(); in getDefaultInlineAdvice() local 79 FAM.getResult<ModuleAnalysisManagerFunctionProxy>(Caller) in getDefaultInlineAdvice() 200 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred() 228 bool ApplyLastCallBonus = Caller->hasLocalLinkage() && !Caller->hasOneUse(); in shouldBeDeferred() 232 for (User *U : Caller->users()) { in shouldBeDeferred() 238 if (!CS2 || CS2->getCalledFunction() != Caller) { in shouldBeDeferred() 332 Function *Caller = CB.getCaller(); in shouldInline() local [all …]
|
| H A D | MLInlineAdvisor.cpp | 141 Function *Caller = Advice.getCaller(); in onSuccessfulInlining() local 148 FAM.invalidate(*Caller, PA); in onSuccessfulInlining() 151 getIRSize(*Caller) + (CalleeWasDeleted ? 0 : Advice.CalleeIRSize); in onSuccessfulInlining() 162 FAM.getResult<FunctionPropertiesAnalysis>(*Caller) in onSuccessfulInlining() 184 auto &Caller = *CB.getCaller(); in getAdviceImpl() local 191 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getAdviceImpl() 199 &Caller == &Callee) in getAdviceImpl() 242 auto &CallerBefore = FAM.getResult<FunctionPropertiesAnalysis>(Caller); in getAdviceImpl() 248 FunctionLevels[&Caller]); in getAdviceImpl()
|
| H A D | CallPrinter.cpp | 71 for (Function *Caller : Callers) in CallGraphDOTInfo() 72 localSumFreq += getNumOfCalls(*Caller, F); in CallGraphDOTInfo() 178 Function *Caller = Node->getFunction(); in getEdgeAttributes() local 179 if (Caller == nullptr || Caller->isDeclaration()) in getEdgeAttributes() 186 uint64_t Counter = getNumOfCalls(*Caller, *Callee); in getEdgeAttributes()
|
| H A D | InlineCost.cpp | 707 if (!Caller->getEntryCount()) in isCostBenefitAnalysisEnabled() 828 auto *Caller = CandidateCall.getFunction(); in finalizeAnalysis() local 829 if (Caller->hasMinSize()) { in finalizeAnalysis() 1090 if (Caller->hasMinSize()) { in finalizeAnalysis() 1694 Function *Caller = Call.getCaller(); in updateThreshold() local 1731 if (Caller->hasMinSize()) { in updateThreshold() 1739 } else if (Caller->hasOptSize()) in updateThreshold() 1744 if (!Caller->hasMinSize()) { in updateThreshold() 2485 for (User *U : Caller->users()) { in analyze() 2777 Function *Caller = Call.getCaller(); in getAttributeBasedInliningDecision() local [all …]
|
| H A D | ImportedFunctionsInliningStatistics.cpp | 46 void ImportedFunctionsInliningStatistics::recordInline(const Function &Caller, in recordInline() argument 49 InlineGraphNode &CallerNode = createInlineGraphNode(Caller); in recordInline() 65 auto It = NodesMap.find(Caller.getName()); in recordInline()
|
| H A D | ReplayInlineAdvisor.cpp | 63 Function &Caller = *CB.getCaller(); in getAdviceImpl() local 64 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getAdviceImpl()
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| H A D | Interp.cpp | 42 if (InterpFrame *Caller = S.Current->Caller) { in Ret() local 45 S.Current = Caller; in Ret() 63 if (InterpFrame *Caller = S.Current->Caller) { in RetVoid() local 66 S.Current = Caller; in RetVoid()
|
| H A D | InterpState.cpp | 31 InterpFrame *Next = Current->Caller; in ~InterpState() 44 if (Current && Current->Caller) { in getCurrentFrame()
|
| H A D | InterpFrame.h | 32 InterpFrame *Caller; 35 InterpFrame(InterpState &S, Function *Func, InterpFrame *Caller,
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAnnotateKernelFeatures.cpp | 43 bool propagateUniformWorkGroupAttribute(Function &Caller, Function &Callee); 215 Function *Caller = Node->getFunction(); in processUniformWorkGroupAttribute() local 220 Changed = propagateUniformWorkGroupAttribute(*Caller, *Callee); in processUniformWorkGroupAttribute() 228 Function &Caller, Function &Callee) { in propagateUniformWorkGroupAttribute() argument 233 if (!Caller.hasFnAttribute("uniform-work-group-size")) in propagateUniformWorkGroupAttribute() 234 Caller.addFnAttr("uniform-work-group-size", "false"); in propagateUniformWorkGroupAttribute() 239 if (Caller.hasFnAttribute("uniform-work-group-size")) { in propagateUniformWorkGroupAttribute() 241 if (Caller.getFnAttribute("uniform-work-group-size") in propagateUniformWorkGroupAttribute() 254 Caller.addFnAttr("uniform-work-group-size", "false"); in propagateUniformWorkGroupAttribute()
|
| H A D | AMDGPUOpenCLEnqueuedBlockLowering.cpp | 79 auto *Caller = CI->getParent()->getParent(); in collectCallers() local 80 if (Callers.insert(Caller).second) in collectCallers() 81 collectCallers(Caller, Callers); in collectCallers()
|
| H A D | AMDGPUPropagateAttributes.cpp | 258 Function *Caller = CI->getCaller(); in process() local 259 if (!Caller || !Visited.insert(CI).second) in process() 261 if (!Roots.count(Caller) && !NewRoots.count(Caller)) in process() 264 const FnProperties CallerProps(*TM, *Caller); in process()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 775 E = Caller->end(); in HandleInlinedEHPad() 1313 const Function *Caller = CB.getCaller(); in UpdateCallGraphAfterInlining() local 1316 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining() 1403 Function *Caller = TheCall->getFunction(); in HandleByValArgument() local 1799 Function *Caller = OrigBB->getParent(); in InlineFunction() local 1806 if (!Caller->hasGC()) in InlineFunction() 1807 Caller->setGC(CalledFunc->getGC()); in InlineFunction() 1822 Caller->hasPersonalityFn() in InlineFunction() 2252 Module *M = Caller->getParent(); in InlineFunction() 2361 {Caller->getReturnType()}); in InlineFunction() [all …]
|
| H A D | CallGraphUpdater.cpp | 148 Function *Caller = OldCS.getCaller(); in replaceCallSite() local 151 CallGraphNode *CallerNode = (*CG)[Caller]; in replaceCallSite() 165 Function *Caller = CS.getCaller(); in removeCallSite() local 166 CallGraphNode *CallerNode = (*CG)[Caller]; in removeCallSite()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 205 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument 271 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument 280 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches() 795 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CheckCUDACall() local 796 if (!Caller) in CheckCUDACall() 805 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall() 827 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second) in CheckCUDACall() 832 << IdentifyCUDATarget(Caller); in CheckCUDACall() 861 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CUDACheckLambdaCapture() local 862 if (!Caller) in CUDACheckLambdaCapture() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Attributes.cpp | 1970 Caller.addFnAttr(Attribute::StackProtectReq); in adjustCallerSSPLevel() 1974 Caller.addFnAttr(Attribute::StackProtectStrong); in adjustCallerSSPLevel() 1978 Caller.addFnAttr(Attribute::StackProtect); in adjustCallerSSPLevel() 1984 if (!Caller.hasFnAttribute("probe-stack") && in adjustCallerStackProbes() 2004 Caller.addFnAttr(CalleeAttr); in adjustCallerStackProbeSize() 2007 Caller.addFnAttr(CalleeAttr); in adjustCallerStackProbeSize() 2031 Caller.addFnAttr(CalleeAttr); in adjustMinLegalVectorWidth() 2035 Caller.removeFnAttr("min-legal-vector-width"); in adjustMinLegalVectorWidth() 2045 Caller.addFnAttr(Attribute::NullPointerIsValid); in adjustNullPointerValidAttr() 2095 return hasCompatibleFnAttrs(Caller, Callee); in areInlineCompatible() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AlwaysInliner.cpp | 67 Function *Caller = CB->getCaller(); in run() local 68 OptimizationRemarkEmitter ORE(Caller); in run() 76 emitInlinedInto(ORE, CB->getDebugLoc(), CB->getParent(), F, *Caller, in run() 90 AttributeFuncs::mergeAttributesForInlining(*Caller, F); in run()
|
| H A D | SyntheticCountsPropagation.cpp | 114 Function *Caller = CB.getCaller(); in run() local 115 auto &BFI = FAM.getResult<BlockFrequencyAnalysis>(*Caller); in run() 123 BBCount *= Counts[Caller]; in run()
|
| H A D | Inliner.cpp | 144 static void mergeInlinedArrayAllocas(Function *Caller, InlineFunctionInfo &IFI, in mergeInlinedArrayAllocas() argument 253 Function *Caller = CB.getCaller(); in inlineCallIfPossible() local 264 ImportedFunctionsStats.recordInline(*Caller, *Callee); in inlineCallIfPossible() 266 AttributeFuncs::mergeAttributesForInlining(*Caller, *Callee); in inlineCallIfPossible() 269 mergeInlinedArrayAllocas(Caller, IFI, InlinedArrayAllocas, InlineHistory); in inlineCallIfPossible() 397 Function *Caller = CB.getCaller(); in inlineCallsImpl() local 404 bool IsTriviallyDead = isInstructionTriviallyDead(&CB, &GetTLI(*Caller)); in inlineCallsImpl() 422 OptimizationRemarkEmitter ORE(Caller); in inlineCallsImpl() 438 CG[Caller]->removeCallEdgeFor(CB); in inlineCallsImpl() 459 << NV("Caller", Caller) << ": " in inlineCallsImpl() [all …]
|
| H A D | PartialInlining.cpp | 783 Function *Caller = CB.getCaller(); in shouldPartialInline() local 805 << NV("Caller", Caller) in shouldPartialInline() 821 const DataLayout &DL = Caller->getParent()->getDataLayout(); in shouldPartialInline() 962 auto ComputeCurrBFI = [&,this](Function *Caller) { in computeCallsiteToProfCountMap() argument 965 DominatorTree DT(*Caller); in computeCallsiteToProfCountMap() 967 BranchProbabilityInfo BPI(*Caller, LI); in computeCallsiteToProfCountMap() 972 CurrentCallerBFI = &(GetBFI(*Caller)); in computeCallsiteToProfCountMap() 978 Function *Caller = CB->getCaller(); in computeCallsiteToProfCountMap() local 979 if (CurrentCaller != Caller) { in computeCallsiteToProfCountMap() 980 CurrentCaller = Caller; in computeCallsiteToProfCountMap() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | MLInlineAdvisor.h | 77 : Advisor->getIRSize(*Caller)), in MLInlineAdvice() 82 : (Advisor->getLocalCalls(*Caller) + in MLInlineAdvice() 91 Function *getCaller() const { return Caller; } in getCaller()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | ProfiledCallGraph.h | 64 ContextTrieNode *Caller = Queue.front(); in ProfiledCallGraph() local 73 for (auto &Child : Caller->getAllChildContext()) { in ProfiledCallGraph() 77 addProfiledCall(Caller->getFuncName(), Callee->getFuncName()); in ProfiledCallGraph()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCXX.cpp | 296 auto getArgLoc = [&](CallEventRef<> Caller) -> Optional<SVal> { in computeObjectUnderConstruction() argument 298 Caller->getCalleeStackFrame(currBldrCtx->blockCount()); in computeObjectUnderConstruction() 316 const TypedValueRegion *TVR = Caller->getParameterLocation( in computeObjectUnderConstruction() 317 *Caller->getAdjustedParameterIndex(Idx), currBldrCtx->blockCount()); in computeObjectUnderConstruction() 325 CallEventRef<> Caller = CEMgr.getSimpleCall(CE, State, LCtx); in computeObjectUnderConstruction() local 326 if (Optional<SVal> V = getArgLoc(Caller)) in computeObjectUnderConstruction() 333 CallEventRef<> Caller = in computeObjectUnderConstruction() local 335 if (Optional<SVal> V = getArgLoc(Caller)) in computeObjectUnderConstruction() 340 CallEventRef<> Caller = CEMgr.getObjCMethodCall(ME, State, LCtx); in computeObjectUnderConstruction() local 341 if (Optional<SVal> V = getArgLoc(Caller)) in computeObjectUnderConstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyTargetTransformInfo.cpp | 98 bool WebAssemblyTTIImpl::areInlineCompatible(const Function *Caller, in areInlineCompatible() argument 109 TM.getSubtargetImpl(*Caller)->getFeatureBits(); in areInlineCompatible()
|