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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273283
91177308-0d34-0410-b5e6-
96231b3b80d8
---------------------------
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
def RenderScriptKernel : Attr {
let Spellings = [GNU<"kernel">];
let Subjects = SubjectList<[Function]>;
- let Documentation = [Undocumented];
+ let Documentation = [RenderScriptKernelAttributeDocs];
let LangOpts = [RenderScript];
}
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
+ }];
+}