[PATCH] D85735: [OpenMP] Context selector extensions for template functions
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 12:25:58 PDT 2020
jdoerfert added a comment.
In D85735#2210662 <https://reviews.llvm.org/D85735#2210662>, @JonChesterfield wrote:
> Nice. What makes it an extension? 5.0 / 2.3.5 claims "and where variant-func-id is the name of a function variant that is either a base language identifier or, for C++, a template-id." which suggests this could be always-on
This is for `begin/end declare variant`, a 5.1 feature. There it says:
The begin declare variant directive associates the context selector in the match clause with each function definition in declaration-definition-seq.
So it applies to function definitions between the begin and end. With the extension it applies to template function definitions too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85735/new/
https://reviews.llvm.org/D85735
More information about the cfe-commits
mailing list