llvm-project
423bdb2b - [OpenCL] Add missing OpenCL 3.0 features to OpenCLExtensions.def; revert header-only macros (#168016)

Commit
101 days ago
[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.
Author
Parents
Loading