nir: Add lowering for find_lsb.
authorEric Anholt <eric@anholt.net>
Fri, 4 May 2018 21:02:55 +0000 (14:02 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 Jun 2018 20:44:28 +0000 (13:44 -0700)
commit6a0db5f08ffac7d43a5b937982262f357a21f95b
tree62cb75c55c8ffacbb39d98d3c428198482b63b34
parentd4c7c3c225b7c34669498c15c2d3186cf6a4647e
nir: Add lowering for find_lsb.

There is a fairly simple relation to turn this into ufind_msb.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py