reg_alloc: Reimplement UseHostLocReg

This commit is contained in:
MerryMage 2017-02-24 19:42:36 +00:00
parent aefe550428
commit 2b078152e7
2 changed files with 104 additions and 54 deletions

View file

@ -153,10 +153,12 @@ private:
HostLoc UseScratchHostLocReg(IR::Inst* use_inst, HostLocList desired_locations);
HostLoc ScratchHostLocReg(HostLocList desired_locations);
void EmitMove(HostLoc to, HostLoc from);
void EmitExchange(HostLoc a, HostLoc b);
HostLoc LoadImmediateIntoHostLocReg(IR::Value imm, HostLoc reg);
void Move(HostLoc to, HostLoc from);
void Exchange(HostLoc a, HostLoc b);
void MoveOutOfTheWay(HostLoc reg);
void SpillRegister(HostLoc loc);
HostLoc FindFreeSpill() const;