[llvm] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 13:52:15 PDT 2023


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 d4ae7ee662d2f318c0e4105c674e0634733b48eb dd7e9f85d00810b390a9f15f6d7f55c883fba4ab -- llvm/include/llvm/Support/KnownBits.h llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/lib/Support/KnownBits.cpp llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp llvm/unittests/Support/KnownBitsTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/Support/KnownBits.h b/llvm/include/llvm/Support/KnownBits.h
index b9a996f664c8..fb034e0b9e3b 100644
--- a/llvm/include/llvm/Support/KnownBits.h
+++ b/llvm/include/llvm/Support/KnownBits.h
@@ -332,7 +332,8 @@ public:
   static KnownBits computeForAddSub(bool Add, bool NSW, const KnownBits &LHS,
                                     KnownBits RHS);
 
-  /// Compute known bits results from subtracting RHS from LHS with 1-bit Borrow.
+  /// Compute known bits results from subtracting RHS from LHS with 1-bit
+  /// Borrow.
   static KnownBits computeForSubBorrow(const KnownBits &LHS, KnownBits RHS,
                                        const KnownBits &Borrow);
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/67788


More information about the llvm-commits mailing list