[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
================
@@ -761,6 +761,20 @@ static llvm::omp::ProcBindKind getProcBindKind(omp::ClauseProcBindKind kind) {
llvm_unreachable("Unknown ClauseProcBindKind kind");
}
+/// Convert 'dispatch' operation into LLVM IR.
+static LogicalResult
+convertOmpDispatch(Operation &opInst, llvm::IRBuilderBase &builder,
+ LLVM::ModuleTranslation &moduleTranslation) {
+ auto dispatchOp = cast<omp::DispatchOp>(opInst);
----------------
skatrak wrote:
Nit: Let's already put together the infrastructure to check for missing support, so we can separately add operands to the MLIR operation, work on Flang lowering and complete the implementation here.
```suggestion
auto dispatchOp = cast<omp::DispatchOp>(opInst);
if (failed(checkImplementationStatus(opInst)))
return failure();
```
https://github.com/llvm/llvm-project/pull/203320
More information about the flang-commits
mailing list