[llvm] [KnownFPClass] Move float-to-integer bitcast handling into KnownFPClass [NFC] (PR #218090)
Tim Gymnich via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 22 14:04:39 PDT 2026
================
@@ -241,6 +241,9 @@ struct KnownFPClass {
LLVM_ABI static KnownFPClass bitcast(const fltSemantics &FltSemantics,
const KnownBits &Bits);
+ /// Report known bits for a bitcast from a float with provided semantics.
+ LLVM_ABI KnownBits bitcastToKnownBits(const fltSemantics &FltSemantics) const;
----------------
tgymnich wrote:
`toKnownBits` seems like a better name here since the bitcast part is not important and would be inline with `ConstantRange::toKnownBits()`.
```suggestion
LLVM_ABI KnownBits toKnownBits(const fltSemantics &FltSemantics) const;
```
https://github.com/llvm/llvm-project/pull/218090
More information about the llvm-commits
mailing list