sgpr and smem

This commit is contained in:
Mid 2025-10-17 14:09:10 +03:00
parent 8c4754b563
commit 8c164a3b09

View File

@ -26,8 +26,12 @@ Type *primitive_parse(const char *src) {
if(!strcmp(src, "ugpr")) { if(!strcmp(src, "ugpr")) {
return type_u(8 * arch_gpr_size()); return type_u(8 * arch_gpr_size());
} else if(!strcmp(src, "sgpr")) {
return type_s(8 * arch_gpr_size());
} else if(!strcmp(src, "umem")) { } else if(!strcmp(src, "umem")) {
return type_u(arch_memory_width()); return type_u(arch_memory_width());
} else if(!strcmp(src, "smem")) {
return type_s(arch_memory_width());
} }
TypePrimitive *ret = calloc(1, sizeof(*ret)); TypePrimitive *ret = calloc(1, sizeof(*ret));