| /freebsd-12.1/contrib/llvm/lib/Transforms/IPO/ |
| H A D | Inliner.cpp | 163 Function *Caller, InlineFunctionInfo &IFI, in mergeInlinedArrayAllocas() argument 281 Function *Caller = CS.getCaller(); in InlineCallIfPossible() local 292 ImportedFunctionsStats.recordInline(*Caller, *Callee); in InlineCallIfPossible() 312 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred() 340 bool ApplyLastCallBonus = Caller->hasLocalLinkage() && !Caller->hasOneUse(); in shouldBeDeferred() 343 for (User *U : Caller->users()) { in shouldBeDeferred() 354 if (!CS2 || CS2.getCalledFunction() != Caller) { in shouldBeDeferred() 427 Function *Caller = CS.getCaller(); in shouldInline() local 621 Function *Caller = CS.getCaller(); in inlineCallsImpl() local 650 OptimizationRemarkEmitter ORE(Caller); in inlineCallsImpl() [all …]
|
| H A D | SyntheticCountsPropagation.cpp | 116 Function *Caller = CS.getCaller(); in run() local 117 auto &BFI = FAM.getResult<BlockFrequencyAnalysis>(*Caller); in run() 125 BBCount *= Counts[Caller]; in run()
|
| H A D | PartialInlining.cpp | 764 Function *Caller = CS.getCaller(); in shouldPartialInline() local 782 << NV("Caller", Caller) in shouldPartialInline() 798 const DataLayout &DL = Caller->getParent()->getDataLayout(); in shouldPartialInline() 919 auto ComputeCurrBFI = [&,this](Function *Caller) { in computeCallsiteToProfCountMap() argument 922 DominatorTree DT(*Caller); in computeCallsiteToProfCountMap() 924 BranchProbabilityInfo BPI(*Caller, LI); in computeCallsiteToProfCountMap() 929 CurrentCallerBFI = &(*GetBFI)(*Caller); in computeCallsiteToProfCountMap() 935 Function *Caller = CS.getCaller(); in computeCallsiteToProfCountMap() local 936 if (CurrentCaller != Caller) { in computeCallsiteToProfCountMap() 937 CurrentCaller = Caller; in computeCallsiteToProfCountMap() [all …]
|
| H A D | ArgumentPromotion.cpp | 819 const Function *Caller = CS.getCaller(); in areFunctionArgsABICompatible() local 821 if (!TTI.areFunctionArgsABICompatible(Caller, Callee, ArgsToPromote) || in areFunctionArgsABICompatible() 822 !TTI.areFunctionArgsABICompatible(Caller, Callee, ByValArgsToTransform)) in areFunctionArgsABICompatible() 1100 Function *Caller = OldCS.getInstruction()->getParent()->getParent(); in runOnSCC() local 1103 CallGraphNode *CallerNode = CG[Caller]; in runOnSCC()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 1192 const Function *Caller = CS.getCaller(); in UpdateCallGraphAfterInlining() local 1195 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining() 1277 Function *Caller = TheCall->getFunction(); in HandleByValArgument() local 1539 Function *Caller = OrigBB->getParent(); in InlineFunction() local 1546 if (!Caller->hasGC()) in InlineFunction() 1547 Caller->setGC(CalledFunc->getGC()); in InlineFunction() 1562 Caller->hasPersonalityFn() in InlineFunction() 1818 DIBuilder DIB(*Caller->getParent()); in InlineFunction() 1973 Module *M = Caller->getParent(); in InlineFunction() 2088 {Caller->getReturnType()}); in InlineFunction() [all …]
|
| H A D | ImportedFunctionsInliningStatistics.cpp | 35 void ImportedFunctionsInliningStatistics::recordInline(const Function &Caller, in recordInline() argument 38 InlineGraphNode &CallerNode = createInlineGraphNode(Caller); in recordInline() 54 auto It = NodesMap.find(Caller.getName()); in recordInline()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | Attributes.cpp | 1602 return Caller.getFnAttribute(AttrClass::getKind()) == in isEqual() 1643 Caller.addFnAttr(Attribute::StackProtectReq); in adjustCallerSSPLevel() 1647 Caller.addFnAttr(Attribute::StackProtectStrong); in adjustCallerSSPLevel() 1651 Caller.addFnAttr(Attribute::StackProtect); in adjustCallerSSPLevel() 1657 if (!Caller.hasFnAttribute("probe-stack") && in adjustCallerStackProbes() 1673 if (Caller.hasFnAttribute("stack-probe-size")) { in adjustCallerStackProbeSize() 1675 Caller.getFnAttribute("stack-probe-size") in adjustCallerStackProbeSize() 1701 Caller.getFnAttribute("min-legal-vector-width") in adjustMinLegalVectorWidth() 1713 Caller.removeFnAttr("min-legal-vector-width"); in adjustMinLegalVectorWidth() 1732 return hasCompatibleFnAttrs(Caller, Callee); in areInlineCompatible() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInline.cpp | 107 Function *Caller = CS.getCaller(); in getInlineThreshold() local 114 && !Caller->hasFnAttribute(Attribute::MinSize)) in getInlineThreshold() 117 const DataLayout &DL = Caller->getParent()->getDataLayout(); in getInlineThreshold() 172 Function *Caller = CS.getCaller(); in getInlineCost() local 181 if (!TTI.areInlineCompatible(Caller, Callee)) in getInlineCost() 196 const auto &BBs = Caller->getBasicBlockList(); in getInlineCost() 203 OptimizationRemarkEmitter ORE(Caller); in getInlineCost()
|
| H A D | AMDGPUOpenCLEnqueuedBlockLowering.cpp | 84 auto *Caller = CI->getParent()->getParent(); in collectCallers() local 85 if (Callers.insert(Caller).second) in collectCallers() 86 collectCallers(Caller, Callers); in collectCallers()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 163 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument 215 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument 224 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches() 788 FunctionDecl *Caller; in MarkKnownEmitted() member 799 S.CUDAKnownEmittedFns[C.Callee] = {C.Caller, C.Loc}; in MarkKnownEmitted() 842 if (!Caller) in CheckCUDACall() 847 bool CallerKnownEmitted = IsKnownEmitted(*this, Caller); in CheckCUDACall() 852 MarkKnownEmitted(*this, Caller, Callee, Loc); in CheckCUDACall() 861 CUDACallGraph[Caller].insert({Callee, Loc}); in CheckCUDACall() 865 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | InlineCost.cpp | 855 Function *Caller = CS.getCaller(); in updateThreshold() local 901 if (Caller->optForMinSize()) { in updateThreshold() 909 } else if (Caller->optForSize()) in updateThreshold() 914 if (!Caller->optForMinSize()) { in updateThreshold() 927 if (!Caller->optForSize() && HotCallSiteThreshold) { in updateThreshold() 1764 for (User *U : Caller->users()) { in analyzeCall() 1769 if (I->getFunction() == Caller) { in analyzeCall() 1902 if (Caller->optForMinSize()) { in analyzeCall() 1952 return TTI.areInlineCompatible(Caller, Callee) && in functionsHaveCompatibleAttributes() 2033 Function *Caller = CS.getCaller(); in getInlineCost() local [all …]
|
| H A D | TargetTransformInfo.cpp | 623 bool TargetTransformInfo::areInlineCompatible(const Function *Caller, in areInlineCompatible() argument 625 return TTIImpl->areInlineCompatible(Caller, Callee); in areInlineCompatible() 629 const Function *Caller, const Function *Callee, in areFunctionArgsABICompatible() argument 631 return TTIImpl->areFunctionArgsABICompatible(Caller, Callee, Args); in areFunctionArgsABICompatible()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCXX.cpp | 320 auto getArgLoc = [&](CallEventRef<> Caller) -> Optional<SVal> { in prepareForObjectConstruction() argument 321 const LocationContext *FutureSFC = Caller->getCalleeStackFrame(); in prepareForObjectConstruction() 339 const VarRegion *VR = Caller->getParameterLocation( in prepareForObjectConstruction() 340 *Caller->getAdjustedParameterIndex(Idx)); in prepareForObjectConstruction() 348 CallEventRef<> Caller = CEMgr.getSimpleCall(CE, State, LCtx); in prepareForObjectConstruction() local 349 if (auto OptV = getArgLoc(Caller)) in prepareForObjectConstruction() 357 CallEventRef<> Caller = in prepareForObjectConstruction() local 359 if (auto OptV = getArgLoc(Caller)) in prepareForObjectConstruction() 365 CallEventRef<> Caller = CEMgr.getObjCMethodCall(ME, State, LCtx); in prepareForObjectConstruction() local 366 if (auto OptV = getArgLoc(Caller)) in prepareForObjectConstruction()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 521 bool areInlineCompatible(const Function *Caller, in areInlineCompatible() argument 523 return (Caller->getFnAttribute("target-cpu") == in areInlineCompatible() 525 (Caller->getFnAttribute("target-features") == in areInlineCompatible() 529 bool areFunctionArgsABICompatible(const Function *Caller, const Function *Callee, in areFunctionArgsABICompatible() argument 531 return (Caller->getFnAttribute("target-cpu") == in areFunctionArgsABICompatible() 533 (Caller->getFnAttribute("target-features") == in areFunctionArgsABICompatible()
|
| H A D | TargetTransformInfo.h | 934 bool areInlineCompatible(const Function *Caller, 941 bool areFunctionArgsABICompatible(const Function *Caller, 1188 virtual bool areInlineCompatible(const Function *Caller, 1191 areFunctionArgsABICompatible(const Function *Caller, const Function *Callee, 1567 bool areInlineCompatible(const Function *Caller, in areInlineCompatible() argument 1569 return Impl.areInlineCompatible(Caller, Callee); in areInlineCompatible() 1572 const Function *Caller, const Function *Callee, in areFunctionArgsABICompatible() argument 1574 return Impl.areFunctionArgsABICompatible(Caller, Callee, Args); in areFunctionArgsABICompatible()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCalls.cpp | 4348 Type *OldRetTy = Caller->getType(); in transformConstExprCastCall() 4361 if (!Caller->use_empty() && in transformConstExprCastCall() 4377 if (!Caller->use_empty()) in transformConstExprCastCall() 4542 NewCS->takeName(Caller); in transformConstExprCastCall() 4549 if (Caller->extractProfTotalWeight(W)) in transformConstExprCastCall() 4567 InsertNewInstBefore(NC, *Caller); in transformConstExprCastCall() 4569 Worklist.AddUsersToWorkList(*Caller); in transformConstExprCastCall() 4575 if (!Caller->use_empty()) in transformConstExprCastCall() 4576 replaceInstUsesWith(*Caller, NV); in transformConstExprCastCall() 4577 else if (Caller->hasValueHandle()) { in transformConstExprCastCall() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/ |
| H A D | ImportedFunctionsInliningStatistics.h | 72 void recordInline(const Function &Caller, const Function &Callee);
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
| H A D | PathDiagnostic.h | 581 const Decl *Caller; variable 598 : PathDiagnosticPiece(Call), Caller(callerD), NoExit(false), in PathDiagnosticCallPiece() 601 : PathDiagnosticPiece(Call), Caller(caller), NoExit(true), in PathDiagnosticCallPiece() 612 const Decl *getCaller() const { return Caller; } in getCaller()
|
| /freebsd-12.1/contrib/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXTargetTransformInfo.h | 80 bool areInlineCompatible(const Function *Caller, in areInlineCompatible() argument
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroInternal.h | 50 void updateCallGraph(Function &Caller, ArrayRef<Function *> Funcs,
|
| /freebsd-12.1/contrib/llvm/lib/Target/RISCV/ |
| H A D | RISCVCallingConv.td | 23 // both Caller and Callee saved registers.
|
| /freebsd-12.1/contrib/llvm/include/llvm/XRay/ |
| H A D | Profile.h | 121 TrieNode *Caller = nullptr; member
|
| /freebsd-12.1/contrib/llvm/lib/XRay/ |
| H A D | Profile.cpp | 139 for (auto Node = It->second; Node; Node = Node->Caller) in expandPath() 177 NewNode->Caller = Node; in internPath()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.h | 68 bool areInlineCompatible(const Function *Caller,
|
| /freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 852 if (Instruction *I = CallingSF.Caller.getInstruction()) { in popStackAndReturnValueToCaller() 854 if (!CallingSF.Caller.getType()->isVoidTy()) in popStackAndReturnValueToCaller() 858 CallingSF.Caller = CallSite(); // We returned from the call... in popStackAndReturnValueToCaller() 1107 SF.Caller = CS; in visitCallSite() 1109 const unsigned NumArgs = SF.Caller.arg_size(); in visitCallSite() 1112 for (CallSite::arg_iterator i = SF.Caller.arg_begin(), in visitCallSite() 1113 e = SF.Caller.arg_end(); i != e; ++i, ++pNum) { in visitCallSite() 1120 GenericValue SRC = getOperandValue(SF.Caller.getCalledValue(), SF); in visitCallSite() 2071 assert((ECStack.empty() || !ECStack.back().Caller.getInstruction() || in callFunction() 2072 ECStack.back().Caller.arg_size() == ArgVals.size()) && in callFunction()
|