[Mlir-commits] [mlir] [MLIR][OpenMP] Normalize lowering of omp.loop_nest (PR #127217)

Tom Eccles llvmlistbot at llvm.org
Tue Feb 18 08:46:15 PST 2025


================
@@ -372,6 +385,20 @@ findAllocaInsertPoint(llvm::IRBuilderBase &builder,
       &funcEntryBlock, funcEntryBlock.getFirstInsertionPt());
 }
 
+/// Find the loop information structure for the loop nest being translated. It
+/// will not return a value unless called from the translation function for
+/// a loop wrapper operation after successfully translating its body.
+static std::optional<llvm::CanonicalLoopInfo *>
+findCurrentLoopInfo(LLVM::ModuleTranslation &moduleTranslation) {
+  std::optional<llvm::CanonicalLoopInfo *> loopInfo;
----------------
tblah wrote:

ultra-nit
```suggestion
  std::optional<llvm::CanonicalLoopInfo *> loopInfo = std::nullopt;
```

https://github.com/llvm/llvm-project/pull/127217


More information about the Mlir-commits mailing list