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

Added const equality checking for string literals

This commit is contained in:
Brian Fiete 2020-02-28 14:46:12 -08:00
parent 5bed292e87
commit a43d4e8bd9
3 changed files with 60 additions and 1 deletions

View file

@ -830,6 +830,7 @@ public:
BfConstant* GetConstantById(int id);
BfConstant* GetConstant(BfIRValue id);
bool TryGetBool(BfIRValue id, bool& boolVal);
int CheckConstEquality(BfIRValue lhs, BfIRValue rhs); // -1 = fail, 0 = false, 1 = true
BfIRValue CreateConst(BfTypeCode typeCode, uint64 val);
BfIRValue CreateConst(BfTypeCode typeCode, int val);
@ -840,7 +841,7 @@ public:
BfIRValue CreateConstStructZero(BfIRType aggType);
BfIRValue CreateConstArray(BfIRType type, const BfSizedArray<BfIRValue>& values);
BfIRValue CreateTypeOf(BfType* type);
BfIRValue GetUndefConstValue(BfTypeCode typeCode);
BfIRValue GetUndefConstValue(BfTypeCode typeCode);
};
enum BfIRPopulateType