[Mlir-commits] [mlir] [mlir][linalg] Enable fuse consumer (PR #85528)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Thu Apr 18 04:12:58 PDT 2024


================
@@ -132,6 +132,58 @@ struct LinalgOpTilingInterface
     return TilingResult{{tiledOp}, SmallVector<Value>(tiledOp->getResults())};
   }
 
+  void getMappedOffsetAndSize(LinalgOp linalgOp, OpBuilder &b,
+                              AffineMap indexingMap,
+                              ArrayRef<OpFoldResult> offsets,
+                              ArrayRef<OpFoldResult> sizes,
+                              SmallVector<OpFoldResult> &mappedOffsets,
+                              SmallVector<OpFoldResult> &mappedSizes) const {
+    auto numLoops = linalgOp.getNumLoops();
----------------
ftynse wrote:

Nit: expand `auto` unless the type is obvious from line-level context, e.g., there is a cast such as below.

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


More information about the Mlir-commits mailing list