Author: pirama Date: Tue Jun 21 11:09:30 2016 New Revision: 273283 URL: http://llvm.org/viewvc/llvm-project?rev=273283&view=rev Log: Add documentation for RenderScript changes
Summary: - Document the new 'kernel' attribute - Mention RenderScript support in the Release Notes. Reviewers: rsmith Subscribers: tberghammer, danalbert, cfe-commits, srhines Differential Revision: http://reviews.llvm.org/D21212 Modified: cfe/trunk/docs/ReleaseNotes.rst cfe/trunk/include/clang/Basic/Attr.td cfe/trunk/include/clang/Basic/AttrDocs.td Modified: cfe/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ReleaseNotes.rst?rev=273283&r1=273282&r2=273283&view=diff ============================================================================== --- cfe/trunk/docs/ReleaseNotes.rst (original) +++ cfe/trunk/docs/ReleaseNotes.rst Tue Jun 21 11:09:30 2016 @@ -84,6 +84,11 @@ C Language Changes in Clang --------------------------- 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 Modified: cfe/trunk/include/clang/Basic/Attr.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?rev=273283&r1=273282&r2=273283&view=diff ============================================================================== --- cfe/trunk/include/clang/Basic/Attr.td (original) +++ cfe/trunk/include/clang/Basic/Attr.td Tue Jun 21 11:09:30 2016 @@ -734,7 +734,7 @@ def OpenCLNoSVM : Attr { def RenderScriptKernel : Attr { let Spellings = [GNU<"kernel">]; let Subjects = SubjectList<[Function]>; - let Documentation = [Undocumented]; + let Documentation = [RenderScriptKernelAttributeDocs]; let LangOpts = [RenderScript]; } Modified: cfe/trunk/include/clang/Basic/AttrDocs.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/AttrDocs.td?rev=273283&r1=273282&r2=273283&view=diff ============================================================================== --- cfe/trunk/include/clang/Basic/AttrDocs.td (original) +++ cfe/trunk/include/clang/Basic/AttrDocs.td Tue Jun 21 11:09:30 2016 @@ -2433,3 +2433,18 @@ def LTOVisibilityDocs : Documentation { See :doc:`LTOVisibility`. }]; } + +def RenderScriptKernelAttributeDocs : Documentation { + let Category = DocCatFunction; + let Content = [{ +``__attribute__((kernel))`` is used to mark a ``kernel`` function in +RenderScript. + +In RenderScript, ``kernel`` functions are used to express data-parallel +computations. The RenderScript runtime efficiently parallelizes ``kernel`` +functions to run on computational resources such as multi-core CPUs and GPUs. +See the RenderScript_ documentation for more information. + +.. _RenderScript: https://developer.android.com/guide/topics/renderscript/compute.html + }]; +} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits