[llvm] r188091 - Add description of function attribute 'minsize' in LangRef.rst.

Andrea Di Biagio Andrea_DiBiagio at sn.scee.net
Fri Aug 9 11:42:19 PDT 2013


Author: adibiagio
Date: Fri Aug  9 13:42:18 2013
New Revision: 188091

URL: http://llvm.org/viewvc/llvm-project?rev=188091&view=rev
Log:
Add description of function attribute 'minsize' in LangRef.rst.

Modified:
    llvm/trunk/docs/LangRef.rst

Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=188091&r1=188090&r2=188091&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Fri Aug  9 13:42:18 2013
@@ -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,





More information about the llvm-commits mailing list