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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user