[libcxx-commits] [libcxxabi] [llvm] [libcxxabi][ItaniumDemangle] Demangle DF16b as std::bfloat16_t (PR #120109)
Fraser Cormack via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 17 03:28:02 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");
----------------
frasercrmck wrote:
I've updated the PR to print `std::bfloat16_t` in both cases
https://github.com/llvm/llvm-project/pull/120109
More information about the libcxx-commits
mailing list