nir: add nir_{src,dest}_bit_size() helpers
authorConnor Abbott <connor.w.abbott@intel.com>
Fri, 14 Aug 2015 17:18:39 +0000 (10:18 -0700)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 17 Mar 2016 10:16:33 +0000 (11:16 +0100)
commit6700d7e423bb2d7c5f0b46740bd92b5e65679eaf
treefd78bf82762c68eb5c9ad16a2ca99476713eeb46
parente172dbe5d2e9a4effd92823cd8ebc342e0928a36
nir: add nir_{src,dest}_bit_size() helpers

v2: use a ternary (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir.h