HomeSort by: relevance | last modified time | path
    Searched refs:InlineCost (Results 1 - 12 of 12) sorted by relevancy

  /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
InlineCost.h 1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===//
67 class InlineCost {
80 InlineCost(int Cost, int Threshold, const char *Reason = nullptr)
87 static InlineCost get(int Cost, int Threshold) {
90 return InlineCost(Cost, Threshold);
92 static InlineCost getAlways(const char *Reason) {
93 return InlineCost(AlwaysInlineCost, 0, Reason);
95 static InlineCost getNever(const char *Reason) {
96 return InlineCost(NeverInlineCost, 0, Reason);
107 /// It is an error to call this on an "always" or "never" InlineCost
    [all...]
InlineAdvisor.h 12 #include "llvm/Analysis/InlineCost.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);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
AlwaysInliner.cpp 18 #include "llvm/Analysis/InlineCost.h"
72 return InlineCost::getAlways("always inline attribute");
150 InlineCost getInlineCost(CallBase &CB) override;
185 InlineCost AlwaysInlinerLegacyPass::getInlineCost(CallBase &CB) {
191 return InlineCost::getNever("indirect call");
198 return InlineCost::getNever("unsplited coroutine call");
202 return InlineCost::getNever("no definition");
205 return InlineCost::getNever("no alwaysinline attribute");
209 return InlineCost::getNever(IsViable.getFailureReason());
211 return InlineCost::getAlways("always inliner")
    [all...]
InlineSimple.cpp 14 #include "llvm/Analysis/InlineCost.h"
54 InlineCost getInlineCost(CallBase &CB) override {
PartialInlining.cpp 24 #include "llvm/Analysis/InlineCost.h"
334 // Compute the 'InlineCost' of block BB. InlineCost is a proxy used to
788 InlineCost IC =
854 // TODO: Ideally we should share Inliner's InlineCost Analysis code.
855 // For now use a simplified version. The returned 'InlineCost' will be used
860 InstructionCost InlineCost = 0;
893 InlineCost += TTI->getIntrinsicInstrCost(ICA, TTI::TCK_SizeAndLatency);
898 InlineCost += getCallsiteCost(*CI, DL);
903 InlineCost += getCallsiteCost(*II, DL)
    [all...]
SampleProfile.cpp 42 #include "llvm/Analysis/InlineCost.h"
384 InlineCost shouldInlineCandidate(InlineCandidate &Candidate);
930 InlineCost Cost = getInlineCost(CallInst, getInlineParams(), GetTTI(*Callee),
1172 InlineCost Cost = shouldInlineCandidate(Candidate);
1249 InlineCost
1256 return InlineCost::getNever("not previously inlined");
1259 return InlineCost::getAlways("previously inlined");
1269 return InlineCost::getNever("cold callsite");
1283 InlineCost Cost = getInlineCost(*Candidate.CallInstr, Callee, Params,
1293 return InlineCost::get(Cost.getCost(), INT_MAX)
    [all...]
Inliner.cpp 33 #include "llvm/Analysis/InlineCost.h"
303 function_ref<InlineCost(CallBase &CB)> GetInlineCost,
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
ReplayInlineAdvisor.cpp 75 Optional<InlineCost> InlineRecommended = None;
77 InlineRecommended = llvm::InlineCost::getAlways("found in replay");
InlineAdvisor.cpp 16 #include "llvm/Analysis/InlineCost.h"
75 llvm::Optional<llvm::InlineCost> static getDefaultInlineAdvice(
194 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost,
195 function_ref<InlineCost(CallBase &CB)> GetInlineCost) {
240 InlineCost IC2 = GetInlineCost(*CS2);
285 RemarkT &operator<<(RemarkT &&R, const InlineCost &IC) {
301 std::string llvm::inlineCostStr(const InlineCost &IC) {
320 Optional<InlineCost>
322 function_ref<InlineCost(CallBase &CB)> GetInlineCost,
326 InlineCost IC = GetInlineCost(CB)
    [all...]
InlineCost.cpp 1 //===- InlineCost.cpp - Cost analysis for inliner -------------------------===//
13 #include "llvm/Analysis/InlineCost.h"
2473 InlineCost llvm::getInlineCost(
2585 InlineCost llvm::getInlineCost(
2598 return llvm::InlineCost::getAlways("always inline attribute");
2599 return llvm::InlineCost::getNever(UserDecision->getFailureReason());
2617 return InlineCost::getAlways("benefit over cost");
2619 return InlineCost::getNever("cost over benefit");
2624 return InlineCost::getNever(ShouldInline.getFailureReason());
2626 return InlineCost::getAlways("empty function")
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
Inliner.h 15 #include "llvm/Analysis/InlineCost.h"
57 virtual InlineCost getInlineCost(CallBase &CB) = 0;
  /src/external/apache2/llvm/lib/libLLVMAnalysis/
Makefile 53 InlineCost.cpp \

Completed in 44 milliseconds