HomeSort by relevance Sort by last modified time
    Searched defs:InlineCost (Results 1 - 5 of 5) sorted by null

  /external/llvm/include/llvm/Analysis/
InlineCost.h 1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===//
52 class InlineCost {
65 InlineCost(int Cost, int Threshold) : Cost(Cost), Threshold(Threshold) {}
68 static InlineCost get(int Cost, int Threshold) {
71 return InlineCost(Cost, Threshold);
73 static InlineCost getAlways() {
74 return InlineCost(AlwaysInlineCost, 0);
76 static InlineCost getNever() {
77 return InlineCost(NeverInlineCost, 0);
90 /// It is an error to call this on an "always" or "never" InlineCost
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
InlineCost.h 1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===//
65 class InlineCost {
78 InlineCost(int Cost, int Threshold) : Cost(Cost), Threshold(Threshold) {}
81 static InlineCost get(int Cost, int Threshold) {
84 return InlineCost(Cost, Threshold);
86 static InlineCost getAlways() {
87 return InlineCost(AlwaysInlineCost, 0);
89 static InlineCost getNever() {
90 return InlineCost(NeverInlineCost, 0);
103 /// It is an error to call this on an "always" or "never" InlineCost
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/Analysis/
InlineCost.h 1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===//
44 /// InlineCost - Represent the cost of inlining a function. This
49 class InlineCost {
73 InlineCost(int C, int T) {
75 assert(getCost() == C && "Cost exceeds InlineCost precision");
78 static InlineCost get(int Cost) { return InlineCost(Cost, Value); }
79 static InlineCost getAlways() { return InlineCost(0, Always); }
80 static InlineCost getNever() { return InlineCost(0, Never);
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Analysis/
InlineCost.cpp 1 //===- InlineCost.cpp - Cost analysis for inliner -------------------------===//
14 #include "llvm/Analysis/InlineCost.h"
378 // InlineCost - This value measures how good of an inline candidate this call
382 int InlineCost = 0;
397 InlineCost -= CalleeFI->ArgumentWeights[ArgNo].AllocaWeight;
403 InlineCost -= CalleeFI->ArgumentWeights[ArgNo].ConstantWeight;
409 InlineCost -= (CS.arg_size() * InlineConstants::InstrCost);
415 InlineCost += CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty;
418 InlineCost += CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost;
420 return InlineCost;
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
PartialInlining.cpp 25 #include "llvm/Analysis/InlineCost.h"
331 // Compute the 'InlineCost' of block BB. InlineCost is a proxy used to
766 InlineCost IC = getInlineCost(CS, getInlineParams(), CalleeTTI,
831 // TODO: Ideally we should share Inliner's InlineCost Analysis code.
832 // For now use a simplified version. The returned 'InlineCost' will be used
835 int InlineCost = 0;
    [all...]

Completed in 136 milliseconds