[Mlir-commits] [llvm] [mlir] [OpenMP][MLIR] Hoist static `alloca`s emitted by private `init` regions to the allocation IP of the construct (PR #171597)
Tom Eccles
llvmlistbot at llvm.org
Fri Jan 2 04:43:26 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?
----------------
tblah wrote:
Yes please ;) (not this PR)
https://github.com/llvm/llvm-project/pull/171597
More information about the Mlir-commits
mailing list