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

Const string interpolation

This commit is contained in:
Brian Fiete 2022-02-13 10:41:34 -05:00
parent f38cf6a1fd
commit 8ebd7516d8
10 changed files with 167 additions and 40 deletions

View file

@ -138,7 +138,8 @@ enum BfConstType
BfConstType_ArrayZero,
BfConstType_ArrayZero8,
BfConstType_Undef,
BfConstType_SizedArrayType
BfConstType_SizedArrayType,
BfConstType_Box
};
enum BfIRValueFlags : uint8
@ -856,6 +857,13 @@ struct BfConstantBitCast
BfIRType mToType;
};
struct BfConstantBox
{
BfConstType mConstType;
int mTarget;
BfIRType mToType;
};
struct BfConstantPtrToInt
{
BfConstType mConstType;
@ -946,6 +954,7 @@ public:
BfIRValue CreateConstArrayZero(BfIRType type, int count);
BfIRValue CreateConstArrayZero(int count);
BfIRValue CreateConstBitCast(BfIRValue val, BfIRType type);
BfIRValue CreateConstBox(BfIRValue val, BfIRType type);
BfIRValue CreateTypeOf(BfType* type);
BfIRValue CreateTypeOf(BfType* type, BfIRValue typeData);
BfIRValue GetUndefConstValue(BfIRType type);