[Mlir-commits] [llvm] [mlir] [mlir][OpenMP] - Honor dependencies in code-generation of the if clause in `omp.task` correctly (PR #90891)
Pranav Bhandarkar
llvmlistbot at llvm.org
Tue May 7 12:29:47 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(
----------------
bhandarkar-pranav wrote:
Done
https://github.com/llvm/llvm-project/pull/90891
More information about the Mlir-commits
mailing list