[flang-commits] [flang] [mlir] [flang][OpenMP] Support for "!$omp dispatch". (PR #203320)

via flang-commits flang-commits at lists.llvm.org
Tue Sep 1 03:56:42 PDT 2026


================
@@ -578,6 +580,63 @@ Fortran::lower::genCallOpAndResult(
     funcType = *modifiedFuncType;
   }
 
+  // OpenMP dispatch `novariants`/`nocontext`: at runtime pick the right target
+  // via an indirect call, evaluating arguments once. All candidate procedures
+  // share one signature; revisit if declare-variant `adjust_args`/`append_args`
+  // land.
----------------
SunilKuravinakop wrote:

This PR is split into 3 parts. Currently, I have created PR [215877](https://github.com/llvm/llvm-project/pull/215877) for the MLIR part at present waiting for reviews and approval. Your work in [#216781 ](https://github.com/llvm/llvm-project/pull/216781) does not apply there. I will definitely incorporate your work when I come to the dispatch changes in flang.

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


More information about the flang-commits mailing list