mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 10:31:31 +02:00
JitRegCache: Move protected interface below public interface
This commit is contained in:
parent
1a34376f3a
commit
d1fc694c02
@ -38,19 +38,6 @@ typedef int PReg;
|
||||
|
||||
class RegCache
|
||||
{
|
||||
protected:
|
||||
std::array<PPCCachedReg, 32> regs;
|
||||
std::array<X64CachedReg, NUMXREGS> xregs;
|
||||
|
||||
virtual const Gen::X64Reg* GetAllocationOrder(size_t* count) = 0;
|
||||
|
||||
virtual BitSet32 GetRegUtilization() = 0;
|
||||
virtual BitSet32 CountRegsIn(size_t preg, u32 lookahead) = 0;
|
||||
|
||||
Gen::XEmitter* emit;
|
||||
|
||||
float ScoreRegister(Gen::X64Reg xreg);
|
||||
|
||||
public:
|
||||
RegCache();
|
||||
virtual ~RegCache() {}
|
||||
@ -152,4 +139,16 @@ public:
|
||||
bool IsBound(size_t preg) const { return regs[preg].away && regs[preg].location.IsSimpleReg(); }
|
||||
Gen::X64Reg GetFreeXReg();
|
||||
int NumFreeRegisters();
|
||||
|
||||
protected:
|
||||
virtual const Gen::X64Reg* GetAllocationOrder(size_t* count) = 0;
|
||||
|
||||
virtual BitSet32 GetRegUtilization() = 0;
|
||||
virtual BitSet32 CountRegsIn(size_t preg, u32 lookahead) = 0;
|
||||
|
||||
float ScoreRegister(Gen::X64Reg xreg);
|
||||
|
||||
std::array<PPCCachedReg, 32> regs;
|
||||
std::array<X64CachedReg, NUMXREGS> xregs;
|
||||
Gen::XEmitter* emit;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user