[PATCH] D20249: [OpenCL] Hierarchical/dynamic parallelism - enqueue kernel in OpenCL 2.0

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Fri May 13 10:54:31 PDT 2016


Anastasia added inline comments.

================
Comment at: include/clang/Basic/Builtins.h:39
@@ -38,3 +38,3 @@
   MS_LANG = 0x10,     // builtin requires MS mode.
-  OCLC_LANG = 0x20,   // builtin for OpenCL C only.
+  OCLC20_LANG = 0x20, // builtin for OpenCL C only.
   ALL_LANGUAGES = C_LANG | CXX_LANG | OBJC_LANG, // builtin for all languages.
----------------
This is necessary in order to remove CL2.0 BIFs from the list of Clang identifiers in other CL versions.

================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7820
@@ +7819,3 @@
+def err_opencl_function_not_supported : Error<
+  "this function is not supported in this version of CL">;
+def err_opencl_enqueue_kernel_incorrect_args : Error<
----------------
This diagnostic should follow the latest version reporting style.


http://reviews.llvm.org/D20249





More information about the cfe-commits mailing list