[all-commits] [llvm/llvm-project] dc00c9: [OpenCL] Change extension handling for -fdeclare-o...
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Tue Feb 2 03:16:00 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc00c96b2d1bcae56ef598b614ba65a1cc26c4de
https://github.com/llvm/llvm-project/commit/dc00c96b2d1bcae56ef598b614ba65a1cc26c4de
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2021-02-02 (Tue, 02 Feb 2021)
Changed paths:
M clang/lib/Sema/SemaLookup.cpp
M clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
Log Message:
-----------
[OpenCL] Change extension handling for -fdeclare-opencl-builtins
Until now, the `-fdeclare-opencl-builtins` option behaved differently
compared to inclusion of `opencl-c.h`: builtins that are part of an
extension were only available if the extension was enabled using the
corresponding pragma.
Builtins that belong to an extension are guarded using a preprocessor
macro (that is named after the extension) in `opencl-c.h`. Align the
behaviour of `-fdeclare-opencl-builtins` with this.
Co-authored-by: Anastasia Stulova
Differential Revision: https://reviews.llvm.org/D95616
More information about the All-commits
mailing list