================ @@ -108,6 +108,12 @@ void foo1(void) { : parallel) otherwise(parallel for) for (int i=0; i<10; i++) ; + +#pragma omp metadirective when(user = {condition(1)} \ + : parallel for) when(implementation = {extension(match_none)} \ + : parallel) + for (int i=0; i<10; i++) + ; ---------------- zahiraam wrote:
I would suggest adding this: ` #pragma omp metadirective when(user = {condition(0)} \` ` : parallel for) when(user = {condition(0)} \` ` : target teams distribute parallel for)` ` for (int i = 0; i < 100; i++)` ` ;` to `OpenMP/metadirective_otherwise.cpp` instead. You will need to edit the IR generated. https://github.com/llvm/llvm-project/pull/148583 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits