x64/reg_alloc: Use type alias for array returned by GetArgumentInfo()

This way if the number ever changes, we don't need to change the type in
other places.
This commit is contained in:
Lioncash 2018-08-13 11:10:34 -04:00 committed by MerryMage
parent 2188765e28
commit c41b5a3492
3 changed files with 6 additions and 4 deletions

View file

@ -91,10 +91,12 @@ private:
class RegAlloc final {
public:
using ArgumentInfo = std::array<Argument, 3>;
explicit RegAlloc(BlockOfCode& code, size_t num_spills, std::function<Xbyak::Address(HostLoc)> spill_to_addr)
: hostloc_info(NonSpillHostLocCount + num_spills), code(code), spill_to_addr(std::move(spill_to_addr)) {}
std::array<Argument, 3> GetArgumentInfo(IR::Inst* inst);
ArgumentInfo GetArgumentInfo(IR::Inst* inst);
Xbyak::Reg64 UseGpr(Argument& arg);
Xbyak::Xmm UseXmm(Argument& arg);