[all-commits] [llvm/llvm-project] 25ad18: [OpenCL] Prevent adding extension pragma by default.

Anastasia Stulova via All-commits all-commits at lists.llvm.org
Wed Mar 3 07:03:16 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25ad188bfcdb2a85416013c6303f30cbc7775674
      https://github.com/llvm/llvm-project/commit/25ad188bfcdb2a85416013c6303f30cbc7775674
  Author: Anastasia Stulova <anastasia.stulova at arm.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

  Changed paths:
    M clang/include/clang/Basic/OpenCLExtensions.def
    M clang/include/clang/Basic/OpenCLOptions.h
    M clang/lib/Basic/OpenCLOptions.cpp
    M clang/lib/Basic/Targets.cpp
    M clang/lib/Parse/ParsePragma.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/test/SemaOpenCL/extension-version.cl

  Log Message:
  -----------
  [OpenCL] Prevent adding extension pragma by default.

This commit refactors extension support to allow
specifying whether pragma is needed or not explicitly.

For backward compatibility pragmas are set to required
for all extensions that were added prior to this but
not for OpenCL 3.0 features.

Differential Revision: https://reviews.llvm.org/D97052




More information about the All-commits mailing list