[flang-commits] [flang] [flang][OpenMP] Support for dispatch construct (PR #225356)

via flang-commits flang-commits at lists.llvm.org
Tue Sep 22 22:30:59 PDT 2026


================
@@ -0,0 +1,39 @@
+!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=51 %s -o - | FileCheck %s --check-prefix=HLFIR
----------------
SunilKuravinakop wrote:

In mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp, based on your comment for [#215877](https://github.com/llvm/llvm-project/pull/215877)  I had added 
```
 if (version < 52)
          checkNowait(op, result);
```
for DispatchOp. All constructs with nowait have checkNowait() in the same file in MLIR. In flang, nowait is lowered to MLIR.

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


More information about the flang-commits mailing list