Mulithread startup procedure body generation

This commit is contained in:
gingerBill
2025-09-18 16:35:04 +01:00
parent 3954491393
commit 5559916d5c
2 changed files with 45 additions and 32 deletions
+12
View File
@@ -333,6 +333,14 @@ struct lbVariadicReuseSlices {
lbAddr slice_addr;
};
struct lbGlobalVariable {
lbValue var;
lbValue init;
DeclInfo *decl;
bool is_initialized;
};
struct lbProcedure {
u32 flags;
u16 state_flags;
@@ -395,6 +403,10 @@ struct lbProcedure {
PtrMap<LLVMValueRef, lbTupleFix> tuple_fix_map;
Array<lbValue> asan_stack_locals;
void (*generate_body)(lbModule *m, lbProcedure *p);
Array<lbGlobalVariable> *global_variables;
lbProcedure *objc_names;
};