[llvm] [IR][AsmParser] Revamp how floating-point literals work in LLVM IR. (PR #121838)

Joshua Cranmer via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 08:36:45 PST 2025


================
@@ -4608,31 +4610,40 @@ Simple Constants
     The identifier '``none``' is recognized as an empty token constant
     and must be of :ref:`token type <t_token>`.
 
-The one non-intuitive notation for constants is the hexadecimal form of
-floating-point constants. For example, the form
-'``double    0x432ff973cafa8000``' is equivalent to (but harder to read
----------------
jcranmer-intel wrote:

The original parsing code is still being kept, which is why this patch can go in without a few hundred test changes.

The documentation I removed partially because it's deprecated, partially because it's flat out wrong, and partially because describing the correct behavior is annoying (e.g., `0xM` and `0xL` doesn't work like the documentation suggests).

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


More information about the llvm-commits mailing list