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

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 06:57:48 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) {
----------------
kparzysz wrote:

I left it out because I expected a comment from you about why use the dispatch if these are simple constructs...  lol

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


More information about the llvm-commits mailing list