[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)
Urvi Rav via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 25 01:05:26 PDT 2025
================
@@ -78,10 +78,7 @@ void foo(void) {
for (int i = 0; i < 16; i++)
;
-#pragma omp metadirective when(user = {condition(0)} \
- : parallel for) otherwise()
- for (int i=0; i<10; i++)
- ;
+
----------------
ravurvi20 wrote:
Since for versions prior to 5.2 default is valid so moved it in a way that if the version is 5.2 or greater otherwise condition should run else the default condition.
https://github.com/llvm/llvm-project/pull/128640
More information about the cfe-commits
mailing list