nir: add nir_variable::index and nir_index_vars
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 15 Nov 2019 15:15:14 +0000 (15:15 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Wed, 20 Nov 2019 15:05:42 +0000 (15:05 +0000)
commit9f92e8b72130df484862db3d07216a476348aadc
tree15c80ff27a8e7a303553dacd1849694bed5e5125
parent45a0b5349082fba81dac7adf9a59c5a1b40baaa6
nir: add nir_variable::index and nir_index_vars

This will be useful as a deterministic identifier/index for the variable.

v2: fix comment style

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com> (v1)
src/compiler/nir/nir.c
src/compiler/nir/nir.h