wcc: add the size primitive type (TY_SIZE), classify as unsigned int (#85)

fold-1: type exists + classifies; mirrors TY_UINTPTR at every site, both stages. size(T)/len() return types UNCHANGED (fold-2). Regenerates the 5 combined.ww (lib/ww embedded).
This commit is contained in:
2026-05-26 01:26:03 +09:00
parent 68dbb77d6c
commit bd7181ae1f
7 changed files with 38 additions and 15 deletions

View File

@@ -711,7 +711,7 @@ let_emit_size(Type *t)
case TY_BOOL: case TY_RUNE:
case TY_I8: case TY_I16: case TY_I32: case TY_I64:
case TY_U8: case TY_U16: case TY_U32: case TY_U64:
case TY_INT: case TY_UINT: case TY_UINTPTR:
case TY_INT: case TY_UINT: case TY_UINTPTR: case TY_SIZE:
case TY_PTR:
return 8;
case TY_F32: