Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineCost.h90 class InlineCost {
109 InlineCost(int Cost, int Threshold, int StaticBonusApplied,
120 static InlineCost get(int Cost, int Threshold, int StaticBonus = 0) {
123 return InlineCost(Cost, Threshold, StaticBonus);
125 static InlineCost
128 return InlineCost(AlwaysInlineCost, 0, 0, Reason, CostBenefit);
130 static InlineCost
133 return InlineCost(NeverInlineCost, 0, 0, Reason, CostBenefit);
277 InlineCost
291 InlineCost
H A DInlineAdvisor.h13 #include "llvm/Analysis/InlineCost.h"
147 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/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp135 std::optional<llvm::InlineCost> static getDefaultInlineAdvice( in getDefaultInlineAdvice()
250 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost, in shouldBeDeferred()
251 function_ref<InlineCost(CallBase &CB)> GetInlineCost) { in shouldBeDeferred()
296 InlineCost IC2 = GetInlineCost(*CS2); in shouldBeDeferred()
341 RemarkT &operator<<(RemarkT &&R, const InlineCost &IC) { in operator <<()
357 std::string llvm::inlineCostStr(const InlineCost &IC) { in inlineCostStr()
376 std::optional<InlineCost>
378 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in shouldInline()
382 InlineCost IC = GetInlineCost(CB); in shouldInline()
511 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.cpp2932 InlineCost llvm::getInlineCost( in getInlineCost()
3051 InlineCost llvm::getInlineCost( in getInlineCost()
3064 return llvm::InlineCost::getAlways("always inline attribute"); in getInlineCost()
3065 return llvm::InlineCost::getNever(UserDecision->getFailureReason()); in getInlineCost()
3083 return InlineCost::getAlways("benefit over cost", in getInlineCost()
3086 return InlineCost::getNever("cost over benefit", CA.getCostBenefitPair()); in getInlineCost()
3090 return InlineCost::get(CA.getCost(), CA.getThreshold(), in getInlineCost()
3095 ? InlineCost::getAlways("empty function") in getInlineCost()
3096 : InlineCost::getNever(ShouldInline.getFailureReason()); in getInlineCost()
H A DInlineOrder.cpp45 llvm::InlineCost getInlineCostWrapper(CallBase &CB, in getInlineCostWrapper()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp507 std::optional<InlineCost> getExternalInlineAdvisorCost(CallBase &CB);
509 InlineCost shouldInlineCandidate(InlineCandidate &Candidate);
1000 InlineCost Cost = getInlineCost(CallInst, getInlineParams(), GetTTI(*Callee), in shouldInlineColdCallee()
1243 InlineCost Cost = shouldInlineCandidate(Candidate); in tryInlineCandidate()
1319 std::optional<InlineCost>
1327 return InlineCost::getNever("not previously inlined"); in getExternalInlineAdvisorCost()
1330 return InlineCost::getAlways("previously inlined"); in getExternalInlineAdvisorCost()
1338 std::optional<InlineCost> Cost = getExternalInlineAdvisorCost(CB); in getExternalInlineAdvisorShouldInline()
1342 InlineCost
1344 if (std::optional<InlineCost> ReplayCost = 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.cpp82 InlineCost::getAlways("always inline attribute"), in AlwaysInlineImpl()
H A DFunctionSpecialization.cpp1021 InlineCost IC = in getInliningBonus()
/freebsd/lib/clang/libllvm/
H A DMakefile95 SRCS_MIN+= Analysis/InlineCost.cpp