16 uint8_t NumRegisters = RF.
Reg();
17 uint8_t RegistersVFP = RF.
R();
18 uint8_t LinkRegister = RF.
L();
19 uint8_t ChainedFrame = RF.
C();
21 uint16_t GPRMask = (ChainedFrame << 11);
25 GPRMask |= (LinkRegister << 14);
29 GPRMask |= (LinkRegister << 14);
31 GPRMask |= (LinkRegister << 15);
36 VFPMask |= (((1 << ((NumRegisters + 1) % 8)) - 1) << 8);
38 GPRMask |= (((1 << (NumRegisters + 1)) - 1) << 4);
41 GPRMask |= (((1 << ((RF.
StackAdjust() & 0x3) + 1)) - 1)
42 << (~RF.StackAdjust() & 0x3));
44 return std::make_pair(GPRMask, VFPMask);
RuntimeFunction - An entry in the table of procedure data (.pdata)
uint16_t StackAdjust() const
bool EpilogueFolding(const RuntimeFunction &RF)
Epilogue - pseudo-flag derived from Stack Adjust indicating that the epilogue has stack adjustment co...
std::pair< uint16_t, uint32_t > SavedRegisterMask(const RuntimeFunction &RF, bool Prologue=true)
SavedRegisterMask - Utility function to calculate the set of saved general purpose (r0-r15) and VFP (...
bool PrologueFolding(const RuntimeFunction &RF)
PrologueFolding - pseudo-flag derived from Stack Adjust indicating that the prologue has stack adjust...
This is an optimization pass for GlobalISel generic memory operations.
@ WinEH
Windows Exception Handling.