emit_x64: Make reg_alloc a local variable

reg_alloc contains state that is only valid on a per-block basis, so there
is no reason for it to be a member variable.
This commit is contained in:
MerryMage 2017-02-04 09:23:19 +00:00
parent 459d7d1baf
commit 2af39dfaa8
2 changed files with 162 additions and 165 deletions

File diff suppressed because it is too large Load diff

View file

@ -54,7 +54,7 @@ public:
private: private:
// Microinstruction emitters // Microinstruction emitters
#define OPCODE(name, type, ...) void Emit##name(IR::Block& block, IR::Inst* inst); #define OPCODE(name, type, ...) void Emit##name(RegAlloc& reg_alloc, IR::Block& block, IR::Inst* inst);
#include "frontend/ir/opcodes.inc" #include "frontend/ir/opcodes.inc"
#undef OPCODE #undef OPCODE
@ -87,9 +87,6 @@ private:
// Global CPU information // Global CPU information
Xbyak::util::Cpu cpu_info; Xbyak::util::Cpu cpu_info;
// Per-block state
RegAlloc reg_alloc;
// State // State
BlockOfCode* code; BlockOfCode* code;
UserCallbacks cb; UserCallbacks cb;