[flang-commits] [flang] [llvm] [flang][OpenMP] Decompose compound constructs, do recursive lowering (PR #90098)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue May 7 04:58:06 PDT 2024


================
@@ -2017,36 +2166,47 @@ static void genOMP(Fortran::lower::AbstractConverter &converter,
       semaCtx);
   mlir::Location currentLocation = converter.genLocation(directive.source);
 
+  ConstructQueue queue{
+      buildConstructQueue(converter.getFirOpBuilder().getModule(), semaCtx,
+                          eval, directive.source, directive.v, clauses)};
+
   switch (directive.v) {
----------------
skatrak wrote:

Is there a reason why this can't be moved into `genOMPDispatch` as well? We won't find compound constructs here, but being consistent should simplify the reasoning about how lowering is done.

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


More information about the flang-commits mailing list