nir: add a nir_instr_def_is_register helper
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 17 Feb 2022 09:25:48 +0000 (10:25 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 24 Feb 2022 11:36:00 +0000 (11:36 +0000)
commitfe2249eac504471306f8f0d2ff3f4ba759b91e28
tree08fdf2f6f79c99e8375fa854a8b48eda6b428ff1
parent0a0446870404c5d4b259f51cdfffac903fd80dc1
nir: add a nir_instr_def_is_register helper

This returns true if the instruction has a dest that is not an SSA value.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15056>
src/compiler/nir/nir.c
src/compiler/nir/nir.h