[libcxx-commits] [libcxxabi] [llvm] [ItaniumDemangle] Demangle DF16b as bfloat16_t (PR #120109)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 16 09:57:27 PST 2024


================
@@ -4330,9 +4330,12 @@ Node *AbstractManglingParser<Derived, Alloc>::parseType() {
     case 'h':
       First += 2;
       return make<NameType>("half");
-    //                ::= DF <number> _ # ISO/IEC TS 18661 binary floating point (N bits)
+    //       ::= DF16b         # C++23 std::bfloat16_t
+    //       ::= DF <number> _ # ISO/IEC TS 18661 binary floating point (N bits)
     case 'F': {
       First += 2;
+      if (consumeIf("16b"))
+        return make<NameType>("bfloat16_t");
----------------
ldionne wrote:

Should this be `std::bfloat16_t` instead?

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


More information about the libcxx-commits mailing list