added _Decimal* and __bf16 types to RDI and DWARF converter

This commit is contained in:
Nikita Smith
2026-02-18 21:25:35 -08:00
parent f0c3ea7678
commit 338d2177ff
5 changed files with 89 additions and 59 deletions
+9 -4
View File
@@ -1775,7 +1775,7 @@ d2r_convert_types(Arena *arena,
} else if (str8_match(name, str8_lit("_Float16"), 0)) {
kind = RDI_TypeKind_F16;
} else if (str8_match(name, str8_lit("__bf16"), 0)) {
NotImplemented;
kind = RDI_TypeKind_BF16;
}
if (kind != RDI_TypeKind_NULL) { break; }
}
@@ -1818,6 +1818,14 @@ d2r_convert_types(Arena *arena,
default: log_user_errorf("unexpected size"); break;
}
} break;
case DW_ATE_DecimalFloat: {
switch (byte_size) {
case 4: kind = RDI_TypeKind_Decimal32; break;
case 8: kind = RDI_TypeKind_Decimal64; break;
case 16: kind = RDI_TypeKind_Decimal128; break;
default: log_user_errorf("unexpected size"); break;
}
} break;
case DW_ATE_ImaginaryFloat: {
NotImplemented;
} break;
@@ -1836,9 +1844,6 @@ d2r_convert_types(Arena *arena,
case DW_ATE_UnsignedFixed: {
NotImplemented;
} break;
case DW_ATE_DecimalFloat: {
NotImplemented;
} break;
case DW_ATE_Ucs: {
NotImplemented;
} break;