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

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue Jun 16 04:10:01 PDT 2026


================
@@ -2286,6 +2286,22 @@ def MaskedOp : OpenMP_Op<"masked", clauses = [
   ];
 }
 
+//===----------------------------------------------------------------------===//
+// [Spec 5.1] 12.3 dispatch Construct
+//===----------------------------------------------------------------------===//
+def DispatchOp : OpenMP_Op<"dispatch", singleRegion = true> {
----------------
skatrak wrote:

```suggestion
def DispatchOp : OpenMP_Op<"dispatch", singleRegion = true, clauses = [
    // TODO: Complete clause list (device, is_device_ptr, nowait, nocontext, novariants).
  ]> {
```

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


More information about the flang-commits mailing list