nir/algebraic: Add a bit-size validator

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [intel.com] - 27 April 2016 13:21 UTC

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.

e080693 nir/algebraic: Add a bit-size validator
src/compiler/nir/nir_algebraic.py | 270 +++++++++++++++++++++++++++++++++++++
1 file changed, 270 insertions(+)

Upstream: cgit.freedesktop.org


  • Share