1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixed some comptime dependency rebuilding issues with aliases/extensions

This commit is contained in:
Brian Fiete 2022-02-16 18:28:23 -05:00
parent 1cd198cea9
commit 434a7406de
22 changed files with 394 additions and 86 deletions

View file

@ -7,6 +7,7 @@
#include "BfSource.h"
#include "BfIRBuilder.h"
#include "BeefySysLib/util/MultiHashSet.h"
#include "BeefySysLib/util/BitSet.h"
NS_BF_BEGIN
@ -428,7 +429,8 @@ enum BfTypeRebuildFlags
BfTypeRebuildFlag_ResolvingBase = 0x8000,
BfTypeRebuildFlag_InFailTypes = 0x10000,
BfTypeRebuildFlag_RebuildQueued = 0x20000,
BfTypeRebuildFlag_ConstEvalCancelled = 0x40000
BfTypeRebuildFlag_ConstEvalCancelled = 0x40000,
BfTypeRebuildFlag_ChangedMidCompile = 0x80000,
};
class BfTypeDIReplaceCallback;
@ -489,7 +491,7 @@ public:
BfContext* mContext;
int mTypeId;
int mRevision;
int mRevision;
// For Objects, align and size is ref-sized (object*).
// Use mInstSize/mInstAlign for actual data size/align
@ -1842,6 +1844,12 @@ class BfGenericExtensionInfo
{
public:
Dictionary<BfTypeDef*, BfGenericExtensionEntry> mExtensionMap;
BitSet mConstraintsPassedSet;
void Clear()
{
mExtensionMap.Clear();
}
};
// Note on nested generic types- mGenericParams is the accumulation of all generic params from outer to inner, so