nir/algebraic: Refactor codegen a bit
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Nov 2018 20:32:19 +0000 (14:32 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 5 Dec 2018 21:02:54 +0000 (15:02 -0600)
commit4925290ab1771d075c994ac23e0c0a3c19d3a50e
treefe8539bf9d6932743d93fdf958528b6dd93a8b1e
parentd6aac618fb489fdaf11670489567cc95ea891c86
nir/algebraic: Refactor codegen a bit

Instead of using an OrderedDict, just have a (necessarily sorted) array
of transforms and a set of opcodes.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_algebraic.py