[llvm-branch-commits] [flang] [flang][OpenMP] Check if loop nest/sequence is well-formed (PR #188025)
Krzysztof Parzyszek via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Mar 25 06:06:35 PDT 2026
================
@@ -1326,4 +1334,64 @@ LoopSequence::Depth LoopSequence::getNestedDepths() const {
}
return children_.front().depth_;
}
+
+static bool IsDoConcurrent(const parser::ExecutionPartConstruct &x) {
+ if (auto *loop{parser::Unwrap<parser::DoConstruct>(x)}) {
+ return loop->IsDoConcurrent();
+ }
+ return false;
+}
+
+static Reason whyNotWellFormed(
----------------
kparzysz wrote:
Done
https://github.com/llvm/llvm-project/pull/188025
More information about the llvm-branch-commits
mailing list