[Mlir-commits] [mlir] [mlir][Linalg] Refine how broadcast dims are treated (PR #99015)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 25 13:19:05 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 c74730070a0261d582e01ee7e5eef2e7c39fb11f 8dbb4ce7d3a8e40df0cb52f4e069e7df26bbbe78 --extensions h,cpp -- mlir/include/mlir/IR/AffineMap.h mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp mlir/lib/IR/AffineMap.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index 7a1bd689a5..d5455bdfa7 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -642,8 +642,7 @@ static Value buildVectorWrite(RewriterBase &rewriter, Value value,
         loc, value, outputOperand->get(), ValueRange{});
   }
 
-  write =
-      state.maskOperation(rewriter, write, linalgOp, opOperandMap);
+  write = state.maskOperation(rewriter, write, linalgOp, opOperandMap);
 
   // If masked, set in-bounds to true. Masking guarantees that the access will
   // be in-bounds.

``````````

</details>


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


More information about the Mlir-commits mailing list