Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/
H A DAlwaysInliner.cpp89 InlineCost::getAlways("always inline attribute"), in run()
156 InlineCost getInlineCost(CallBase &CB) override;
191 InlineCost AlwaysInlinerLegacyPass::getInlineCost(CallBase &CB) { in getInlineCost()
197 return InlineCost::getNever("indirect call"); in getInlineCost()
204 return InlineCost::getNever("unsplited coroutine call"); in getInlineCost()
208 return InlineCost::getNever("no definition"); in getInlineCost()
211 return InlineCost::getNever("no alwaysinline attribute"); in getInlineCost()
214 return InlineCost::getNever("noinline call site attribute"); in getInlineCost()
218 return InlineCost::getNever(IsViable.getFailureReason()); in getInlineCost()
220 return InlineCost::getAlways("always inliner"); in getInlineCost()
H A DSampleProfile.cpp499 InlineCost shouldInlineCandidate(InlineCandidate &Candidate);
1247 InlineCost Cost = shouldInlineCandidate(Candidate); in tryInlineCandidate()
1323 std::optional<InlineCost>
1331 return InlineCost::getNever("not previously inlined"); in getExternalInlineAdvisorCost()
1334 return InlineCost::getAlways("previously inlined"); in getExternalInlineAdvisorCost()
1346 InlineCost
1348 if (std::optional<InlineCost> ReplayCost = in shouldInlineCandidate()
1358 return InlineCost::getNever("cold callsite"); in shouldInlineCandidate()
1397 return InlineCost::getAlways("preinliner"); in shouldInlineCandidate()
1403 return InlineCost::get(Cost.getCost(), INT_MAX); in shouldInlineCandidate()
[all …]
H A DPartialInlining.cpp781 InlineCost IC = in shouldPartialInline()
853 InstructionCost InlineCost = 0; in computeBBInlineCost() local
887 InlineCost += TTI->getIntrinsicInstrCost(ICA, TTI::TCK_SizeAndLatency); in computeBBInlineCost()
892 InlineCost += getCallsiteCost(*CI, DL); in computeBBInlineCost()
897 InlineCost += getCallsiteCost(*II, DL); in computeBBInlineCost()
902 InlineCost += (SI->getNumCases() + 1) * InstrCost; in computeBBInlineCost()
905 InlineCost += InstrCost; in computeBBInlineCost()
908 return InlineCost; in computeBBInlineCost()
H A DInlineSimple.cpp48 InlineCost getInlineCost(CallBase &CB) override { in getInlineCost()
H A DFunctionSpecialization.cpp640 InlineCost IC = in getSpecializationBonus()
H A DInliner.cpp367 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in inlineCallsImpl()
/openbsd/gnu/llvm/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);
275 InlineCost
289 InlineCost
H A DInlineAdvisor.h148 std::optional<InlineCost> OIC,
160 std::optional<InlineCost> OIC;
373 std::optional<InlineCost>
374 shouldInline(CallBase &CB, function_ref<InlineCost(CallBase &CB)> GetInlineCost,
387 const Function &Caller, const InlineCost &IC,
398 std::string inlineCostStr(const InlineCost &IC);
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DInlineAdvisor.cpp133 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.cpp2838 InlineCost llvm::getInlineCost( in getInlineCost()
2957 InlineCost llvm::getInlineCost( in getInlineCost()
2970 return llvm::InlineCost::getAlways("always inline attribute"); in getInlineCost()
2971 return llvm::InlineCost::getNever(UserDecision->getFailureReason()); in getInlineCost()
2989 return InlineCost::getAlways("benefit over cost", in getInlineCost()
2992 return InlineCost::getNever("cost over benefit", CA.getCostBenefitPair()); in getInlineCost()
2996 return InlineCost::get(CA.getCost(), CA.getThreshold(), in getInlineCost()
3001 ? InlineCost::getAlways("empty function") in getInlineCost()
3002 : InlineCost::getNever(ShouldInline.getFailureReason()); in getInlineCost()
H A DCMakeLists.txt73 InlineCost.cpp
H A DInlineOrder.cpp46 llvm::InlineCost getInlineCostWrapper(CallBase &CB, in getInlineCostWrapper()
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/IPO/
H A DInliner.h55 virtual InlineCost getInlineCost(CallBase &CB) = 0;
/openbsd/gnu/usr.bin/clang/libLLVMAnalysis/
H A DMakefile54 InlineCost.cpp \
/openbsd/gnu/llvm/llvm/utils/gn/secondary/llvm/lib/Analysis/
H A DBUILD.gn63 "InlineCost.cpp",
/openbsd/distrib/sets/lists/comp/
H A Dclang.amd641113 ./usr/include/llvm/Analysis/InlineCost.h
H A Dclang.arm641113 ./usr/include/llvm/Analysis/InlineCost.h
H A Dclang.armv71111 ./usr/include/llvm/Analysis/InlineCost.h
H A Dclang.i3861111 ./usr/include/llvm/Analysis/InlineCost.h
H A Dclang.loongson1112 ./usr/include/llvm/Analysis/InlineCost.h
H A Dclang.macppc1112 ./usr/include/llvm/Analysis/InlineCost.h
H A Dclang.octeon1112 ./usr/include/llvm/Analysis/InlineCost.h
H A Dclang.powerpc641111 ./usr/include/llvm/Analysis/InlineCost.h
H A Dclang.sparc641112 ./usr/include/llvm/Analysis/InlineCost.h

12