Improve global array index to be on a per module basis

This commit is contained in:
gingerBill
2025-02-25 15:06:13 +00:00
parent 92f6d2745b
commit 400348c925
4 changed files with 20 additions and 22 deletions
+2 -2
View File
@@ -169,6 +169,8 @@ struct lbModule {
RwMutex values_mutex;
std::atomic<u32> global_array_index;
PtrMap<Entity *, lbValue> values;
PtrMap<Entity *, lbAddr> soa_values;
StringMap<lbValue> members;
@@ -226,8 +228,6 @@ struct lbGenerator : LinkerData {
RecursiveMutex anonymous_proc_lits_mutex;
PtrMap<Ast *, lbProcedure *> anonymous_proc_lits;
std::atomic<u32> global_array_index;
isize used_module_count;
lbProcedure *startup_runtime;