[flang-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Implement DEPEND clause for TASKWAIT directive (PR #193568)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Jun 18 07:22:02 PDT 2026
================
@@ -3482,7 +3479,14 @@ convertOmpTaskwaitOp(omp::TaskwaitOp twOp, llvm::IRBuilderBase &builder,
if (failed(checkImplementationStatus(*twOp)))
return failure();
- moduleTranslation.getOpenMPBuilder()->createTaskwait(builder.saveIP());
+ llvm::OpenMPIRBuilder::DependenciesInfo dds;
+ if (failed(buildDependData(
----------------
tblah wrote:
buildDependData [creates a malloc](https://github.com/phi-bee/llvm-project/blob/2dc19c3c7c09d1302820c4d44b233b22022ff222/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp#L2652).
This needs to be freed after it is used. For example https://github.com/phi-bee/llvm-project/blob/2dc19c3c7c09d1302820c4d44b233b22022ff222/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp#L2939
https://github.com/llvm/llvm-project/pull/193568
More information about the flang-commits
mailing list