OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:InlineCost
(Results
1 - 2
of
2
) sorted by null
/external/llvm/include/llvm/Analysis/
InlineCost.h
1
//===-
InlineCost
.h - Cost analysis for inliner -----------------*- C++ -*-===//
43
///
InlineCost
- Represent the cost of inlining a function. This
48
class
InlineCost
{
72
InlineCost
(int C, int T) {
74
assert(getCost() == C && "Cost exceeds
InlineCost
precision");
77
static
InlineCost
get(int Cost) { return
InlineCost
(Cost, Value); }
78
static
InlineCost
getAlways() { return
InlineCost
(0, Always); }
79
static
InlineCost
getNever() { return InlineCost(0, Never);
[
all
...]
/external/llvm/lib/Analysis/
InlineCost.cpp
1
//===-
InlineCost
.cpp - Cost analysis for inliner -------------------------===//
14
#include "llvm/Analysis/
InlineCost
.h"
370
//
InlineCost
- This value measures how good of an inline candidate this call
374
int
InlineCost
= 0;
389
InlineCost
-= CalleeFI->ArgumentWeights[ArgNo].AllocaWeight;
395
InlineCost
-= CalleeFI->ArgumentWeights[ArgNo].ConstantWeight;
401
InlineCost
-= (CS.arg_size() * InlineConstants::InstrCost);
407
InlineCost
+= CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty;
410
InlineCost
+= CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost;
412
return
InlineCost
;
[
all
...]
Completed in 2521 milliseconds