[llvm-branch-commits] [flang] [Flang][OpenMP] Add combined construct information (PR #198783)

Sergio Afonso via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 12 05:00:26 PDT 2026


================
@@ -79,6 +79,25 @@ makeObjects(llvm::ArrayRef<const semantics::Symbol *> syms) {
   return objects;
 }
 
+/// Return the directive that is immediately nested inside of the given
+/// \c parent evaluation, if it is its only non-end-statement nested evaluation
+/// and it represents an OpenMP construct.
+lower::pft::Evaluation *
+extractOnlyOmpNestedEval(lower::pft::Evaluation &parent) {
+  if (!parent.hasNestedEvaluations())
+    return nullptr;
+
+  auto &nested{parent.getFirstNestedEvaluation()};
----------------
skatrak wrote:

Done. We probably should make a clear exception for Flang lowering and just use MLIR formatting rules, rather than a mix.

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


More information about the llvm-branch-commits mailing list