summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin P. Neal <kevin.neal@sas.com>2019-09-26 17:50:25 +0000
committerKevin P. Neal <kevin.neal@sas.com>2019-09-26 17:50:25 +0000
commit875d20bcde2e2b1990f3a4bdfc800959e8a72ed6 (patch)
tree3f6459c81d24c626db8861fb103585988958c86d
parent22d225a2b2f75cef357d1acdcca0be579fa4114d (diff)
Document requirement of function attributes with constrained floating
point. Reviewed by: andrew.w.kaylor, uweigand, efriedma Approved by: andrew.w.kaylor Differential Revision: https://reviews.llvm.org/D67839 llvm-svn: 373002
-rw-r--r--llvm/docs/LangRef.rst14
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 59c4469fb9fd..5e2d627d8868 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -1786,7 +1786,8 @@ example:
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.
+ might otherwise be set or cleared by calling this function. LLVM will
+ not introduce any new floating-point instructions that may trap.
``"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
@@ -15155,6 +15156,17 @@ example, a series of FP operations that each may raise exceptions may be
vectorized into a single instruction that raises each unique exception a single
time.
+Required Function Attributes:
+"""""""""""""""""""""""""""""
+
+Proper :ref:`function attributes <fnattrs>` usage is required for the
+constrained intrinsics to function correctly.
+
+All function *calls* done in a function that uses constrained floating
+point intrinsics must have the ``strictfp`` attribute.
+
+All function *definitions* that use constrained floating point intrinsics
+must have the ``strictfp`` attribute.
'``llvm.experimental.constrained.fadd``' Intrinsic
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^