[flang-commits] [flang] [flang][OpenMP] Replace modifier verification with a generic one (PR #220675)

Deepak Eachempati via flang-commits flang-commits at lists.llvm.org
Thu Sep 3 08:00:48 PDT 2026


================
@@ -2947,48 +2948,15 @@ void OmpStructureChecker::ChecksOnOrderedAsStandalone() {
     context_.Say(GetContext().clauseSource,
         "THREADS and SIMD clauses are not allowed when ORDERED construct is a standalone construct with no ORDERED region"_err_en_US);
   }
-
-  int dependSinkCount{0}, dependSourceCount{0};
----------------
dreachem wrote:

@kparzysz 

Yes, the checks should be retained. OpenMP 6.0 has the following corresponding restrictions:

> Additional restrictions to the stand-alone ordered construct are as follows:
> • At most one doacross clause may appear on the construct with source as the
> dependence-type.
> • All doacross clauses that appear on the construct must specify the same dependence-type.



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


More information about the flang-commits mailing list