[clang] [Clang] Add support for missing OpenCL extensions (PR #129777)

2025-03-06 Thread Sven van Haastregt via cfe-commits
svenvh wrote: > When someone passes the `-Xclang -cl-ext=+all`, the compiler should add > defines for all the supported extensions. Indeed; we already have such a list in `opencl-c-base.h` to enable all header-only extensions for the `spir`/`spirv` targets, so it should be easy to make `-cl-e

[clang] [Clang] Add support for missing OpenCL extensions (PR #129777)

2025-03-05 Thread Victor Mustya via cfe-commits
vmustya wrote: > That way, header-only extensions don't need to be added to > `OpenCLExtensions.def` @svenvh, in any case, we need a list of all the supported extensions, including the header ones. When someone passes the `-Xclang -cl-ext=+all`, the compiler should add defines for all the sup

[clang] [Clang] Add support for missing OpenCL extensions (PR #129777)

2025-03-05 Thread Sven van Haastregt via cfe-commits
svenvh wrote: > @svenvh, I'm trying to unify the extensions enablement in the user interface. > We can enable or disable some of the extensions with the `-Xclang > -cl-ext=+extension` command line options. For example, a user can pass > `-Xclang -cl-ext=+cl_khr_subgroups` successfully, but the

[clang] [Clang] Add support for missing OpenCL extensions (PR #129777)

2025-03-05 Thread Victor Mustya via cfe-commits
vmustya wrote: > What is the motivation for this change? We are trying to move away from > adding extensions to this file for extensions that only add builtin > functions, see e.g. https://reviews.llvm.org/D92231 . What functionality are > you gaining by adding them here? @svenvh, I'm trying

[clang] [Clang] Add support for missing OpenCL extensions (PR #129777)

2025-03-05 Thread Sven van Haastregt via cfe-commits
https://github.com/svenvh requested changes to this pull request. What is the motivation for this change? We are trying to move away from adding extensions to this file for extensions that only add builtin functions, see e.g. https://reviews.llvm.org/D92231 . What functionality are you gainin

[clang] [Clang] Add support for missing OpenCL extensions (PR #129777)

2025-03-04 Thread Michal Paszkowski via cfe-commits
https://github.com/michalpaszkowski approved this pull request. https://github.com/llvm/llvm-project/pull/129777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits