nir/opcodes: Pull in the type helpers from constant_expressions
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Nov 2018 18:15:22 +0000 (12:15 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 5 Dec 2018 21:02:06 +0000 (15:02 -0600)
commit03571a7a6c6d0d4df9409a75fe93c925ec045670
tree7abaf3732f05059e7660e20c04a2640775d660eb
parenta0ae12ca91a45f81897e774019cde9bd081f03a0
nir/opcodes: Pull in the type helpers from constant_expressions

While we're at it, we rework them a bit to all use regular expressions
and assert more.

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