summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_search_helpers.h
Commit message (Collapse)AuthorAgeFilesLines
* nir/algebraic: support for power-of-two optimizationsRob Clark2016-06-031-0/+94
Some optimizations, like converting integer multiply/divide into left/ right shifts, have additional constraints on the search expression. Like requiring that a variable is a constant power of two. Support these cases by allowing a fxn name to be appended to the search var expression (ie. "a#32(is_power_of_two)"). Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>