================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to