Author: Anastasia Stulova Date: 2021-03-26T19:24:07Z New Revision: 706c1dc266d247232243b83a06a4904f527dc245
URL: https://github.com/llvm/llvm-project/commit/706c1dc266d247232243b83a06a4904f527dc245 DIFF: https://github.com/llvm/llvm-project/commit/706c1dc266d247232243b83a06a4904f527dc245.diff LOG: [OpenCL][Docs] Minor update about C++ for OpenCL in UsersManual. Added: Modified: clang/docs/UsersManual.rst Removed: ################################################################################ diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 7709556fbace..6c8d297e618f 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -3237,6 +3237,18 @@ compiling ``.cl`` file ``-cl-std=clc++``, ``-cl-std=CLC++``, ``-std=clc++`` or clang -cl-std=clc++ test.cl +Alternatively, files with ``.clcpp`` extension are compiled with the C++ for OpenCL +mode. + + .. code-block:: console + + clang test.clcpp + +C++ for OpenCL kernel sources can also be compiled online in drivers supporting +`cl_ext_cxx_for_opencl +<https://www.khronos.org/registry/OpenCL/extensions/ext/cl_ext_cxx_for_opencl.html>`_ +extension. + Constructing and destroying global objects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits