[Mlir-commits] [mlir] [llvm] [OpenMP][MLIR][OMPIRBuilder] Add a small optional constant alloca raise function pass to finalize, utilised in convertTarget (PR #78818)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 2 07:39:12 PST 2024
================
@@ -1495,13 +1495,25 @@ class OpenMPIRBuilder {
/// Collection of regions that need to be outlined during finalization.
SmallVector<OutlineInfo, 16> OutlineInfos;
+ /// A collection of candidate target functions that's constant allocas will
+ /// attempt to be raised on a call of finalize after all currently enqueued
+ /// outline info's have been processed.
+ SmallVector<llvm::Function *, 16> ConstantAllocaRaiseCandidates;
+
/// Collection of owned canonical loop objects that eventually need to be
/// free'd.
std::forward_list<CanonicalLoopInfo> LoopInfos;
/// Add a new region that will be outlined later.
void addOutlineInfo(OutlineInfo &&OI) { OutlineInfos.emplace_back(OI); }
+ /// Add a function that's constant allocas will attempt to be raised on a
+ /// call of finalize after all currently enqueued outline info's have been
+ /// processed.
+ void addConstantAllocaRaiseCandidates(Function *F) {
----------------
agozillon wrote:
I don't think so if we don't wish it to be, it was primarily to mimic the current style we use for addOutlineInfo if I recall correctly. Happy to change it!
https://github.com/llvm/llvm-project/pull/78818
More information about the Mlir-commits
mailing list