[all-commits] [llvm/llvm-project] f892dd: [OpenMP] Add variant extension that applies to dec...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jun 29 12:04:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f892ddb3be640f477fc9acef55e7bd613fc27acf
      https://github.com/llvm/llvm-project/commit/f892ddb3be640f477fc9acef55e7bd613fc27acf
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

  Changed paths:
    M clang/include/clang/Basic/AttrDocs.td
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/OpenMP/declare_variant_bind_to_decl.cpp
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def

  Log Message:
  -----------
  [OpenMP] Add variant extension that applies to declarations

This patch adds a new extension to the `omp begin / end declare variant`
support that causes it to apply to function declarations as well. This
is explicitly not done in the standard, but can be useful in some
situations so we should provide it as an extension. This will allow us
to uniquely bind and overload existing definitions with a simple
declaration using variants.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list