[Mlir-commits] [flang] [mlir] [mlir][OpenMP] - MLIR to LLVMIR translation support for delayed privatization of allocatables in `omp.target` ops (PR #113208)
Christian Ulmann
llvmlistbot at llvm.org
Tue Oct 22 01:17:30 PDT 2024
================
@@ -3316,7 +3316,51 @@ createDeviceArgumentAccessor(MapInfoData &mapData, llvm::Argument &arg,
return builder.saveIP();
}
+static bool privatizerNeedsMap(omp::PrivateClauseOp &privatizer) {
+ Region &allocRegion = privatizer.getAllocRegion();
+ Value blockArg0 = allocRegion.getArgument(0);
+ return !blockArg0.use_empty();
+}
+
+// Return the llvm::Value * corresponding to the privateVar that
----------------
Dinistro wrote:
Nit: We use `///` for such comments
https://github.com/llvm/llvm-project/pull/113208
More information about the Mlir-commits
mailing list