summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2017-08-14 21:15:13 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2017-08-14 21:15:13 +0000
commit53a5fbb45fa45cba48963a6b17defa4c4f072d9d (patch)
tree750f3d0408337c88a5ee993680853096b47bbbdf /llvm/docs
parent8bf15723ae9cf59a7171981b1b0257de4d48e344 (diff)
downloadbcm5719-llvm-53a5fbb45fa45cba48963a6b17defa4c4f072d9d.tar.gz
bcm5719-llvm-53a5fbb45fa45cba48963a6b17defa4c4f072d9d.zip
Add strictfp attribute to prevent unwanted optimizations of libm calls
Differential Revision: https://reviews.llvm.org/D34163 llvm-svn: 310885
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 934c69dde03..f2276905ece 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -1644,6 +1644,12 @@ example:
If a function that has an ``sspstrong`` attribute is inlined into a
function that doesn't have an ``sspstrong`` attribute, then the
resulting function will have an ``sspstrong`` attribute.
+``strictfp``
+ This attribute indicates that the function was called from a scope that
+ requires strict floating point semantics. LLVM will not attempt any
+ optimizations that require assumptions about the floating point rounding
+ mode or that might alter the state of floating point status flags that
+ might otherwise be set or cleared by calling this function.
``"thunk"``
This attribute indicates that the function will delegate to some other
function with a tail call. The prototype of a thunk should not be used for
OpenPOWER on IntegriCloud