[llvm] [ADT] Add APIntOps::abds signed absolute difference and rename absdiff -> abdu (PR #84791)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 09:43:30 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 6cd68c2f87832ef39eb502a20d358b4c7fa37b9e a3f7c8ecc5fdf7ee27cf96f2c3e365b9552ecc7c -- llvm/include/llvm/ADT/APInt.h llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/unittests/ADT/APIntTest.cpp llvm/unittests/Support/KnownBitsTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Support/KnownBitsTest.cpp b/llvm/unittests/Support/KnownBitsTest.cpp
index 701876c7e4..cb1a3d551b 100644
--- a/llvm/unittests/Support/KnownBitsTest.cpp
+++ b/llvm/unittests/Support/KnownBitsTest.cpp
@@ -361,9 +361,7 @@ TEST(KnownBitsTest, BinaryExhaustive) {
[](const KnownBits &Known1, const KnownBits &Known2) {
return KnownBits::absdiff(Known1, Known2);
},
- [](const APInt &N1, const APInt &N2) {
- return APIntOps::abdu(N1, N2);
- },
+ [](const APInt &N1, const APInt &N2) { return APIntOps::abdu(N1, N2); },
checkCorrectnessOnlyBinary);
testBinaryOpExhaustive(
[](const KnownBits &Known1, const KnownBits &Known2) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/84791
More information about the llvm-commits
mailing list