Searched refs:InlineCost (Results 1 – 14 of 14) sorted by relevance
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | InlineCost.h | 67 class InlineCost { 80 InlineCost(int Cost, int Threshold, const char *Reason = nullptr) 87 static InlineCost get(int Cost, int Threshold) { in get() 90 return InlineCost(Cost, Threshold); in get() 92 static InlineCost getAlways(const char *Reason) { in getAlways() 93 return InlineCost(AlwaysInlineCost, 0, Reason); in getAlways() 95 static InlineCost getNever(const char *Reason) { in getNever() 96 return InlineCost(NeverInlineCost, 0, Reason); in getNever() 225 InlineCost 239 InlineCost
|
| H A D | InlineAdvisor.h | 123 Optional<InlineCost> OIC, OptimizationRemarkEmitter &ORE, 135 Optional<InlineCost> OIC; 263 Optional<InlineCost> 264 shouldInline(CallBase &CB, function_ref<InlineCost(CallBase &CB)> GetInlineCost, 270 const Function &Caller, const InlineCost &IC, 284 std::string inlineCostStr(const InlineCost &IC);
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | AlwaysInliner.cpp | 72 return InlineCost::getAlways("always inline attribute"); in run() 150 InlineCost getInlineCost(CallBase &CB) override; 185 InlineCost AlwaysInlinerLegacyPass::getInlineCost(CallBase &CB) { in getInlineCost() 191 return InlineCost::getNever("indirect call"); in getInlineCost() 198 return InlineCost::getNever("unsplited coroutine call"); in getInlineCost() 202 return InlineCost::getNever("no definition"); in getInlineCost() 205 return InlineCost::getNever("no alwaysinline attribute"); in getInlineCost() 209 return InlineCost::getNever(IsViable.getFailureReason()); in getInlineCost() 211 return InlineCost::getAlways("always inliner"); in getInlineCost()
|
| H A D | SampleProfile.cpp | 384 InlineCost shouldInlineCandidate(InlineCandidate &Candidate); 930 InlineCost Cost = getInlineCost(CallInst, getInlineParams(), GetTTI(*Callee), in shouldInlineColdCallee() 1172 InlineCost Cost = shouldInlineCandidate(Candidate); in tryInlineCandidate() 1249 InlineCost 1256 return InlineCost::getNever("not previously inlined"); in shouldInlineCandidate() 1259 return InlineCost::getAlways("previously inlined"); in shouldInlineCandidate() 1269 return InlineCost::getNever("cold callsite"); in shouldInlineCandidate() 1283 InlineCost Cost = getInlineCost(*Candidate.CallInstr, Callee, Params, in shouldInlineCandidate() 1293 return InlineCost::get(Cost.getCost(), INT_MAX); in shouldInlineCandidate() 1298 return InlineCost::get(Cost.getCost(), SampleThreshold); in shouldInlineCandidate()
|
| H A D | PartialInlining.cpp | 788 InlineCost IC = in shouldPartialInline() 860 InstructionCost InlineCost = 0; in computeBBInlineCost() local 893 InlineCost += TTI->getIntrinsicInstrCost(ICA, TTI::TCK_SizeAndLatency); in computeBBInlineCost() 898 InlineCost += getCallsiteCost(*CI, DL); in computeBBInlineCost() 903 InlineCost += getCallsiteCost(*II, DL); in computeBBInlineCost() 908 InlineCost += (SI->getNumCases() + 1) * InlineConstants::InstrCost; in computeBBInlineCost() 911 InlineCost += InlineConstants::InstrCost; in computeBBInlineCost() 914 return InlineCost; in computeBBInlineCost()
|
| H A D | InlineSimple.cpp | 54 InlineCost getInlineCost(CallBase &CB) override { in getInlineCost()
|
| H A D | Inliner.cpp | 303 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in inlineCallsImpl()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | InlineAdvisor.cpp | 75 llvm::Optional<llvm::InlineCost> static getDefaultInlineAdvice( in getDefaultInlineAdvice() 194 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost, in shouldBeDeferred() 195 function_ref<InlineCost(CallBase &CB)> GetInlineCost) { in shouldBeDeferred() 240 InlineCost IC2 = GetInlineCost(*CS2); in shouldBeDeferred() 285 RemarkT &operator<<(RemarkT &&R, const InlineCost &IC) { in operator <<() 301 std::string llvm::inlineCostStr(const InlineCost &IC) { in inlineCostStr() 320 Optional<InlineCost> 322 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in shouldInline() 326 InlineCost IC = GetInlineCost(CB); in shouldInline() 437 const Function &Caller, const InlineCost &IC, in emitInlinedInto()
|
| H A D | ReplayInlineAdvisor.cpp | 75 Optional<InlineCost> InlineRecommended = None; in getAdviceImpl() 77 InlineRecommended = llvm::InlineCost::getAlways("found in replay"); in getAdviceImpl()
|
| H A D | InlineCost.cpp | 2473 InlineCost llvm::getInlineCost( in getInlineCost() 2585 InlineCost llvm::getInlineCost( in getInlineCost() 2598 return llvm::InlineCost::getAlways("always inline attribute"); in getInlineCost() 2599 return llvm::InlineCost::getNever(UserDecision->getFailureReason()); in getInlineCost() 2617 return InlineCost::getAlways("benefit over cost"); in getInlineCost() 2619 return InlineCost::getNever("cost over benefit"); in getInlineCost() 2624 return InlineCost::getNever(ShouldInline.getFailureReason()); in getInlineCost() 2626 return InlineCost::getAlways("empty function"); in getInlineCost() 2628 return llvm::InlineCost::get(CA.getCost(), CA.getThreshold()); in getInlineCost()
|
| H A D | CMakeLists.txt | 67 InlineCost.cpp
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/ |
| H A D | Inliner.h | 57 virtual InlineCost getInlineCost(CallBase &CB) = 0;
|
| /netbsd-src/external/apache2/llvm/lib/libLLVMAnalysis/ |
| H A D | Makefile | 53 InlineCost.cpp \
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/secondary/llvm/lib/Analysis/ |
| H A D | BUILD.gn | 62 "InlineCost.cpp",
|