Begin work on setting up type information table

This commit is contained in:
gingerBill
2023-07-24 17:12:23 +01:00
parent 28fca190ee
commit 28c97a9467
5 changed files with 366 additions and 19 deletions
+2
View File
@@ -214,6 +214,7 @@ struct cgModule {
RwMutex values_mutex;
PtrMap<Entity *, cgValue> values;
PtrMap<Entity *, TB_Symbol *> symbols;
StringMap<cgValue> members;
StringMap<cgProcedure *> procedures;
PtrMap<TB_Function *, Entity *> procedure_values;
@@ -257,6 +258,7 @@ gb_internal void cg_add_procedure_to_queue(cgProcedure *p);
gb_internal void cg_setup_type_info_data(cgModule *m);
gb_internal isize cg_global_const_calculate_region_count(ExactValue const &value, Type *type);
gb_internal i64 cg_global_const_calculate_region_count_from_basic_type(Type *type);
gb_internal bool cg_global_const_add_region(cgModule *m, ExactValue const &value, Type *type, TB_Global *global, i64 offset);
gb_internal cgValue cg_value(TB_Global * g, Type *type);