nir/builder: Assert that intN_t immediates fit
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 12 Nov 2018 22:02:23 +0000 (16:02 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Nov 2018 01:59:26 +0000 (19:59 -0600)
commit1f29f4db1e867357a119c0c7c34fb54dc27fb682
treeb23af73d180e92c5b9b06ac9dd82c52f89606552
parent4266932c0b301005dcc747fb6c2fef36a3af6ffe
nir/builder: Assert that intN_t immediates fit

This assert won't catch all mistakes with this helper but it will at
least ensure that the top bits are all zero or all one which should help
catch bugs.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/nir/nir_builder.h