nir: Enable 64-bit integer support for almost all unary and binary operations
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 3 Sep 2016 01:46:55 +0000 (18:46 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Jan 2017 23:41:23 +0000 (15:41 -0800)
commit3c9b35372b955a69fd21dc4f83fac32ed2b7b53f
treec0e1ce58b7c3e15ea1cab233f582d5cc3ff5a404
parentfda33e09d8eb2a92f294a0433addfcf3527c1544
nir: Enable 64-bit integer support for almost all unary and binary operations

v2: Don't up-convert the shift count parameter if shift instructions.
Suggested by Connor.  Add type_is_singed() function.  This will make
adding 8- and 16-bit types easier.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Cc: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/glsl/glsl_to_nir.cpp