nir: split out instruction comparison functions
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 24 Sep 2015 04:54:52 +0000 (00:54 -0400)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 9 Oct 2015 14:13:27 +0000 (10:13 -0400)
commit20d6d812dc9d35cb082142ac6c9744971692797e
tree759625fbb78de7c57a09518fa1560709fc6f233e
parentda361acd1c899d533caec6cae5a336f6ab35e076
nir: split out instruction comparison functions

Right now nir_instrs_equal() is tied pretty tightly to CSE, but we're
going to introduce the idea of an instruction set and tie it to that
instead.  In anticipation of that, move this into its own file where
we'll add the rest of the instruction set implementation later.

v2: Rebase on texture support.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/Makefile.sources
src/glsl/nir/nir.c
src/glsl/nir/nir_instr_set.c [new file with mode: 0644]
src/glsl/nir/nir_instr_set.h [new file with mode: 0644]
src/glsl/nir/nir_opt_cse.c