[clang] f5193d8 - Add documentation headings for the OpenCL attributes.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 5 12:13:00 PST 2019
Author: Aaron Ballman
Date: 2019-12-05T15:12:01-05:00
New Revision: f5193d87feaedb411255e92979abd6b62522bc38
URL: https://github.com/llvm/llvm-project/commit/f5193d87feaedb411255e92979abd6b62522bc38
DIFF: https://github.com/llvm/llvm-project/commit/f5193d87feaedb411255e92979abd6b62522bc38.diff
LOG: Add documentation headings for the OpenCL attributes.
This fixes the documentation build.
Added:
Modified:
clang/include/clang/Basic/AttrDocs.td
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index d47315a3f518..c309785a534c 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -3066,6 +3066,7 @@ More details can be found in the OpenCL C language Spec v2.0, Section 6.5.
def OpenCLAddressSpaceGenericDocs : Documentation {
let Category = DocOpenCLAddressSpaces;
+ let Heading = "__generic, generic, [[clang::opencl_generic]]";
let Content = [{
The generic address space attribute is only available with OpenCL v2.0 and later.
It can be used with pointer types. Variables in global and local scope and
@@ -3078,6 +3079,7 @@ spaces.
def OpenCLAddressSpaceConstantDocs : Documentation {
let Category = DocOpenCLAddressSpaces;
+ let Heading = "__constant, constant, [[clang::opencl_constant]]";
let Content = [{
The constant address space attribute signals that an object is located in
a constant (non-modifiable) memory region. It is available to all work items.
@@ -3089,6 +3091,7 @@ have an initializer.
def OpenCLAddressSpaceGlobalDocs : Documentation {
let Category = DocOpenCLAddressSpaces;
+ let Heading = "__global, global, [[clang::opencl_global]]";
let Content = [{
The global address space attribute specifies that an object is allocated in
global memory, which is accessible by all work items. The content stored in this
@@ -3101,6 +3104,7 @@ scope) variables and static local variable as well.
def OpenCLAddressSpaceLocalDocs : Documentation {
let Category = DocOpenCLAddressSpaces;
+ let Heading = "__local, local, [[clang::opencl_local]]";
let Content = [{
The local address space specifies that an object is allocated in the local (work
group) memory area, which is accessible to all work items in the same work
@@ -3113,6 +3117,7 @@ space are allowed. Local address space variables cannot have an initializer.
def OpenCLAddressSpacePrivateDocs : Documentation {
let Category = DocOpenCLAddressSpaces;
+ let Heading = "__private, private, [[clang::opencl_private]]";
let Content = [{
The private address space specifies that an object is allocated in the private
(work item) memory. Other work items cannot access the same memory area and its
More information about the cfe-commits
mailing list