[PATCH] D118605: [OpenCL] Add support of language builtins for OpenCL C 3.0

Anton Zabaznov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 7 06:40:53 PST 2022


azabaznov marked 4 inline comments as done.
azabaznov added inline comments.


================
Comment at: clang/lib/Basic/Builtins.cpp:79
+  bool OclBlocksUnsupported =
+      (LangOpts.getOpenCLCompatibleVersion() < 200 || !LangOpts.Blocks) &&
+      (BuiltinInfo.Langs & OCL_BLOCKS);
----------------
This check is needed as //-cl-std=CL1.2// can be used together with //-fblocks//. But in 3.0 block support requires //__opencl_c_device_enqueue// feature.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118605



More information about the cfe-commits mailing list