[llvm] [Verifier] Clarify supported storage bit width for apfloat conversions (PR #209174)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 06:38:30 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 h,cpp -- llvm/include/llvm/ADT/APFloat.h llvm/lib/IR/Verifier.cpp llvm/lib/Support/APFloat.cpp llvm/unittests/ADT/APFloatTest.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/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h
index 0aac343ba..ce94e0bac 100644
--- a/llvm/include/llvm/ADT/APFloat.h
+++ b/llvm/include/llvm/ADT/APFloat.h
@@ -416,8 +416,8 @@ public:
 
   /// Returns the size in bits of a valid arbitrary floating-point format
   /// string, or 0 if the string is not a valid format. Covers every format
-  /// accepted by isValidArbitraryFPFormat, not only those getArbitraryFPSemantics
-  /// can currently lower.
+  /// accepted by isValidArbitraryFPFormat, not only those
+  /// getArbitraryFPSemantics can currently lower.
   LLVM_ABI static unsigned getArbitraryFPFormatSizeInBits(StringRef Format);
 
   /// Returns the fltSemantics for a given arbitrary FP format string,

``````````

</details>


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


More information about the llvm-commits mailing list