[llvm] [mlir] [OpenMP][MLIR] Hoist static `alloca`s emitted by private `init` regions to the allocation IP of the construct (PR #171597)
Kareem Ergawy via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 3 23:27:57 PST 2026
================
@@ -1693,14 +1723,18 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::createParallel(
targetParallelCallback(this, OutlinedFn, OuterFn, OuterAllocaBlock, Ident,
IfCondition, NumThreads, PrivTID, PrivTIDAddr,
ThreadID, ToBeDeletedVec);
+
+
};
+ OI.FixUpNonEntryAllocas = true;
} else {
// Generate OpenMP host runtime call
OI.PostOutlineCB = [=, ToBeDeletedVec =
std::move(ToBeDeleted)](Function &OutlinedFn) {
hostParallelCallback(this, OutlinedFn, OuterFn, Ident, IfCondition,
PrivTID, PrivTIDAddr, ToBeDeletedVec);
};
+ // TODO: fix-up allocations on the host as well?
----------------
ergawy wrote:
Done in https://github.com/llvm/llvm-project/pull/174314
https://github.com/llvm/llvm-project/pull/171597
More information about the llvm-commits
mailing list