aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2013-08-09 18:42:18 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2013-08-09 18:42:18 +0000
commit1edaeb61b29cbc8b834fb58ba80aa0db4bfb849d (patch)
tree198745c2d520cf57f6f256a2641fb1f1f937196e
parent02f0799d846444d49acdea8aa66dd818937dc682 (diff)
downloadexternal_llvm-1edaeb61b29cbc8b834fb58ba80aa0db4bfb849d.zip
external_llvm-1edaeb61b29cbc8b834fb58ba80aa0db4bfb849d.tar.gz
external_llvm-1edaeb61b29cbc8b834fb58ba80aa0db4bfb849d.tar.bz2
Add description of function attribute 'minsize' in LangRef.rst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188091 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/LangRef.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/LangRef.rst b/docs/LangRef.rst
index 5b8ecd8..a8feb12 100644
--- a/docs/LangRef.rst
+++ b/docs/LangRef.rst
@@ -833,6 +833,11 @@ example:
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.
+``minsize``
+ This attribute suggests that optimization passes and code generator
+ passes make choices that keep the code size of this function as small
+ as possible and perform optimizations that may sacrifice runtime
+ performance in order to minimize the size of the generated code.
``naked``
This attribute disables prologue / epilogue emission for the
function. This can have very system-specific consequences.
@@ -877,7 +882,8 @@ example:
``optsize``
This attribute suggests that optimization passes and code generator
passes make choices that keep the code size of this function low,
- and otherwise do optimizations specifically to reduce code size.
+ and otherwise do optimizations specifically to reduce code size as
+ long as they do not significantly impact runtime performance.
``readnone``
On a function, this attribute indicates that the function computes its
result (or decides to unwind an exception) based strictly on its arguments,