[Mlir-commits] [llvm] [mlir] [OpenMP][MLIR][OMPIRBuilder] Add a small optional constant alloca raise function pass to finalize, utilised in convertTarget (PR #78818)
Akash Banerjee
llvmlistbot at llvm.org
Fri Feb 2 07:23:26 PST 2024
================
@@ -633,6 +633,30 @@ Function *OpenMPIRBuilder::getOrCreateRuntimeFunctionPtr(RuntimeFunction FnID) {
void OpenMPIRBuilder::initialize() { initializeTypes(M); }
+static void raiseUserConstantDataAllocasToEntryBlock(IRBuilderBase &Builder,
+ Function *Function) {
+ BasicBlock &EntryBlock = Function->getEntryBlock();
+ Instruction *MoveLocInst = EntryBlock.getFirstNonPHI();
+
+ // Loop over blocks looking for allocas, skip the entry block allocas here are
+ // in the appropriate place.
----------------
TIFitis wrote:
The wording of this comment is a little off. Can you please rephrase it.
https://github.com/llvm/llvm-project/pull/78818
More information about the Mlir-commits
mailing list