[llvm] [KnownFPClass] Refine known classes for `KnownFPClass::bitcast` (PR #215708)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 19:04:04 PDT 2026
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 origin/main HEAD --extensions cpp -- llvm/unittests/Support/KnownFPClassTest.cpp llvm/lib/Support/KnownFPClass.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Support/KnownFPClassTest.cpp b/llvm/unittests/Support/KnownFPClassTest.cpp
index 6e38458b9..37148163e 100644
--- a/llvm/unittests/Support/KnownFPClassTest.cpp
+++ b/llvm/unittests/Support/KnownFPClassTest.cpp
@@ -17,15 +17,13 @@ using namespace llvm;
namespace {
-static KnownFPClass bitcast(const fltSemantics &Semantics,
- const APInt &Value) {
+static KnownFPClass bitcast(const fltSemantics &Semantics, const APInt &Value) {
return KnownFPClass::bitcast(Semantics, KnownBits::makeConstant(Value));
}
static void expectKnown(FPClassTest ExpectedClasses,
std::optional<bool> ExpectedSignBit,
- const fltSemantics &Semantics,
- const KnownBits &Bits) {
+ const fltSemantics &Semantics, const KnownBits &Bits) {
KnownFPClass Known = KnownFPClass::bitcast(Semantics, Bits);
EXPECT_EQ(ExpectedClasses, Known.KnownFPClasses);
EXPECT_EQ(ExpectedSignBit, Known.SignBit);
``````````
</details>
https://github.com/llvm/llvm-project/pull/215708
More information about the llvm-commits
mailing list