[flang-commits] [flang] [mlir] [mlir][OpenMP][flang] make private variable allocation implicit in omp.private (PR #124019)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Jan 27 03:37:44 PST 2025
================
@@ -1338,15 +1338,14 @@ findAssociatedValue(Value privateVar, llvm::IRBuilderBase &builder,
/// Allocate delayed private variables. Returns the basic block which comes
/// after all of these allocations. llvm::Value * for each of these private
/// variables are populated in llvmPrivateVars.
-static llvm::Expected<llvm::BasicBlock *>
-allocatePrivateVars(llvm::IRBuilderBase &builder,
- LLVM::ModuleTranslation &moduleTranslation,
- MutableArrayRef<BlockArgument> privateBlockArgs,
- MutableArrayRef<omp::PrivateClauseOp> privateDecls,
- MutableArrayRef<mlir::Value> mlirPrivateVars,
- llvm::SmallVectorImpl<llvm::Value *> &llvmPrivateVars,
- const llvm::OpenMPIRBuilder::InsertPointTy &allocaIP,
- llvm::DenseMap<Value, Value> *mappedPrivateVars = nullptr) {
+static llvm::Expected<llvm::BasicBlock *> allocateAndInitPrivateVars(
----------------
tblah wrote:
I updated it in https://github.com/llvm/llvm-project/pull/124019/commits/ca35ec29e81dfd3222d4ebba91937c96b5080f91
https://github.com/llvm/llvm-project/pull/124019
More information about the flang-commits
mailing list