aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-14 17:32:59 +0000
committerChris Lattner <sabre@nondot.org>2008-07-14 17:32:59 +0000
commit403efd48187926cdb5555b2d73e311695639c4d7 (patch)
treea12edd8226634f408c831621d41e218f203447b2 /include
parent38b7a7cc96b46cee339eebbffb578e9e3945cf79 (diff)
downloadexternal_llvm-403efd48187926cdb5555b2d73e311695639c4d7.zip
external_llvm-403efd48187926cdb5555b2d73e311695639c4d7.tar.gz
external_llvm-403efd48187926cdb5555b2d73e311695639c4d7.tar.bz2
Reapply r53540, now with the matching header!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Utils/InlineCost.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/InlineCost.h b/include/llvm/Transforms/Utils/InlineCost.h
index 24d3fc7..9e044d8 100644
--- a/include/llvm/Transforms/Utils/InlineCost.h
+++ b/include/llvm/Transforms/Utils/InlineCost.h
@@ -38,6 +38,10 @@ namespace llvm {
// FunctionInfo - For each function, calculate the size of it in blocks and
// instructions.
struct FunctionInfo {
+ /// NeverInline - True if this callee should never be inlined into a
+ /// caller.
+ bool NeverInline;
+
/// NumInsts, NumBlocks - Keep track of how large each function is, which
/// is used to estimate the code size cost of inlining it.
unsigned NumInsts, NumBlocks;
@@ -53,7 +57,8 @@ namespace llvm {
/// entry here.
std::vector<ArgInfo> ArgumentWeights;
- FunctionInfo() : NumInsts(0), NumBlocks(0), NumVectorInsts(0) {}
+ FunctionInfo() : NeverInline(false), NumInsts(0), NumBlocks(0),
+ NumVectorInsts(0) {}
/// analyzeFunction - Fill in the current structure with information
/// gleaned from the specified function.