[PATCH] D59843: [PowerPC] Add support for __dcbf builtin
Ahsan Saghir via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 9 21:52:47 PDT 2019
saghir updated this revision to Diff 194442.
saghir added a comment.
Added documentation in clang/docs/LanguageExtensions.rst
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59843/new/
https://reviews.llvm.org/D59843
Files:
clang/docs/LanguageExtensions.rst
Index: clang/docs/LanguageExtensions.rst
===================================================================
--- clang/docs/LanguageExtensions.rst
+++ clang/docs/LanguageExtensions.rst
@@ -1945,6 +1945,31 @@
These builtins are intended for use in the implementation of ``std::allocator``
and other similar allocation libraries, and are only available in C++.
+PowerPC cache builtins
+----------------------
+
+The PowerPC architecture specifies instructions implementing cache operations.
+Clang provides builtins that give direct programmer access to these cache
+instructions.
+
+Currently the following builtins are implemented in clang:
+
+``__builtin_dcbf`` copies the contents of a modified block from the data cache
+to main memory and flushes the copy from the data cache.
+
+**Syntax**:
+
+.. code-block:: c
+
+ void __dcbf(const void* addr); /* Data Cache Block Flush */
+
+**Example of Use**:
+
+.. code-block:: c
+
+ int a = 1;
+ __builtin_dcbf (&a);
+
Multiprecision Arithmetic Builtins
----------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59843.194442.patch
Type: text/x-patch
Size: 1047 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190410/a38ee1e0/attachment.bin>
More information about the llvm-commits
mailing list