[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 07:48:30 PDT 2020
jdoerfert created this revision.
jdoerfert added reviewers: JonChesterfield, jhuber6, ABataev.
Herald added subscribers: llvm-commits, guansong, bollu, yaxunl.
Herald added a reviewer: aaron.ballman.
Herald added projects: clang, LLVM.
jdoerfert requested review of this revision.
Herald added a subscriber: sstefan1.
With this extension the effects of `omp begin declare variant` will be
applied to template function declarations. The behavior is opt-in and
controlled by the `extension(allow_templates)` trait. While generally
useful, this will enable us to implement complex math function calls by
overloading the templates of the standard library with the ones in
libc++.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85735
Files:
clang/include/clang/AST/OpenMPClause.h
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Sema/Sema.h
clang/lib/Headers/openmp_wrappers/cmath
clang/lib/Parse/ParseOpenMP.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/AST/ast-dump-openmp-begin-declare-variant_template_2.cpp
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85735.284725.patch
Type: text/x-patch
Size: 40432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200811/ec08dc88/attachment-0001.bin>
More information about the cfe-commits
mailing list