[PATCH] D21212: Add documentation for RenderScript changes
Pirama Arumuga Nainar via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 9 16:42:20 PDT 2016
pirama created this revision.
pirama added a reviewer: rsmith.
pirama added subscribers: srhines, cfe-commits.
Herald added subscribers: danalbert, tberghammer.
- Document the new 'kernel' attribute
- Mention RenderScript support in the Release Notes.
http://reviews.llvm.org/D21212
Files:
docs/ReleaseNotes.rst
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
Index: include/clang/Basic/AttrDocs.td
===================================================================
--- include/clang/Basic/AttrDocs.td
+++ include/clang/Basic/AttrDocs.td
@@ -2433,3 +2433,12 @@
See :doc:`LTOVisibility`.
}];
}
+
+def RenderScriptKernelAttributeDocs : Documentation {
+ let Category = DocCatFunction;
+ let Content = [{
+``__attribute__((kernel))`` is used to mark a ``kernel`` function in RenderScript_. See the RenderScript_ documentation for more information.
+
+.. _RenderScript: https://developer.android.com/guide/topics/renderscript/compute.html
+ }];
+}
Index: include/clang/Basic/Attr.td
===================================================================
--- include/clang/Basic/Attr.td
+++ include/clang/Basic/Attr.td
@@ -731,7 +731,7 @@
def Kernel : Attr {
let Spellings = [GNU<"kernel">];
let Subjects = SubjectList<[Function]>;
- let Documentation = [Undocumented];
+ let Documentation = [RenderScriptKernelAttributeDocs];
}
def Deprecated : InheritableAttr {
Index: docs/ReleaseNotes.rst
===================================================================
--- docs/ReleaseNotes.rst
+++ docs/ReleaseNotes.rst
@@ -84,6 +84,11 @@
---------------------------
The -faltivec and -maltivec flags no longer silently include altivec.h on Power platforms.
+`RenderScript
+<https://developer.android.com/guide/topics/renderscript/compute.html>`_
+support added to the Frontend and enabled by the '-x renderscript' option or
+the '.rs' file extension.
+
...
C11 Feature Support
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21212.60280.patch
Type: text/x-patch
Size: 1534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160609/bf88cd8c/attachment.bin>
More information about the cfe-commits
mailing list