aco: Add Operand(Temp, PhysReg) constructor.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7779>
This commit is contained in:
Timur Kristóf 2020-12-04 16:18:18 +01:00 committed by Marge Bot
parent 4491b94d58
commit 8d37aa91d6

View file

@ -476,6 +476,13 @@ public:
setFixed(PhysReg{128});
}
};
explicit Operand(Temp r, PhysReg reg) noexcept
{
assert(r.id()); /* Don't allow fixing an undef to a register */
data_.temp = r;
isTemp_ = true;
setFixed(reg);
};
explicit Operand(uint8_t v) noexcept
{
/* 8-bit constants are only used for copies and copies from any 8-bit