freedreno/ir3/ra: add helper to map name to instruction
authorRob Clark <robdclark@chromium.org>
Thu, 19 Mar 2020 23:29:57 +0000 (16:29 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Mar 2020 22:41:36 +0000 (22:41 +0000)
commitd20a06e40199f4082cea73a3636b87823c76ed2b
tree673f47c8c408d715acc6b688724c19289c230f0d
parent29992a039e9959110139353664b7eb12d991e8d0
freedreno/ir3/ra: add helper to map name to instruction

Extract out a helper from the select_reg callback.  And include all the
instructions in the hashtable, not just SFU.  This will be useful in the
following commits.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4272>
src/freedreno/ir3/ir3_ra.c