[PATCH] D124624: [OpenMP] Add variant extension that applies to declarations
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 28 10:18:34 PDT 2022
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992.
Herald added subscribers: guansong, yaxunl.
Herald added a reviewer: aaron.ballman.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, sstefan1.
Herald added projects: clang, LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124624
Files:
clang/include/clang/Basic/AttrDocs.td
clang/lib/Parse/ParseOpenMP.cpp
clang/lib/Sema/SemaDecl.cpp
clang/test/OpenMP/declare_variant_bind_to_decl.cpp
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124624.425830.patch
Type: text/x-patch
Size: 4492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220428/3d013f1d/attachment.bin>
More information about the cfe-commits
mailing list