[Mlir-commits] [mlir] [mlir][affine] Define `affine.linearize_index` (PR #114480)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 4 10:44:10 PST 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 e241964b9373786f327ce24b440e2a82a3c4eeea b6f5cba4bfc4ba71f08d44678033ff6251731127 --extensions h,cpp -- mlir/include/mlir/Dialect/Affine/IR/AffineOps.h mlir/include/mlir/Dialect/Affine/Utils.h mlir/include/mlir/Interfaces/ViewLikeInterface.h mlir/lib/Dialect/Affine/IR/AffineOps.cpp mlir/lib/Dialect/Affine/Transforms/AffineExpandIndexOps.cpp mlir/lib/Dialect/Affine/Utils/Utils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Affine/Transforms/AffineExpandIndexOps.cpp b/mlir/lib/Dialect/Affine/Transforms/AffineExpandIndexOps.cpp
index 67cf67865e..5903c363dc 100644
--- a/mlir/lib/Dialect/Affine/Transforms/AffineExpandIndexOps.cpp
+++ b/mlir/lib/Dialect/Affine/Transforms/AffineExpandIndexOps.cpp
@@ -48,8 +48,7 @@ struct LowerDelinearizeIndexOps
/// Lowers `affine.linearize_index` into a sequence of multiplications and
/// additions.
-struct LowerLinearizeIndexOps final
- : OpRewritePattern<AffineLinearizeIndexOp> {
+struct LowerLinearizeIndexOps final : OpRewritePattern<AffineLinearizeIndexOp> {
using OpRewritePattern::OpRewritePattern;
LogicalResult matchAndRewrite(AffineLinearizeIndexOp op,
PatternRewriter &rewriter) const override {
``````````
</details>
https://github.com/llvm/llvm-project/pull/114480
More information about the Mlir-commits
mailing list