[Mlir-commits] [mlir] 2bcf62b - [nfc][mlir][linalg][tiling] Fix example code. (#127194)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 14 03:20:19 PST 2025
Author: Javed Absar
Date: 2025-02-14T11:20:15Z
New Revision: 2bcf62b43d5bec613a0079b4b91b3a0839faeaab
URL: https://github.com/llvm/llvm-project/commit/2bcf62b43d5bec613a0079b4b91b3a0839faeaab
DIFF: https://github.com/llvm/llvm-project/commit/2bcf62b43d5bec613a0079b4b91b3a0839faeaab.diff
LOG: [nfc][mlir][linalg][tiling] Fix example code. (#127194)
Added:
Modified:
mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
index 2a3ce0519ab53..f729f6f408b23 100644
--- a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
+++ b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
@@ -1005,10 +1005,11 @@ void transformIndexOps(RewriterBase &b, LinalgOp op,
/// To:
/// ```
/// %cst = arith.constant 0.000000e+00 : f32
-/// %0 = tensor.expand_shape %in [[0, 1]] : tensor<32xf32> into
-/// tensor<4x8xf32> %1 = tensor.empty [4] : tensor<4xf32> %2 = linalg.fill
-/// ins(%cst : f32) outs(%1 : tensor<4xf32>) -> tensor<4xf32> %3 =
-/// linalg.generic {indexing_maps = [affine_map<(d0, d1) -> (d0, d1)>,
+/// %0 = tensor.expand_shape %in [[0, 1]]: tensor<32xf32> into tensor<4x8xf32>
+/// %1 = tensor.empty [4] : tensor<4xf32>
+/// %2 = linalg.fill ins(%cst : f32)
+/// outs(%1 : tensor<4xf32>) -> tensor<4xf32>
+/// %3 = linalg.generic {indexing_maps = [affine_map<(d0, d1) -> (d0, d1)>,
/// affine_map<(d0, d1) -> (d0)>],
/// iterator_types = ["parallel", "reduction"]}
/// ins(%0 : tensor<4x8xf32>) outs(%2 : tensor<4xf32>) {
More information about the Mlir-commits
mailing list