r247374 - Docs: Document __builtin_nontemporal_load and __builtin_nontemporal_store.
Michael Zolotukhin via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 19:01:15 PDT 2015
Author: mzolotukhin
Date: Thu Sep 10 21:01:15 2015
New Revision: 247374
URL: http://llvm.org/viewvc/llvm-project?rev=247374&view=rev
Log:
Docs: Document __builtin_nontemporal_load and __builtin_nontemporal_store.
Summary:
In r247104 I added the builtins for generating non-temporal memory operations,
but now I realized that they lack documentation. This patch adds some.
Differential Revision: http://reviews.llvm.org/D12785
Modified:
cfe/trunk/docs/LanguageExtensions.rst
Modified: cfe/trunk/docs/LanguageExtensions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.rst?rev=247374&r1=247373&r2=247374&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.rst (original)
+++ cfe/trunk/docs/LanguageExtensions.rst Thu Sep 10 21:01:15 2015
@@ -1779,6 +1779,26 @@ care should be exercised.
For these reasons the higher level atomic primitives should be preferred where
possible.
+Non-temporal load/store builtins
+--------------------------------
+
+Clang provides overloaded builtins allowing generation of non-temporal memory
+accesses.
+
+.. code-block:: c
+
+ T __builtin_nontemporal_load(T *addr);
+ void __builtin_nontemporal_store(T value, T *addr);
+
+The types ``T`` currently supported are:
+
+* Integer types.
+* Floating-point types.
+* Vector types.
+
+Note that the compiler does not guarantee that non-temporal loads or stores
+will be used.
+
Non-standard C++11 Attributes
=============================
More information about the cfe-commits
mailing list