]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jan 2016 18:02:25 +0000 (18:02 +0000)
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jan 2016 18:02:25 +0000 (18:02 +0000)
PR 1078
gcc/
* doc/extend.texi (Nvidia PDX Function Attributes): New section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232136 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/extend.texi

index 619bae65a85d4f73fa20f6c774f691c72432eed6..215a366b02e9b39c4a5118a1a00908f9e2b3ff2e 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-07  Sandra Loosemore <sandra@codesourcery.com>
+
+       PR 1078
+       * doc/extend.texi (Nvidia PDX Function Attributes): New section.
+
 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/69171
index f6f561f1f6d6e0cd513b491a2925bd3f30bfba61..35d7e57038242d5014b15cbc23222e5eeb1883a6 100644 (file)
@@ -2271,6 +2271,7 @@ GCC plugins may provide their own attributes.
 * MSP430 Function Attributes::
 * NDS32 Function Attributes::
 * Nios II Function Attributes::
+* Nvidia PTX Function Attributes::
 * PowerPC Function Attributes::
 * RL78 Function Attributes::
 * RX Function Attributes::
@@ -4633,6 +4634,22 @@ named @var{name}.
 @end table
 @end table
 
+@node Nvidia PTX Function Attributes
+@subsection Nvidia PTX Function Attributes
+
+These function attributes are supported by the Nvidia PTX back end:
+
+@table @code
+@item kernel
+@cindex @code{kernel} attribute, Nvidia PTX
+This attribute indicates that the corresponding function should be compiled
+as a kernel function, which can be invoked from the host via the CUDA RT 
+library.
+By default functions are only callable only from other PTX functions.
+
+Kernel functions must have @code{void} return type.
+@end table
+
 @node PowerPC Function Attributes
 @subsection PowerPC Function Attributes