[clang] [llvm] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 23 21:45:12 PDT 2025
================
@@ -101,9 +103,11 @@ T tmain(T argc, T *argv) {
a = 2;
#pragma omp task default(none), private(argc, b) firstprivate(argv) shared(d) if (argc > 0) final(S<T>::TS > 0) priority(argc) affinity(argc, argv[b:argc], arr[:], ([argc][sizeof(T)])argv)
foo();
+#ifndef OMP60
----------------
Ritanya-B-Bharadwaj wrote:
Yes, according to 6.0 spec - Section 7.6.5 Properties Common to Reduction and induction Clauses
_If the reduction identifier or induction identifier is an implicitly declared reduction identifier or induction identifier or otherwise not an id-expression then it is implicitly converted to one by prepending the keyword operator (for example, + becomes operator+). This conversion is valid for the +, *, /, && and || operators._
https://github.com/llvm/llvm-project/pull/135807
More information about the cfe-commits
mailing list