1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Support for "returnaddress" intrinsic

This commit is contained in:
Brian Fiete 2022-01-06 06:26:56 -05:00
parent eb7e78174c
commit 0826b6d49f
4 changed files with 13 additions and 0 deletions

View file

@ -17697,6 +17697,14 @@ void BeMCContext::Generate(BeFunction* function)
useAltArgs = true;
}
break;
case BfIRIntrinsic_ReturnAddress:
{
result = AllocVirtualReg(intrin->mReturnType);
CreateDefineVReg(result);
auto vregInfo = GetVRegInfo(result);
vregInfo->mFrameOffset = 0;
}
break;
case BfIRIntrinsic_VAArg:
{
auto mcListPtr = GetOperand(castedInst->mArgs[0].mValue);