[PATCH] D108461: [OpenCL] Supports optional generic address space in C++ for OpenCL 2021

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 23 02:35:56 PDT 2021


Anastasia added inline comments.


================
Comment at: clang/lib/Headers/opencl-c-base.h:33
 // Define feature macros for OpenCL C 2.0
 #if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ == 200)
+#if (__OPENCL_CPP_VERSION__ != 202100)
----------------
I think we should just check here that C++ for OpenCL version is 1.0 so the same as for OpenCL C 2.0 because the same logic applies to it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108461



More information about the cfe-commits mailing list