mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Fixed CurrentAddToConstHolder of sized array types
This commit is contained in:
parent
bd10113806
commit
f47d9e0b01
4 changed files with 225 additions and 159 deletions
|
@ -946,6 +946,10 @@ public:
|
|||
BfIRConstHolder(BfModule* module);
|
||||
virtual ~BfIRConstHolder();
|
||||
|
||||
String ToString(BfIRValue irValue);
|
||||
String ToString(BfIRType irType);
|
||||
void pv(const BfIRValue& irValue);
|
||||
|
||||
BfConstant* GetConstantById(int id);
|
||||
BfConstant* GetConstant(BfIRValue id);
|
||||
bool TryGetBool(BfIRValue id, bool& boolVal);
|
||||
|
@ -954,6 +958,8 @@ public:
|
|||
int CheckConstEquality(BfIRValue lhs, BfIRValue rhs); // -1 = fail, 0 = false, 1 = true
|
||||
//void WriteConstant(void* data, BeConstant* constVal);
|
||||
|
||||
BfIRType GetSizedArrayType(BfIRType elementType, int length);
|
||||
|
||||
BfIRValue CreateConst(BfTypeCode typeCode, uint64 val);
|
||||
BfIRValue CreateConst(BfTypeCode typeCode, int val);
|
||||
BfIRValue CreateConst(BfTypeCode typeCode, double val);
|
||||
|
@ -1172,7 +1178,7 @@ public:
|
|||
String ToString(BfIRMDNode irMDNode);
|
||||
String ActiveFuncToString();
|
||||
void PrintActiveFunc();
|
||||
void pv(const BfIRValue& irValue);
|
||||
void pv(const BfIRValue& irValue);
|
||||
void pt(const BfIRType& irType);
|
||||
void pbft(BfType* type);
|
||||
void pt(const BfIRFunction& irFun);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue