nir/builder: Add a nir_imm_intN_t helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 31 Oct 2017 21:42:33 +0000 (14:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:37:52 +0000 (10:37 -0800)
commit8c2bf020fd649957597d074cf2390d6de029ddd0
treeebefd22e62614b59c3f69798814e804dd5e0725e
parent9b35faba426acc111741aa69752cb87185e548aa
nir/builder: Add a nir_imm_intN_t helper

This lets you easily build integer immediates of arbitrary bit size.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_builder.h