aco: refactor get_reg() to take Temp instead of RegClass
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 10 Apr 2020 17:55:18 +0000 (18:55 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Apr 2020 18:23:22 +0000 (18:23 +0000)
commit7c8f4ebca93f0252419996618a49d507bbfda231
treed5d311fa2b2e9c5ce0ba074cf500415eff1f0d03
parent0a9ed981780c98c33bf14829ef5bbe5a2c409882
aco: refactor get_reg() to take Temp instead of RegClass

This patch also moves get_reg_specified() and
get_reg_vec() before get_reg() to make use of it later.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4573>
src/amd/compiler/aco_register_allocation.cpp