[all-commits] [llvm/llvm-project] 4138e7: [OpenCL] Add missing C++ legacy atomics with generic
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Thu Apr 22 07:09:07 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4138e7bd7692c27a4959191939bba899b4f240da
https://github.com/llvm/llvm-project/commit/4138e7bd7692c27a4959191939bba899b4f240da
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2021-04-22 (Thu, 22 Apr 2021)
Changed paths:
M clang/lib/Sema/OpenCLBuiltins.td
M clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
Log Message:
-----------
[OpenCL] Add missing C++ legacy atomics with generic
https://reviews.llvm.org/D62335 added some C++ for OpenCL specific
builtins to opencl-c.h, but these were not mirrored to the TableGen
builtin functions yet.
The TableGen builtins machinery does not have dedicated version
handling for C++ for OpenCL at the moment: all builtin versioning is
tied to `LangOpts.OpenCLVersion` (i.e., the OpenCL C version). As a
workaround, to add builtins that are only available in C++ for OpenCL,
we define a function extension guarded by the __cplusplus macro.
Differential Revision: https://reviews.llvm.org/D100935
Fixes PR50041.
More information about the All-commits
mailing list