/external/llvm/include/llvm/Analysis/ |
D | InlineCost.h | 52 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/ |
D | InlineCost.h | 49 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/ |
D | InlineCost.h | 65 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/ |
D | InlineCost.cpp | 382 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/ |
D | InlineAlways.cpp | 54 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()
|
D | Inliner.cpp | 232 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()
|
D | InlineSimple.cpp | 61 InlineCost getInlineCost(CallSite CS) override { in getInlineCost()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUInline.cpp | 67 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/ |
D | AlwaysInliner.cpp | 110 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()
|
D | Inliner.cpp | 298 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()
|
D | PartialInlining.cpp | 766 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()
|
D | InlineSimple.cpp | 55 InlineCost getInlineCost(CallSite CS) override { in getInlineCost()
|
D | SampleProfile.cpp | 728 InlineCost Cost = getInlineCost(CS, Params, GetTTI(*CalledFunction), GetAC, in inlineCallInstruction()
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | InlinerPass.h | 26 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/ |
D | InlinerPass.h | 25 class InlineCost; variable 66 virtual InlineCost getInlineCost(CallSite CS) = 0;
|
/external/llvm/lib/Analysis/ |
D | InlineCost.cpp | 1447 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 …]
|
D | CMakeLists.txt | 34 InlineCost.cpp
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InlineCost.cpp | 1947 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 …]
|
D | CMakeLists.txt | 35 InlineCost.cpp
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | InlineAlways.cpp | 44 InlineCost getInlineCost(CallSite CS) { in getInlineCost()
|
D | InlineSimple.cpp | 44 InlineCost getInlineCost(CallSite CS) { in getInlineCost()
|
D | Inliner.cpp | 219 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/ |
D | Inliner.h | 55 virtual InlineCost getInlineCost(CallSite CS) = 0;
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | BasicInliner.cpp | 110 InlineCost IC = CA.getInlineCost(CS, NeverInline); in inlineFunctions()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GVNSink/ |
D | sink-common-code.ll | 523 ; - Consider argument setup/return mov'ing for calls, like InlineCost does.
|