[Mlir-commits] [mlir] [mlir][math] Add Polynomial Approximation for few ops (PR #90718)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed May 1 03:20:54 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 fdf206c10ccea9dd5bd3d7eeb1381f305f972e52 4b95d91428e01e11f4288daff92d75d8c4871dc9 -- mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp b/mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
index 36bb8c6245..acccfb64b9 100644
--- a/mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
+++ b/mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
@@ -631,7 +631,7 @@ public:
LogicalResult
AtanhApproximation::matchAndRewrite(math::AtanhOp op,
- PatternRewriter &rewriter) const {
+ PatternRewriter &rewriter) const {
if (!getElementTypeOrSelf(op.getOperand()).isF32())
return rewriter.notifyMatchFailure(op, "unsupported operand type");
``````````
</details>
https://github.com/llvm/llvm-project/pull/90718
More information about the Mlir-commits
mailing list