[flang-commits] [flang] [Flang][Semantics] Add a semantic check for simd construct (PR #109089)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed Sep 18 03:16:27 PDT 2024
================
@@ -2156,6 +2156,16 @@ void OmpStructureChecker::Leave(const parser::OmpClauseList &) {
}
}
}
+
+ // 2.11.5 Simd construct restriction (OpenMP 5.1)
+ if (auto *clause{FindClause(llvm::omp::Clause::OMPC_safelen)}) {
+ if (FindClause(llvm::omp::Clause::OMPC_order)) {
----------------
tblah wrote:
Presumably future standards might specify ordering other than concurrent. It would be best to check that here because it would be easy to forget it later.
https://github.com/llvm/llvm-project/pull/109089
More information about the flang-commits
mailing list