summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-08-26 01:08:21 +0000
committerDale Johannesen <dalej@apple.com>2009-08-26 01:08:21 +0000
commit2aaf5395640d33eb2db8b7c41829e23459ab54f6 (patch)
tree1dda5eb2c9e6235d3d26225d0348856a9c6c3d29 /llvm/docs
parenta1b4dd96f298008e10f5ff09cf7b25556fab96b8 (diff)
downloadbcm5719-llvm-2aaf5395640d33eb2db8b7c41829e23459ab54f6.tar.gz
bcm5719-llvm-2aaf5395640d33eb2db8b7c41829e23459ab54f6.zip
Add an 'inline hint' attribute to represent source
code hints that it would be a good idea to inline a function ("inline" keyword). No functional change yet; FEs do not emit this and inliner does not use it. llvm-svn: 80063
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index ab86271f333..44ef03b4efe 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -1042,6 +1042,11 @@ define void @f() optsize
function into callers whenever possible, ignoring any active inlining size
threshold for this caller.</dd>
+ <dt><tt>inlinehint</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>noinline</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
OpenPOWER on IntegriCloud