OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:InlineCost
(Results
1 - 3
of
3
) 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/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
...]
Completed in 232 milliseconds