nir/algebraic: Add a bit-size validator
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 Apr 2016 03:58:47 +0000 (20:58 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Apr 2016 18:21:06 +0000 (11:21 -0700)
commite0806930ad2406d611a0d2fa1d3420a74122921c
tree444498cf6c2f8188909e395fc72990e31aba43bc
parent8a3e3441802c417ec944f02a9f38491b3b236d7c
nir/algebraic: Add a bit-size validator

This commit adds a validator that ensures that all expressions passed
through nir_algebraic are 100% non-ambiguous as far as bit-sizes are
concerned.  This way it's a compile-time error rather than a hard-to-trace
C exception some time later.

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