================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits