[flang-commits] [libc] [lldb] [libcxx] [compiler-rt] [libcxxabi] [lld] [clang-tools-extra] [clang] [flang] [llvm] [Flang][OpenMP] Push genEval calls to individual operations, NFC (PR #77758)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Mon Jan 15 06:01:05 PST 2024


================
@@ -110,6 +110,34 @@ static void gatherFuncAndVarSyms(
   }
 }
 
+static Fortran::lower::pft::Evaluation *
+getCollapsedEval(Fortran::lower::pft::Evaluation &eval, int collapseValue) {
+  // Return the Evaluation of the innermost collapsed loop, or the current
+  // evaluation, if there is nothing to collapse.
+  if (collapseValue == 0)
+    return &eval;
----------------
kparzysz wrote:

I'll make this change in another commit.

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


More information about the flang-commits mailing list