Add intrinsics.soa_copy_from_slice and use it within _append_soa_elems replacing the old handwritten unrolled approach

This commit is contained in:
gingerBill
2026-08-03 14:41:04 +01:00
parent a38d3abbcb
commit 9914a57fc7
7 changed files with 193 additions and 247 deletions

View File

@@ -2001,6 +2001,11 @@ gb_internal bool is_type_soa_struct(Type *t) {
if (t == nullptr) { return false; }
return t->kind == Type_Struct && t->Struct.soa_kind != StructSoa_None;
}
gb_internal bool is_type_soa_dynamic_array(Type *t) {
t = base_type(t);
if (t == nullptr) { return false; }
return t->kind == Type_Struct && t->Struct.soa_kind == StructSoa_Dynamic;
}
gb_internal bool is_type_raw_union(Type *t) {
t = base_type(t);