Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/Analysis/
DInlineCost.h52 class InlineCost {
65 InlineCost(int Cost, int Threshold) : Cost(Cost), Threshold(Threshold) {} in InlineCost() function
68 static InlineCost get(int Cost, int Threshold) { in get()
71 return InlineCost(Cost, Threshold); in get()
73 static InlineCost getAlways() { in getAlways()
74 return InlineCost(AlwaysInlineCost, 0); in getAlways()
76 static InlineCost getNever() { in getNever()
77 return InlineCost(NeverInlineCost, 0); in getNever()
113 InlineCost getInlineCost(CallSite CS, int DefaultThreshold,
122 InlineCost getInlineCost(CallSite CS, Function *Callee, int DefaultThreshold,
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DInlineCost.h49 class InlineCost {
73 InlineCost(int C, int T) { in InlineCost() function
78 static InlineCost get(int Cost) { return InlineCost(Cost, Value); } in get()
79 static InlineCost getAlways() { return InlineCost(0, Always); } in getAlways()
80 static InlineCost getNever() { return InlineCost(0, Never); } in getNever()
143 InlineCost getInlineCost(CallSite CS,
150 InlineCost getInlineCost(CallSite CS,
163 InlineCost getSpecializationCost(Function *Callee,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DInlineCost.h65 class InlineCost {
78 InlineCost(int Cost, int Threshold) : Cost(Cost), Threshold(Threshold) {} in InlineCost() function
81 static InlineCost get(int Cost, int Threshold) { in get()
84 return InlineCost(Cost, Threshold); in get()
86 static InlineCost getAlways() { in getAlways()
87 return InlineCost(AlwaysInlineCost, 0); in getAlways()
89 static InlineCost getNever() { in getNever()
90 return InlineCost(NeverInlineCost, 0); in getNever()
192 InlineCost getInlineCost(
203 InlineCost
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInlineCost.cpp382 int InlineCost = 0; in getInlineSize() local
397 InlineCost -= CalleeFI->ArgumentWeights[ArgNo].AllocaWeight; in getInlineSize()
403 InlineCost -= CalleeFI->ArgumentWeights[ArgNo].ConstantWeight; in getInlineSize()
409 InlineCost -= (CS.arg_size() * InlineConstants::InstrCost); in getInlineSize()
415 InlineCost += CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty; in getInlineSize()
418 InlineCost += CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost; in getInlineSize()
420 return InlineCost; in getInlineSize()
473 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, in getInlineCost()
478 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, in getInlineCost()
490 return llvm::InlineCost::getNever(); in getInlineCost()
[all …]
/external/llvm/lib/Transforms/IPO/
DInlineAlways.cpp54 InlineCost getInlineCost(CallSite CS) override;
92 InlineCost AlwaysInliner::getInlineCost(CallSite CS) { in getInlineCost()
100 return InlineCost::getAlways(); in getInlineCost()
102 return InlineCost::getNever(); in getInlineCost()
DInliner.cpp232 bool Inliner::shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC, in shouldBeDeferred()
272 InlineCost IC2 = getInlineCost(CS2); in shouldBeDeferred()
304 InlineCost IC = getInlineCost(CS); in shouldInline()
DInlineSimple.cpp61 InlineCost getInlineCost(CallSite CS) override { in getInlineCost()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUInline.cpp67 InlineCost getInlineCost(CallSite CS) override;
172 InlineCost AMDGPUInliner::getInlineCost(CallSite CS) { in getInlineCost()
179 return llvm::InlineCost::getNever(); in getInlineCost()
183 return llvm::InlineCost::getAlways(); in getInlineCost()
184 return llvm::InlineCost::getNever(); in getInlineCost()
188 return llvm::InlineCost::getAlways(); in getInlineCost()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DAlwaysInliner.cpp110 InlineCost getInlineCost(CallSite CS) override;
145 InlineCost AlwaysInlinerLegacyPass::getInlineCost(CallSite CS) { in getInlineCost()
153 return InlineCost::getAlways(); in getInlineCost()
155 return InlineCost::getNever(); in getInlineCost()
DInliner.cpp298 shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC, in shouldBeDeferred()
300 function_ref<InlineCost(CallSite CS)> GetInlineCost) { in shouldBeDeferred()
338 InlineCost IC2 = GetInlineCost(CS2); in shouldBeDeferred()
371 static Optional<InlineCost>
372 shouldInline(CallSite CS, function_ref<InlineCost(CallSite CS)> GetInlineCost, in shouldInline()
376 InlineCost IC = GetInlineCost(CS); in shouldInline()
469 function_ref<InlineCost(CallSite CS)> GetInlineCost, in inlineCallsImpl()
585 Optional<InlineCost> OIC = shouldInline(CS, GetInlineCost, ORE); in inlineCallsImpl()
972 Optional<InlineCost> OIC = shouldInline(CS, GetInlineCost, ORE); in run()
DPartialInlining.cpp766 InlineCost IC = getInlineCost(CS, getInlineParams(), CalleeTTI, in shouldPartialInline()
835 int InlineCost = 0; in computeBBInlineCost() local
863 InlineCost += getCallsiteCost(CallSite(CI), DL); in computeBBInlineCost()
868 InlineCost += getCallsiteCost(CallSite(II), DL); in computeBBInlineCost()
873 InlineCost += (SI->getNumCases() + 1) * InlineConstants::InstrCost; in computeBBInlineCost()
876 InlineCost += InlineConstants::InstrCost; in computeBBInlineCost()
878 return InlineCost; in computeBBInlineCost()
DInlineSimple.cpp55 InlineCost getInlineCost(CallSite CS) override { in getInlineCost()
DSampleProfile.cpp728 InlineCost Cost = getInlineCost(CS, Params, GetTTI(*CalledFunction), GetAC, in inlineCallInstruction()
/external/llvm/include/llvm/Transforms/IPO/
DInlinerPass.h26 class InlineCost; variable
56 virtual InlineCost getInlineCost(CallSite CS) = 0;
84 bool shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC,
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/IPO/
DInlinerPass.h25 class InlineCost; variable
66 virtual InlineCost getInlineCost(CallSite CS) = 0;
/external/llvm/lib/Analysis/
DInlineCost.cpp1447 InlineCost llvm::getInlineCost(CallSite CS, int DefaultThreshold, in getInlineCost()
1468 InlineCost llvm::getInlineCost(CallSite CS, Function *Callee, in getInlineCost()
1476 return llvm::InlineCost::getNever(); in getInlineCost()
1482 return llvm::InlineCost::getAlways(); in getInlineCost()
1483 return llvm::InlineCost::getNever(); in getInlineCost()
1489 return llvm::InlineCost::getNever(); in getInlineCost()
1493 return llvm::InlineCost::getNever(); in getInlineCost()
1501 return llvm::InlineCost::getNever(); in getInlineCost()
1513 return InlineCost::getNever(); in getInlineCost()
1515 return InlineCost::getAlways(); in getInlineCost()
[all …]
DCMakeLists.txt34 InlineCost.cpp
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInlineCost.cpp1947 InlineCost llvm::getInlineCost( in getInlineCost()
1956 InlineCost llvm::getInlineCost( in getInlineCost()
1965 return llvm::InlineCost::getNever(); in getInlineCost()
1977 return llvm::InlineCost::getNever(); in getInlineCost()
1984 return llvm::InlineCost::getAlways(); in getInlineCost()
1985 return llvm::InlineCost::getNever(); in getInlineCost()
1992 return llvm::InlineCost::getNever(); in getInlineCost()
1996 return llvm::InlineCost::getNever(); in getInlineCost()
2001 return llvm::InlineCost::getNever(); in getInlineCost()
2009 return llvm::InlineCost::getNever(); in getInlineCost()
[all …]
DCMakeLists.txt35 InlineCost.cpp
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DInlineAlways.cpp44 InlineCost getInlineCost(CallSite CS) { in getInlineCost()
DInlineSimple.cpp44 InlineCost getInlineCost(CallSite CS) { in getInlineCost()
DInliner.cpp219 InlineCost IC = getInlineCost(CS); in shouldInline()
270 InlineCost IC2 = getInlineCost(CS2); in shouldInline()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/
DInliner.h55 virtual InlineCost getInlineCost(CallSite CS) = 0;
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DBasicInliner.cpp110 InlineCost IC = CA.getInlineCost(CS, NeverInline); in inlineFunctions()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GVNSink/
Dsink-common-code.ll523 ; - Consider argument setup/return mov'ing for calls, like InlineCost does.

12