diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2013-08-23 11:53:55 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2013-08-23 11:53:55 +0000 |
commit | 5768bb8d77892926dff0d078b1fb08c14ea791f3 (patch) | |
tree | 3a2f35fef53650a9e8988416a19f8787d0186f3d /docs/LangRef.rst | |
parent | a550b51bac50493db75a7b5788a3f2c3b62fd913 (diff) | |
download | external_llvm-5768bb8d77892926dff0d078b1fb08c14ea791f3.zip external_llvm-5768bb8d77892926dff0d078b1fb08c14ea791f3.tar.gz external_llvm-5768bb8d77892926dff0d078b1fb08c14ea791f3.tar.bz2 |
Add function attribute 'optnone'.
This function attribute indicates that the function is not optimized
by any optimization or code generator passes with the
exception of interprocedural optimization passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.rst')
-rw-r--r-- | docs/LangRef.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 68ac96f..fe23ac0 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -879,6 +879,17 @@ example: This function attribute indicates that the function never returns with an unwind or exceptional control flow. If the function does unwind, its runtime behavior is undefined. +``optnone`` + This function attribute indicates that the function is not optimized + by any optimization or code generator passes with the + exception of interprocedural optimization passes. + This attribute cannot be used together with the ``alwaysinline`` + attribute; this attribute is also incompatible + with the ``minsize`` attribute and the ``optsize`` attribute. + + The inliner should never inline this function in any situation. + Only functions with the ``alwaysinline`` attribute are valid + candidates for inlining inside the body of this function. ``optsize`` This attribute suggests that optimization passes and code generator passes make choices that keep the code size of this function low, |