[Mlir-commits] [mlir] [mlir] [tensor] Add patterns to remove whole slicing of tensors (PR #107046)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Sep 2 21:23:37 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff da13754103b8880811f4c164d858c6dd3c393927 09276d8e961e2f2c589d0d3470dcaacf647fa7dc --extensions h,cpp -- mlir/lib/Dialect/Tensor/Transforms/EliminateWholeSlicePatterns.cpp mlir/include/mlir/Dialect/Tensor/Transforms/Transforms.h mlir/test/lib/Dialect/Tensor/TestTensorTransforms.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/include/mlir/Dialect/Tensor/Transforms/Transforms.h b/mlir/include/mlir/Dialect/Tensor/Transforms/Transforms.h
index 4ae7826616..a821c57150 100644
--- a/mlir/include/mlir/Dialect/Tensor/Transforms/Transforms.h
+++ b/mlir/include/mlir/Dialect/Tensor/Transforms/Transforms.h
@@ -105,8 +105,7 @@ void populateRewriteAsConstantPatterns(RewritePatternSet &patterns,
 /// Appends patterns for eliminating whole-slice extract_slice and insert_slice.
 /// The patterns remove extract_slice and insert_slice when the size matches
 /// and the offsets of the slice are all zeros and strides are all ones.
-void populateEliminateWholeSlicingPatterns(
-    RewritePatternSet &patterns);
+void populateEliminateWholeSlicingPatterns(RewritePatternSet &patterns);
 
 //===----------------------------------------------------------------------===//
 // Transform helpers

``````````

</details>


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


More information about the Mlir-commits mailing list