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.h91 class InlineCost {
110 InlineCost(int Cost, int Threshold, int StaticBonusApplied,
121 static InlineCost get(int Cost, int Threshold, int StaticBonus = 0) {
124 return InlineCost(Cost, Threshold, StaticBonus);
126 static InlineCost
129 return InlineCost(AlwaysInlineCost, 0, 0, Reason, CostBenefit);
131 static InlineCost
134 return InlineCost(NeverInlineCost, 0, 0, Reason, CostBenefit);
279 LLVM_ABI InlineCost getInlineCost(
293 LLVM_ABI InlineCost getInlineCost(
H A DInlineAdvisor.h148 std::optional<InlineCost> OIC,
160 std::optional<InlineCost> OIC;
371 LLVM_ABI std::optional<InlineCost>
373 function_ref<InlineCost(CallBase &CB)> GetInlineCost,
387 const Function &Callee, const Function &Caller, const InlineCost &IC,
397 LLVM_ABI std::string inlineCostStr(const InlineCost &IC);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp144 std::optional<llvm::InlineCost> static getDefaultInlineAdvice( in getDefaultInlineAdvice()
285 InlineCost IC, int &TotalSecondaryCost, in shouldBeDeferred()
286 function_ref<InlineCost(CallBase &CB)> GetInlineCost) { in shouldBeDeferred()
331 InlineCost IC2 = GetInlineCost(*CS2); in shouldBeDeferred()
376 decltype(auto) operator<<(RemarkT &&R, const InlineCost &IC) { in operator <<()
392 std::string llvm::inlineCostStr(const InlineCost &IC) { in inlineCostStr()
411 std::optional<InlineCost>
413 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in shouldInline()
417 InlineCost IC = GetInlineCost(CB); in shouldInline()
546 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.cpp3130 InlineCost llvm::getInlineCost( in getInlineCost()
3257 InlineCost llvm::getInlineCost( in getInlineCost()
3271 return llvm::InlineCost::getAlways("always inline attribute"); in getInlineCost()
3272 return llvm::InlineCost::getNever(UserDecision->getFailureReason()); in getInlineCost()
3292 return InlineCost::getAlways("benefit over cost", in getInlineCost()
3295 return InlineCost::getNever("cost over benefit", CA.getCostBenefitPair()); in getInlineCost()
3299 return InlineCost::get(CA.getCost(), CA.getThreshold(), in getInlineCost()
3304 ? InlineCost::getAlways("empty function") in getInlineCost()
3305 : 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.cpp510 std::optional<InlineCost> getExternalInlineAdvisorCost(CallBase &CB);
512 InlineCost shouldInlineCandidate(InlineCandidate &Candidate);
1001 InlineCost Cost = getInlineCost(CallInst, getInlineParams(), GetTTI(*Callee), in shouldInlineColdCallee()
1244 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.cpp729 InlineCost IC = in shouldPartialInline()
801 InstructionCost InlineCost = 0; in computeBBInlineCost() local
835 InlineCost += TTI->getIntrinsicInstrCost(ICA, TTI::TCK_SizeAndLatency); in computeBBInlineCost()
840 InlineCost += getCallsiteCost(*TTI, *CI, DL); in computeBBInlineCost()
845 InlineCost += getCallsiteCost(*TTI, *II, DL); in computeBBInlineCost()
850 InlineCost += (SI->getNumCases() + 1) * InstrCost; in computeBBInlineCost()
853 InlineCost += InstrCost; in computeBBInlineCost()
856 return InlineCost; in computeBBInlineCost()
H A DAlwaysInliner.cpp79 InlineCost::getAlways("always inline attribute"), in AlwaysInlineImpl()
H A DFunctionSpecialization.cpp1098 InlineCost IC = in getInliningBonus()
/freebsd/lib/clang/libllvm/
H A DMakefile123 SRCS_MIN+= Analysis/InlineCost.cpp