[PATCH] D12785: Document __builtin_nontemporal_load and __builtin_nontemporal_store.

Michael Zolotukhin via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 10 18:44:16 PDT 2015


mzolotukhin updated this revision to Diff 34521.
mzolotukhin added a comment.

- Remove paragraph about changing program behavior (since we shouldn't change it anyway).


http://reviews.llvm.org/D12785

Files:
  docs/LanguageExtensions.rst

Index: docs/LanguageExtensions.rst
===================================================================
--- docs/LanguageExtensions.rst
+++ docs/LanguageExtensions.rst
@@ -1778,6 +1778,26 @@
 For these reasons the higher level atomic primitives should be preferred where
 possible.
 
+Non-temporal load/store builtins
+--------------------------------
+
+Clang provides overloaded builtins allowing to generate 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
+would be used.
+
 Non-standard C++11 Attributes
 =============================
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12785.34521.patch
Type: text/x-patch
Size: 828 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150911/13110180/attachment.bin>


More information about the cfe-commits mailing list