| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | AlwaysInliner.cpp | 88 InlineCost::getAlways("always inline attribute"), in run() 158 InlineCost getInlineCost(CallBase &CB) override; 193 InlineCost AlwaysInlinerLegacyPass::getInlineCost(CallBase &CB) { in getInlineCost() 199 return InlineCost::getNever("indirect call"); in getInlineCost() 206 return InlineCost::getNever("unsplited coroutine call"); in getInlineCost() 210 return InlineCost::getNever("no definition"); in getInlineCost() 213 return InlineCost::getNever("no alwaysinline attribute"); in getInlineCost() 216 return InlineCost::getNever("noinline call site attribute"); in getInlineCost() 220 return InlineCost::getNever(IsViable.getFailureReason()); in getInlineCost() 222 return InlineCost::getAlways("always inliner"); in getInlineCost()
|
| H A D | SampleProfile.cpp | 464 InlineCost shouldInlineCandidate(InlineCandidate &Candidate); 1209 InlineCost Cost = shouldInlineCandidate(Candidate); in tryInlineCandidate() 1287 Optional<InlineCost> 1295 return InlineCost::getNever("not previously inlined"); in getExternalInlineAdvisorCost() 1298 return InlineCost::getAlways("previously inlined"); in getExternalInlineAdvisorCost() 1310 InlineCost 1312 if (Optional<InlineCost> ReplayCost = in shouldInlineCandidate() 1322 return InlineCost::getNever("cold callsite"); in shouldInlineCandidate() 1361 return InlineCost::getAlways("preinliner"); in shouldInlineCandidate() 1367 return InlineCost::get(Cost.getCost(), INT_MAX); in shouldInlineCandidate() [all …]
|
| H A D | PartialInlining.cpp | 782 InlineCost IC = in shouldPartialInline() 854 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) * InlineConstants::InstrCost; in computeBBInlineCost() 905 InlineCost += InlineConstants::InstrCost; in computeBBInlineCost() 908 return InlineCost; in computeBBInlineCost()
|
| H A D | InlineSimple.cpp | 48 InlineCost getInlineCost(CallBase &CB) override { in getInlineCost()
|
| H A D | FunctionSpecialization.cpp | 640 InlineCost IC = in getSpecializationBonus()
|
| H A D | Inliner.cpp | 367 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in inlineCallsImpl()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | InlineCost.h | 87 class InlineCost { 103 InlineCost(int Cost, int Threshold, const char *Reason = nullptr, 112 static InlineCost get(int Cost, int Threshold) { in get() 115 return InlineCost(Cost, Threshold); in get() 117 static InlineCost getAlways(const char *Reason, 119 return InlineCost(AlwaysInlineCost, 0, Reason, CostBenefit); 121 static InlineCost getNever(const char *Reason, 123 return InlineCost(NeverInlineCost, 0, Reason, CostBenefit); 260 InlineCost 274 InlineCost
|
| H A D | InlineAdvisor.h | 146 Optional<InlineCost> OIC, OptimizationRemarkEmitter &ORE, 158 Optional<InlineCost> OIC; 298 Optional<InlineCost> 299 shouldInline(CallBase &CB, function_ref<InlineCost(CallBase &CB)> GetInlineCost, 312 const Function &Caller, const InlineCost &IC, 323 std::string inlineCostStr(const InlineCost &IC);
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InlineAdvisor.cpp | 131 llvm::Optional<llvm::InlineCost> static getDefaultInlineAdvice( in getDefaultInlineAdvice() 241 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost, in shouldBeDeferred() 242 function_ref<InlineCost(CallBase &CB)> GetInlineCost) { in shouldBeDeferred() 287 InlineCost IC2 = GetInlineCost(*CS2); in shouldBeDeferred() 332 RemarkT &operator<<(RemarkT &&R, const InlineCost &IC) { in operator <<() 348 std::string llvm::inlineCostStr(const InlineCost &IC) { in inlineCostStr() 367 Optional<InlineCost> 369 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in shouldInline() 373 InlineCost IC = GetInlineCost(CB); in shouldInline() 502 const Function &Callee, const Function &Caller, const InlineCost &IC, in emitInlinedIntoBasedOnCost()
|
| H A D | ReplayInlineAdvisor.cpp | 121 this, CB, llvm::InlineCost::getAlways("previously inlined"), ORE, in getAdviceImpl() 136 this, CB, llvm::InlineCost::getAlways("AlwaysInline Fallback"), ORE, in getAdviceImpl()
|
| H A D | InlineCost.cpp | 2781 InlineCost llvm::getInlineCost( in getInlineCost() 2900 InlineCost llvm::getInlineCost( in getInlineCost() 2913 return llvm::InlineCost::getAlways("always inline attribute"); in getInlineCost() 2914 return llvm::InlineCost::getNever(UserDecision->getFailureReason()); in getInlineCost() 2932 return InlineCost::getAlways("benefit over cost", in getInlineCost() 2935 return InlineCost::getNever("cost over benefit", CA.getCostBenefitPair()); in getInlineCost() 2939 return InlineCost::get(CA.getCost(), CA.getThreshold()); in getInlineCost() 2943 ? InlineCost::getAlways("empty function") in getInlineCost() 2944 : InlineCost::getNever(ShouldInline.getFailureReason()); in getInlineCost()
|
| H A D | CMakeLists.txt | 73 InlineCost.cpp
|
| /llvm-project-15.0.7/llvm/test/Transforms/Inline/ |
| H A D | inline-ptrtoint-different-sizes.ll | 3 ; InlineCost used to have problems with the ptrtoint, leading to
|
| H A D | inline-remark.ll | 39 ;; Test 2 - Printed InlineResult messages are followed by InlineCost.
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/ |
| H A D | Inliner.h | 55 virtual InlineCost getInlineCost(CallBase &CB) = 0;
|
| /llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/lib/Analysis/ |
| H A D | BUILD.gn | 63 "InlineCost.cpp",
|
| /llvm-project-15.0.7/llvm/test/Transforms/GVNSink/ |
| H A D | sink-common-code.ll | 523 ; - Consider argument setup/return mov'ing for calls, like InlineCost does.
|
| /llvm-project-15.0.7/clang/docs/tools/ |
| H A D | clang-formatted-files.txt | 5008 llvm/include/llvm/Analysis/InlineCost.h 5741 llvm/lib/Analysis/InlineCost.cpp
|