[Mlir-commits] [mlir] [mlir][complex] Canonicalize complex.div by one (PR #85513)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Mar 24 22:39:57 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 7d2d8e2a7245e4e64da22cb3c422ea3be5a0bf0a aef284692c5f85a1db4859855b63fcc66354d0eb -- mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Complex/IR/ComplexOps.cpp b/mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
index c3eb804183..1c81433bc3 100644
--- a/mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
+++ b/mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
@@ -381,7 +381,7 @@ OpFoldResult DivOp::fold(FoldAdaptor adaptor) {
ArrayAttr arrayAttr = rhs.dyn_cast<ArrayAttr>();
if (!arrayAttr || arrayAttr.size() != 2)
return {};
-
+
APFloat real = cast<FloatAttr>(arrayAttr[0]).getValue();
APFloat imag = cast<FloatAttr>(arrayAttr[1]).getValue();
``````````
</details>
https://github.com/llvm/llvm-project/pull/85513
More information about the Mlir-commits
mailing list