svenvh wrote: I don't think we should do this on a per-function level. Instead, we should mark the extensions accordingly in `clang/include/clang/Basic/OpenCLExtensions.def` I think. https://github.com/llvm/llvm-project/pull/204330