harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 29cf8b8cf49e268392c15caed5f48ce0b71c8a39
parent 1a0162835046c8030c80164e6be032332be1d0c9
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  5 Oct 2021 14:40:46 +0200

rt: add types for more arches

Diffstat:
Mrt/types.ha | 24++++++++++++------------
Art/types_arch+aarch64.ha | 33+++++++++++++++++++++++++++++++++
Art/types_arch+riscv64.ha | 33+++++++++++++++++++++++++++++++++
Mrt/types_arch+x86_64.ha | 15+++++++--------
4 files changed, 85 insertions(+), 20 deletions(-)

diff --git a/rt/types.ha b/rt/types.ha @@ -97,51 +97,51 @@ export const @hidden builtin_char: types::typeinfo = types::typeinfo { sz = 1, al = 1, flags = 0, repr = types::builtin::CHAR, }, @hidden builtin_f32: types::typeinfo = types::typeinfo { - id = 930681398, + id = 1568378015, sz = 4, al = 4, flags = 0, repr = types::builtin::F32, }, @hidden builtin_f64: types::typeinfo = types::typeinfo { - id = 2037165609, + id = 930681398, sz = 8, al = 8, flags = 0, repr = types::builtin::F64, }, @hidden builtin_i8: types::typeinfo = types::typeinfo { - id = 461893804, + id = 2674862226, sz = 1, al = 1, flags = 0, repr = types::builtin::I8, }, @hidden builtin_i16: types::typeinfo = types::typeinfo { - id = 3312558843, + id = 2037165609, sz = 2, al = 2, flags = 0, repr = types::builtin::I16, }, @hidden builtin_i32: types::typeinfo = types::typeinfo { - id = 2674862226, + id = 1399468992, sz = 4, al = 4, flags = 0, repr = types::builtin::I32, }, @hidden builtin_i64: types::typeinfo = types::typeinfo { - id = 1099590421, + id = 3312558843, sz = 8, al = 8, flags = 0, repr = types::builtin::I64, }, @hidden builtin_rune: types::typeinfo = types::typeinfo { - id = 2206074632, + id = 2374983655, sz = 4, al = 4, flags = 0, repr = types::builtin::RUNE, }, @hidden builtin_u8: types::typeinfo = types::typeinfo { - id = 3181589295, + id = 1906196061, sz = 1, al = 1, flags = 0, repr = types::builtin::U8, }, @hidden builtin_u16: types::typeinfo = types::typeinfo { - id = 3481467866, + id = 2206074632, sz = 2, al = 2, flags = 0, repr = types::builtin::U16, }, @hidden builtin_u32: types::typeinfo = types::typeinfo { - id = 1906196061, + id = 4119164483, sz = 4, al = 4, flags = 0, repr = types::builtin::U32, }, @hidden builtin_u64: types::typeinfo = types::typeinfo { - id = 1268499444, + id = 3481467866, sz = 8, al = 8, flags = 0, repr = types::builtin::U64, }, @hidden builtin_void: types::typeinfo = types::typeinfo { - id = 3012680272, + id = 2543892678, sz = 0, al = 0, flags = 0, repr = types::builtin::VOID, }; diff --git a/rt/types_arch+aarch64.ha b/rt/types_arch+aarch64.ha @@ -0,0 +1,33 @@ +export const @hidden builtin_int: types::typeinfo = types::typeinfo { + id = 1099590421, + sz = 4, al = 4, flags = 0, + repr = types::builtin::INT, +}, @hidden builtin_uint: types::typeinfo = types::typeinfo { + id = 1268499444, + sz = 4, al = 4, flags = 0, + repr = types::builtin::UINT, +}, @hidden builtin_bool: types::typeinfo = types::typeinfo { + id = 292984781, + sz = 4, al = 4, flags = 0, + repr = types::builtin::BOOL, +}, @hidden builtin_size: types::typeinfo = types::typeinfo { + id = 1737287038, + sz = 8, al = 8, flags = 0, + repr = types::builtin::SIZE, +}, @hidden builtin_uintptr: types::typeinfo = types::typeinfo { + id = 3181589295, + sz = 8, al = 8, flags = 0, + repr = types::builtin::UINTPTR, +}, @hidden builtin_str: types::typeinfo = types::typeinfo { + id = 2843771249, + sz = 24, al = 8, flags = 0, + repr = types::builtin::STR, +}, @hidden builtin_null: types::typeinfo = types::typeinfo { + id = 461893804, + sz = 8, al = 8, flags = 0, + repr = types::builtin::NULL, +}, @hidden builtin_type: types::typeinfo = types::typeinfo { + id = 3650376889, + sz = 8, al = 8, flags = 0, + repr = types::builtin::TYPE, +}; diff --git a/rt/types_arch+riscv64.ha b/rt/types_arch+riscv64.ha @@ -0,0 +1,33 @@ +export const @hidden builtin_int: types::typeinfo = types::typeinfo { + id = 1099590421, + sz = 4, al = 4, flags = 0, + repr = types::builtin::INT, +}, @hidden builtin_uint: types::typeinfo = types::typeinfo { + id = 1268499444, + sz = 4, al = 4, flags = 0, + repr = types::builtin::UINT, +}, @hidden builtin_bool: types::typeinfo = types::typeinfo { + id = 292984781, + sz = 4, al = 4, flags = 0, + repr = types::builtin::BOOL, +}, @hidden builtin_size: types::typeinfo = types::typeinfo { + id = 1737287038, + sz = 8, al = 8, flags = 0, + repr = types::builtin::SIZE, +}, @hidden builtin_uintptr: types::typeinfo = types::typeinfo { + id = 3181589295, + sz = 8, al = 8, flags = 0, + repr = types::builtin::UINTPTR, +}, @hidden builtin_str: types::typeinfo = types::typeinfo { + id = 2843771249, + sz = 24, al = 8, flags = 0, + repr = types::builtin::STR, +}, @hidden builtin_null: types::typeinfo = types::typeinfo { + id = 461893804, + sz = 8, al = 8, flags = 0, + repr = types::builtin::NULL, +}, @hidden builtin_type: types::typeinfo = types::typeinfo { + id = 3650376889, + sz = 8, al = 8, flags = 0, + repr = types::builtin::TYPE, +}; diff --git a/rt/types_arch+x86_64.ha b/rt/types_arch+x86_64.ha @@ -1,9 +1,9 @@ export const @hidden builtin_int: types::typeinfo = types::typeinfo { - id = 1737287038, + id = 1099590421, sz = 4, al = 4, flags = 0, repr = types::builtin::INT, }, @hidden builtin_uint: types::typeinfo = types::typeinfo { - id = 2543892678, + id = 1268499444, sz = 4, al = 4, flags = 0, repr = types::builtin::UINT, }, @hidden builtin_bool: types::typeinfo = types::typeinfo { @@ -11,24 +11,23 @@ export const @hidden builtin_int: types::typeinfo = types::typeinfo { sz = 4, al = 4, flags = 0, repr = types::builtin::BOOL, }, @hidden builtin_size: types::typeinfo = types::typeinfo { - id = 4119164483, + id = 1737287038, sz = 8, al = 8, flags = 0, repr = types::builtin::SIZE, }, @hidden builtin_uintptr: types::typeinfo = types::typeinfo { - id = 3650376889, + id = 3181589295, sz = 8, al = 8, flags = 0, repr = types::builtin::UINTPTR, }, @hidden builtin_str: types::typeinfo = types::typeinfo { - id = 3350498318, + id = 2843771249, sz = 24, al = 8, flags = 0, repr = types::builtin::STR, }, @hidden builtin_null: types::typeinfo = types::typeinfo { - id = 2843771249, + id = 461893804, sz = 8, al = 8, flags = 0, repr = types::builtin::NULL, }, @hidden builtin_type: types::typeinfo = types::typeinfo { - // TODO: This type ID is wrong - id = 3181589295, + id = 3650376889, sz = 8, al = 8, flags = 0, repr = types::builtin::TYPE, };