[Mlir-commits] [mlir] [mlir][linalg] Add Check for Reduction Operation in Contraction Body (PR #123134)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jan 15 14:50:31 PST 2025
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 56600c11add12aababdd313c43650facf2a0338f 80200160d4c4288f604046440e6dd36a924f0fdc --extensions cpp -- mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
index 14f8f9e8fd..91165ddeb8 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
@@ -282,7 +282,7 @@ bool mlir::linalg::detail::isContractionBody(
Value yielded = getSourceSkipUnary(terminator->getOperand(0));
Operation *reductionOp = yielded.getDefiningOp();
- if (!reductionOp){
+ if (!reductionOp) {
errs << "expected reduction op in body";
return false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/123134
More information about the Mlir-commits
mailing list