Number fields within procedures with a depth-first numbering system

This commit is contained in:
gingerBill
2025-02-19 10:59:05 +00:00
parent 827cd45f04
commit 0bac34eec8
3 changed files with 12 additions and 1 deletions
+4
View File
@@ -229,6 +229,8 @@ struct DeclInfo {
Array<BlockLabel> labels;
i32 scope_index;
Array<VariadicReuseData> variadic_reuses;
i64 variadic_reuse_max_bytes;
i64 variadic_reuse_max_align;
@@ -273,6 +275,8 @@ struct Scope {
std::atomic<Scope *> next;
std::atomic<Scope *> head_child;
i32 index; // within a procedure
RwMutex mutex;
StringMap<Entity *> elements;
PtrSet<Scope *> imported;