summaryrefslogtreecommitdiff
path: root/docs/LangRef.html
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
commit570a4a5d9ca31f276a67502d1e0533d59d331fea (patch)
tree306ece29a43dcc79fe17a0665e6534ce137e4582 /docs/LangRef.html
parent8d535859e583183591503aa63cd4559271803920 (diff)
downloadllvm-570a4a5d9ca31f276a67502d1e0533d59d331fea.tar.gz
llvm-570a4a5d9ca31f276a67502d1e0533d59d331fea.tar.bz2
llvm-570a4a5d9ca31f276a67502d1e0533d59d331fea.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r--docs/LangRef.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index c028f6bfe5..fed2f80696 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -1083,6 +1083,11 @@ define void @f() optsize { ... }
function into callers whenever possible, ignoring any active inlining size
threshold for this caller.</dd>
+ <dt><tt><b>inlinehint</b></tt></dt>
+ <dd>This attribute indicates that the source code contained a hint that inlining
+ this function is desirable (such as the "inline" keyword in C/C++). It
+ is just a hint; it imposes no requirements on the inliner.</dd>
+
<dt><tt><b>noinline</b></tt></dt>
<dd>This attribute indicates that the inliner should never inline this
function in any situation. This attribute may not be used together with