[PATCH] D67839: [FPEnv] Document requirement of function attributes with constrained floating point
Kevin P. Neal via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 10:49:01 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL373002: Document requirement of function attributes with constrained floating (authored by kpn, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D67839?vs=221804&id=221987#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67839/new/
https://reviews.llvm.org/D67839
Files:
llvm/trunk/docs/LangRef.rst
Index: llvm/trunk/docs/LangRef.rst
===================================================================
--- llvm/trunk/docs/LangRef.rst
+++ llvm/trunk/docs/LangRef.rst
@@ -1786,7 +1786,8 @@
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 @@
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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67839.221987.patch
Type: text/x-patch
Size: 1445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190926/edc40939/attachment.bin>
More information about the llvm-commits
mailing list