[PATCH] D135199: [OpenMP][C++] Allow #pragma omp simd in constexpr functions
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 4 14:32:15 PDT 2022
jdoerfert created this revision.
jdoerfert added reviewers: aaron.ballman, faisalv.
Herald added subscribers: guansong, bollu, yaxunl.
Herald added a project: All.
jdoerfert requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added a project: clang.
There is no reason (obvious to me) that would prevent us from ignoring
the "simd" part during constexpr eval, assuming there are no clauses.
The potentially controversial part is the change from Equal to Encloses
when we do the context lookup.
Fixes https://github.com/llvm/llvm-project/issues/58092
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135199
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/ExprConstant.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/SemaCXX/constexpr-openmp-simd.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135199.465164.patch
Type: text/x-patch
Size: 4112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221004/06c68d90/attachment-0001.bin>
More information about the cfe-commits
mailing list