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

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Wed Aug 12 03:19:53 PDT 2026


abidh wrote:

Thanks for working on this, and apologies for taking so long to get to it.

Before I do a detailed pass, would you be willing to split this into a small stack? It currently covers the dialect definition, the LLVM IR translation, Flang semantics, directive lowering and call lowering, and each part wants a different set of eyes. Something like:

MLIR: omp.dispatch with the nocontext/novariants clause definitions, the verifier and the translation, with mlir/test/Dialect/OpenMP/dispatch.mlir and mlir/test/Target/LLVMIR/openmp-dispatch.mlir.
Flang: the simd-only rewrite and lowering of the construct itself.
Flang: processNocontext/processNovariants and the ConvertCall.cpp variant selection that gives them their runtime behaviour, with the FIR and integration tests.

This is roughly the staging @skatrak suggested in June. Stacked PRs would keep the full picture visible, and the smaller PRs would be much easier to review/approve.

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


More information about the flang-commits mailing list