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:
parent
eb7e78174c
commit
0826b6d49f
4 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue