[Mlir-commits] [mlir] [MLIR] Add continuous tiling to TileUsingForOp (PR #82792)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Tue Feb 27 06:21:00 PST 2024


================
@@ -309,6 +311,188 @@ static LogicalResult generateLoopNest(RewriterBase &rewriter, Location loc,
   return rewriter.notifyMatchFailure(loc, "unhandled loop type");
 }
 
+static void continuousLoopNestHelper(
+    OpBuilder &builder, Location loc, ArrayRef<Range> loopRanges,
+    SmallVector<LoopLikeOpInterface> &loops, uint64_t loopLevelIdx,
----------------
ftynse wrote:

Take a (const) reference to `SmallVectorImpl` to avoid copying on-stack elements of the vector. If the callee doesn't modify the _length_ of the vector, take a `MutableArrayRef`/`ArrayRef` instead.

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


More information about the Mlir-commits mailing list