Home
last modified time | relevance | path

Searched refs:InlineCost (Results 1 – 11 of 11) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineCost.h89 class InlineCost {
108 InlineCost(int Cost, int Threshold, int StaticBonusApplied,
119 static InlineCost get(int Cost, int Threshold, int StaticBonus = 0) {
122 return InlineCost(Cost, Threshold, StaticBonus);
124 static InlineCost
127 return InlineCost(AlwaysInlineCost, 0, 0, Reason, CostBenefit);
129 static InlineCost
132 return InlineCost(NeverInlineCost, 0, 0, Reason, CostBenefit);
276 InlineCost
290 InlineCost
H A DInlineAdvisor.h147 std::optional<InlineCost> OIC,
159 std::optional<InlineCost> OIC;
374 std::optional<InlineCost>
375 shouldInline(CallBase &CB, function_ref<InlineCost(CallBase &CB)> GetInlineCost,
388 const Function &Caller, const InlineCost &IC,
399 std::string inlineCostStr(const InlineCost &IC);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp134 std::optional<llvm::InlineCost> static getDefaultInlineAdvice( in getDefaultInlineAdvice()
249 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost, in shouldBeDeferred()
250 function_ref<InlineCost(CallBase &CB)> GetInlineCost) { in shouldBeDeferred()
295 InlineCost IC2 = GetInlineCost(*CS2); in shouldBeDeferred()
340 RemarkT &operator<<(RemarkT &&R, const InlineCost &IC) { in operator <<()
356 std::string llvm::inlineCostStr(const InlineCost &IC) { in inlineCostStr()
375 std::optional<InlineCost>
377 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in shouldInline()
381 InlineCost IC = GetInlineCost(CB); in shouldInline()
510 const Function &Callee, const Function &Caller, const InlineCost &IC, in emitInlinedIntoBasedOnCost()
H A DReplayInlineAdvisor.cpp121 this, CB, llvm::InlineCost::getAlways("previously inlined"), ORE, in getAdviceImpl()
136 this, CB, llvm::InlineCost::getAlways("AlwaysInline Fallback"), ORE, in getAdviceImpl()
H A DInlineCost.cpp2927 InlineCost llvm::getInlineCost( in getInlineCost()
3046 InlineCost llvm::getInlineCost( in getInlineCost()
3059 return llvm::InlineCost::getAlways("always inline attribute"); in getInlineCost()
3060 return llvm::InlineCost::getNever(UserDecision->getFailureReason()); in getInlineCost()
3078 return InlineCost::getAlways("benefit over cost", in getInlineCost()
3081 return InlineCost::getNever("cost over benefit", CA.getCostBenefitPair()); in getInlineCost()
3085 return InlineCost::get(CA.getCost(), CA.getThreshold(), in getInlineCost()
3090 ? InlineCost::getAlways("empty function") in getInlineCost()
3091 : InlineCost::getNever(ShouldInline.getFailureReason()); in getInlineCost()
H A DInlineOrder.cpp45 llvm::InlineCost getInlineCostWrapper(CallBase &CB, in getInlineCostWrapper()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp557 InlineCost shouldInlineCandidate(InlineCandidate &Candidate);
1291 InlineCost Cost = shouldInlineCandidate(Candidate); in tryInlineCandidate()
1367 std::optional<InlineCost>
1375 return InlineCost::getNever("not previously inlined"); in getExternalInlineAdvisorCost()
1378 return InlineCost::getAlways("previously inlined"); in getExternalInlineAdvisorCost()
1390 InlineCost
1392 if (std::optional<InlineCost> ReplayCost = in shouldInlineCandidate()
1402 return InlineCost::getNever("cold callsite"); in shouldInlineCandidate()
1441 return InlineCost::getAlways("preinliner"); in shouldInlineCandidate()
1447 return InlineCost::get(Cost.getCost(), INT_MAX); in shouldInlineCandidate()
[all …]
H A DPartialInlining.cpp734 InlineCost IC = in shouldPartialInline()
806 InstructionCost InlineCost = 0; in computeBBInlineCost() local
840 InlineCost += TTI->getIntrinsicInstrCost(ICA, TTI::TCK_SizeAndLatency); in computeBBInlineCost()
845 InlineCost += getCallsiteCost(*TTI, *CI, DL); in computeBBInlineCost()
850 InlineCost += getCallsiteCost(*TTI, *II, DL); in computeBBInlineCost()
855 InlineCost += (SI->getNumCases() + 1) * InstrCost; in computeBBInlineCost()
858 InlineCost += InstrCost; in computeBBInlineCost()
861 return InlineCost; in computeBBInlineCost()
H A DAlwaysInliner.cpp84 InlineCost::getAlways("always inline attribute"), in AlwaysInlineImpl()
H A DFunctionSpecialization.cpp1019 InlineCost IC = in getInliningBonus()
/freebsd-14.2/lib/clang/libllvm/
H A DMakefile96 SRCS_MIN+= Analysis/InlineCost.cpp