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

Expansion to const equality checks

This commit is contained in:
Brian Fiete 2020-02-29 07:35:17 -08:00
parent a43d4e8bd9
commit 6512841cf1
3 changed files with 61 additions and 3 deletions

View file

@ -830,6 +830,7 @@ public:
BfConstant* GetConstantById(int id);
BfConstant* GetConstant(BfIRValue id);
bool TryGetBool(BfIRValue id, bool& boolVal);
int IsZero(BfIRValue val);
int CheckConstEquality(BfIRValue lhs, BfIRValue rhs); // -1 = fail, 0 = false, 1 = true
BfIRValue CreateConst(BfTypeCode typeCode, uint64 val);