[clang] [llvm] [HexFloat] add HexFloat to APFloat (PR #179771)
Eric Ross via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 2 15:01:06 PDT 2026
================
@@ -991,6 +1181,9 @@ enum class fltNanEncoding {
};
/* Represents floating point arithmetic semantics. */
struct fltSemantics {
+ /* Human readable name that identifies what these semantics represent */
+ const char *name;
----------------
ZERICO2005 wrote:
an alternate implementation would be to have a dedicated function to return a "pretty" name
```c++
if (&Sem == &getSemIEEEsingle()) { return "single"; }
return "unknown semantics";
```
https://github.com/llvm/llvm-project/pull/179771
More information about the cfe-commits
mailing list