[PATCH] D104061: [LangRef] clarify the meaning of noimplicitfloat

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 10 14:21:26 PDT 2021


inglorion created this revision.
inglorion added reviewers: efriedma, salim.nasser, rnk.
Herald added a subscriber: jdoerfert.
inglorion requested review of this revision.
Herald added a project: LLVM.

Adds some more text to the documentation for the noimplicitfloat
function attribute. Hopefully, this makes it clearer what
qualifies an implicit vs. explicit float, without becoming overly
long or going into target-specific details.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104061

Files:
  llvm/docs/LangRef.rst


Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -1634,7 +1634,11 @@
     memory on it's behalf.  As a result, perhaps surprisingly, a ``nofree``
     function can return a pointer to a previously deallocated memory object.
 ``noimplicitfloat``
-    This attributes disables implicit floating-point instructions.
+    Disallows implicit floating-point code. This inhibits optimizations
+    that use floating-point code for operations that are not nominally
+    floating-point. LLVM instructions that perform floating-point
+    operations or require access to floating-point registers may still
+    cause floating-point code to be generated.
 ``noinline``
     This attribute indicates that the inliner should never inline this
     function in any situation. This attribute may not be used together


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104061.351262.patch
Type: text/x-patch
Size: 906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210610/f9c19d2c/attachment.bin>


More information about the llvm-commits mailing list