[llvm] [llvm] Add serialization to uint32_t for FixedPointSemantics (PR #110288)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 02:08:52 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 6b4c4d78f03b83a371e239844d2f86dafeed6b53 850ae706c7e851179a6585a44bcc3b01a12c5b25 --extensions h,cpp -- llvm/include/llvm/ADT/APFixedPoint.h llvm/lib/Support/APFixedPoint.cpp llvm/unittests/ADT/APFixedPointTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ADT/APFixedPoint.h b/llvm/include/llvm/ADT/APFixedPoint.h
index 02270444b8..e4aa82d7a4 100644
--- a/llvm/include/llvm/ADT/APFixedPoint.h
+++ b/llvm/include/llvm/ADT/APFixedPoint.h
@@ -115,10 +115,12 @@ public:
   bool operator!=(FixedPointSemantics Other) const { return !(*this == Other); }
 
   /// Convert the semantics to a 32-bit unsigned integer.
-  /// The result is dependent on the host endianness and not stable across LLVM versions.
-  /// See getFromOpaqueInt() to convert it back to a FixedPointSemantics object.
+  /// The result is dependent on the host endianness and not stable across LLVM
+  /// versions. See getFromOpaqueInt() to convert it back to a
+  /// FixedPointSemantics object.
   uint32_t toOpaqueInt() const;
-  /// Create a FixedPointSemantics object from an integer created via toOpaqueInt().
+  /// Create a FixedPointSemantics object from an integer created via
+  /// toOpaqueInt().
   static FixedPointSemantics getFromOpaqueInt(uint32_t);
 
 private:

``````````

</details>


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


More information about the llvm-commits mailing list