[all-commits] [llvm/llvm-project] 423bdb: [OpenCL] Add missing OpenCL 3.0 features to OpenCL...
Wenju He via All-commits
all-commits at lists.llvm.org
Thu Nov 20 17:18:04 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 423bdb2bf257e19271d62e60b6339d84b8ce05aa
https://github.com/llvm/llvm-project/commit/423bdb2bf257e19271d62e60b6339d84b8ce05aa
Author: Wenju He <wenju.he at intel.com>
Date: 2025-11-21 (Fri, 21 Nov 2025)
Changed paths:
M clang/docs/OpenCLSupport.rst
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/OpenCLExtensions.def
M clang/lib/Basic/Targets/AMDGPU.h
M clang/lib/Headers/opencl-c-base.h
M clang/test/Headers/opencl-c-header.cl
M clang/test/SemaOpenCL/extension-version.cl
M clang/test/SemaOpenCL/features.cl
Log Message:
-----------
[OpenCL] Add missing OpenCL 3.0 features to OpenCLExtensions.def; revert header-only macros (#168016)
Adds the remaining optional feature macros from the OpenCL C 3.0 spec
(section 6.2.1 table). Targets can now enable these via
OpenCLFeaturesMap returned by getSupportedOpenCLOpts().
Revert a84599f177a6 (header‑only feature macros).
Header‑only macros are difficult to disable on SPIR-V targets,
and the prior undef approach (a60b8f468119) does not scale.
After this PR, they can be disabled via `-cl-ext=-<feature>`.
https://github.com/KhronosGroup/OpenCL-Docs/issues/1328 also notes that
unconditional definition of the header‑only macros in opencl-c-base.h
should be removed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list