[Mlir-commits] [mlir] [mlir][linalg] Extend Linalg elemwise named ops semantics (PR #122753)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jan 13 09:46:15 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 8d306ccdef6b70881f5d79b09c03df720351e5f8 627b06cdaecd8cda6361d3a755c77ca352a1fe21 --extensions cpp -- mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
index c84220f5b4..46c5dece38 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -3874,10 +3874,11 @@ void ElemwiseOp::regionBuilder(ImplicitLocOpBuilder &b, Block &block,
result = helper.buildBinaryFn(categoryAndFn.fn.binaryFn,
block.getArgument(0), block.getArgument(1));
} else if (category == ElemwiseNAryCategory::Ternary) {
- result = helper.buildTernaryFn(categoryAndFn.fn.ternaryFn,
- block.getArgument(0), block.getArgument(1), block.getArgument(2));
+ result =
+ helper.buildTernaryFn(categoryAndFn.fn.ternaryFn, block.getArgument(0),
+ block.getArgument(1), block.getArgument(2));
} else
- assert(false && "found unhandled category in elemwise print");
+ assert(false && "found unhandled category in elemwise print");
yields.push_back(result);
helper.yieldOutputs(yields);
``````````
</details>
https://github.com/llvm/llvm-project/pull/122753
More information about the Mlir-commits
mailing list