PPCRec: Partial support for typed registers in RA

This commit is contained in:
Exzap 2023-02-04 17:54:46 +01:00
parent e9c161c508
commit c891abcb74
6 changed files with 239 additions and 193 deletions

View file

@ -88,7 +88,12 @@ private:
struct IMLRegisterAllocatorParameters
{
IMLPhysRegisterSet physicalRegisterPool;
inline IMLPhysRegisterSet& GetPhysRegPool(IMLRegFormat regFormat)
{
return perTypePhysPool[stdx::to_underlying(regFormat)];
}
IMLPhysRegisterSet perTypePhysPool[stdx::to_underlying(IMLRegFormat::TYPE_COUNT)];// physicalRegisterPool;
};
void IMLRegisterAllocator_AllocateRegisters(ppcImlGenContext_t* ppcImlGenContext, IMLRegisterAllocatorParameters& raParam);