Skip to content

Commit

Permalink
Add description of function attribute 'minsize' in LangRef.rst.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188091 91177308-0d34-0410-b5e6-96231b3b80d8
adibiagio committed Aug 9, 2013
1 parent 02f0799 commit 1edaeb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/LangRef.rst
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 1edaeb6

Please sign in to comment.