[PATCH] D64418: [Docs][OpenCL] Documentation of C++ for OpenCL mode

Ronan Keryell via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 9 13:21:12 PDT 2019


keryell added a comment.

Good improvement!



================
Comment at: docs/LanguageExtensions.rst:1758
+to enqueue constructor initialization kernel that has a name
+``@_GLOBAL__sub_I_<compled file name>``. This kernel is only present if there
+are any global objects to be initialized in the compiled binary. One way to
----------------
"<compiled"?
Is there an issue if you link a program from several files with the same file names?


================
Comment at: docs/UsersManual.rst:2774
+
+Since C++ features are to be used on top of OpenCL C functionality all existing
+restrictions from OpenCL C v2.0 will inherently apply. All OpenCL C builtin types
----------------
functionality,


================
Comment at: docs/UsersManual.rst:2778
+
+To enable the new mode pass the following command line option when compiling .cl
+file ``-cl-std=c++`` or ``-std=c++``.
----------------
To enable the new mode, pass the following command line option when compiling a ``.cl``


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64418/new/

https://reviews.llvm.org/D64418





More information about the cfe-commits mailing list