17 uint8_t NumRegisters = RF.
Reg();
18 uint8_t RegistersVFP = RF.
R();
19 uint8_t LinkRegister = RF.
L();
20 uint8_t ChainedFrame = RF.
C();
22 uint16_t GPRMask = (ChainedFrame << 11) | (LinkRegister << 14);
26 VFPMask |= (((1 << ((NumRegisters + 1) % 8)) - 1) << 8);
28 GPRMask |= (((1 << (NumRegisters + 1)) - 1) << 4);
31 GPRMask |= (((1 << (NumRegisters + 1)) - 1) << (~RF.
StackAdjust() & 0x3));
33 return std::make_pair(GPRMask, VFPMask);
This class represents lattice values for constants.
bool PrologueFolding(const RuntimeFunction &RF)
PrologueFolding - pseudo-flag derived from Stack Adjust indicating that the prologue has stack adjust...
RuntimeFunction - An entry in the table of procedure data (.pdata)
std::pair< uint16_t, uint32_t > SavedRegisterMask(const RuntimeFunction &RF)
SavedRegisterMask - Utility function to calculate the set of saved general purpose (r0-r15) and VFP (...
uint16_t StackAdjust() const