[Mlir-commits] [llvm] [mlir] [mlir][OpenMP] - Honor dependencies in code-generation of the if clause in `omp.task` correctly (PR #90891)

Michael Kruse llvmlistbot at llvm.org
Mon May 6 01:33:27 PDT 2024


================
@@ -1887,6 +1887,17 @@ OpenMPIRBuilder::createTask(const LocationDescription &Loc,
       SplitBlockAndInsertIfThenElse(IfCondition, IfTerminator, &ThenTI,
                                     &ElseTI);
       Builder.SetInsertPoint(ElseTI);
+
+      if (Dependencies.size()) {
+        Function *TaskWaitFn =
+            getOrCreateRuntimeFunctionPtr(OMPRTL___kmpc_omp_taskwait_deps_51);
+        Builder.CreateCall(
----------------
Meinersbur wrote:

Consider updating the comment starting with
```
In the presence of the `if` clause, the following IR is generated:
```

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


More information about the Mlir-commits mailing list