[flang-commits] [flang] Adding parsing and semantic check support for omp masked (PR #91432)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Fri May 10 03:14:04 PDT 2024


================
@@ -205,9 +205,15 @@ static const OmpDirectiveSet compositeConstructSet{
 };
 
 static const OmpDirectiveSet blockConstructSet{
+    Directive::OMPD_masked,
+    Directive::OMPD_masked_taskloop,
+    Directive::OMPD_masked_taskloop_simd,
     Directive::OMPD_master,
     Directive::OMPD_ordered,
     Directive::OMPD_parallel,
+    Directive::OMPD_parallel_masked,
+    Directive::OMPD_parallel_masked_taskloop,
+    Directive::OMPD_parallel_masked_taskloop_simd,
----------------
skatrak wrote:

MASKED+TASKLOOP combined constructs are actually loop-associated and not block-associated constructs, so they belong below in `loopConstructSet` instead, where they are already located.
```suggestion
    Directive::OMPD_masked,
    Directive::OMPD_master,
    Directive::OMPD_ordered,
    Directive::OMPD_parallel,
    Directive::OMPD_parallel_masked,
```

https://github.com/llvm/llvm-project/pull/91432


More information about the flang-commits mailing list