[flang-commits] [compiler-rt] [flang] [clang] [clang-tools-extra] [llvm] [Flang][OpenMP] Push genEval closer to leaf lowering functions (PR #77760)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Tue Jan 16 08:16:38 PST 2024


================
@@ -3189,13 +3208,15 @@ static void genOMP(Fortran::lower::AbstractConverter &converter,
     if ((llvm::omp::allTargetSet & llvm::omp::loopConstructSet)
             .test(ompDirective)) {
       validDirective = true;
-      genTargetOp(converter, eval, semanticsContext, currentLocation,
-                  loopOpClauseList, ompDirective, /*outerCombined=*/true);
+      genTargetOp(converter, eval, semanticsContext, /*genNested=*/false,
----------------
kparzysz wrote:

The `targetOp` here is a part of a composite OpenMP directive, so the only nested constructs possible are those nested in the provided `loopConstruct`.

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


More information about the flang-commits mailing list