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

Const GEP32_1 support

This commit is contained in:
Brian Fiete 2022-03-17 10:26:42 -07:00
parent 1195d0e08f
commit 8155d7286a
2 changed files with 18 additions and 0 deletions

View file

@ -2367,6 +2367,14 @@ void BfIRBuilder::Write(const BfIRValue& irValue)
Write(bitcast->mToType);
}
break;
case (int)BfConstType_GEP32_1:
{
auto gepConst = (BfConstantGEP32_1*)constant;
BfIRValue targetConst(BfIRValueFlags_Const, gepConst->mTarget);
Write(targetConst);
Write(gepConst->mIdx0);
}
break;
case (int)BfConstType_GEP32_2:
{
auto gepConst = (BfConstantGEP32_2*)constant;