nir/constant_folding: add back and use constant_fold_state
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 26 Sep 2019 10:19:07 +0000 (11:19 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 7 Oct 2019 18:49:53 +0000 (19:49 +0100)
commitec054a67daa606b60201da144f4a3ad1a1cde451
tree34b3fd443002772d7b5cdc1c849c789cbe3d5f04
parentf7ca072ab21b3ac1976b31ad81891f3626e3b876
nir/constant_folding: add back and use constant_fold_state

Useful for load_constant folding.

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