aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-06 01:16:28 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-06 01:16:28 +0000
commit74bb06c0f02e650ea9ec73729f41a620fc55a8ee (patch)
treeafca8ce6c36562b58ca308a8e9ac59667e982e9e /llvm/lib/Target/CppBackend/CPPBackend.cpp
parenta10e65c852e1a4e27d57960276c6b0ef691fda71 (diff)
downloadllvm-74bb06c0f02e650ea9ec73729f41a620fc55a8ee.zip
llvm-74bb06c0f02e650ea9ec73729f41a620fc55a8ee.tar.gz
llvm-74bb06c0f02e650ea9ec73729f41a620fc55a8ee.tar.bz2
Reintroduce the InlineHint function attribute.
This time it's for real! I am going to hook this up in the frontends as well. The inliner has some experimental heuristics for dealing with the inline hint. When given a -respect-inlinehint option, functions marked with the inline keyword are given a threshold just above the default for -O3. We need some experiments to determine if that is the right thing to do. llvm-svn: 95466
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index 4f3f004..3dd8ca7 100644
--- a/llvm/lib/Target/CppBackend/CPPBackend.cpp
+++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp
@@ -470,6 +470,7 @@ namespace {
HANDLE_ATTR(Nest);
HANDLE_ATTR(ReadNone);
HANDLE_ATTR(ReadOnly);
+ HANDLE_ATTR(InlineHint);
HANDLE_ATTR(NoInline);
HANDLE_ATTR(AlwaysInline);
HANDLE_ATTR(OptimizeForSize);