This commit is contained in:
Nikita Smith
2026-02-19 18:11:11 -08:00
parent a02fa0f4cb
commit e7cf2513b7
2 changed files with 21 additions and 0 deletions
+5
View File
@@ -1934,6 +1934,11 @@ d2r_convert_types(Arena *arena,
type->direct_type = direct_type; type->direct_type = direct_type;
} break; } break;
case DW_TagKind_ArrayType: { case DW_TagKind_ArrayType: {
// TODO: @native_vector_support extract byte size from the base type tag
// and convert to U256, U512, S256 and S512
B32 is_vector = dw_flag_from_tag_attrib_kind(input, cu, tag, DW_AttribKind_GNU_Vector);
if (is_vector) { NotImplemented; }
B32 error = 1; B32 error = 1;
// * DWARF vs RDI Array Type Graph * // * DWARF vs RDI Array Type Graph *
+16
View File
@@ -120,6 +120,22 @@ T_BeginTest(d2r_types)
DeclStdint("int32_t", int_type); DeclStdint("int32_t", int_type);
DeclStdint("int64_t", long_int_type); DeclStdint("int64_t", long_int_type);
#undef DeclStdInt #undef DeclStdInt
// TODO: @native_vector_support
//
// typedef int __attribute__((vector_size(32))) int256
// typedef unsigned int __attribute__((vector_size(32))) uint256
// typedef int __attribute__((vector_size(64))) int512
// typedef unsigned int __attribute__((vector_size(64))) uint512
//
#if 0
dw_writer_tag_begin(writer, DW_TagKind_ArrayType);
dw_writer_push_attrib_flag(writer, DW_AttribKind_GNU_Vector, 1);
dw_writer_push_attrib_ref(writer, DW_AttribKind_Type, int_type);
dw_writer_tag_begin(writer, DW_TagKind_SubrangeType);
dw_writer_push_attrib_uint(writer, DW_AttribKind_UpperBound, 15);
dw_writer_tag_end(writer);
dw_writer_tag_end(writer);
#endif
dw_writer_tag_end(writer); dw_writer_tag_end(writer);
} }