nir/algebraic: rename lower_bitshift to lower_bitops
authorErico Nunes <nunes.erico@gmail.com>
Thu, 18 Jul 2019 18:56:27 +0000 (20:56 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Wed, 31 Jul 2019 21:06:04 +0000 (23:06 +0200)
commitb3676a65488e4d47596000c260f7872cfed78688
tree7b072515e454d5214058eb736994719b1808d95e
parent99c956fb470637304c092855520697e08b598356
nir/algebraic: rename lower_bitshift to lower_bitops

Optimizations that insert bitshift or bitwise operations should not be
applied on GPUs that don't support integer operations.
The .lower_bitshift could be used to control the bitshift related ones,
but there was also one bitwise optimization uncovered.
Since only lima and freedreno use this option and the use case is that
no bit operations are wanted, let's rename it to .lower_bitops and use
it to control all bitops related optimizations.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py
src/gallium/drivers/freedreno/a2xx/ir2_nir.c
src/gallium/drivers/lima/lima_program.c