nir: Add a helper for getting binop identities
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Aug 2017 03:36:55 +0000 (20:36 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Mar 2018 20:13:47 +0000 (12:13 -0800)
commit789221dcfa5df3c88e28978c90ccfb9eafb30e10
treea80edfeec5f262adf197a3d7dcadfbf849576b87
parent82d493a939e9485311f002f65bdc98cddcb44ce8
nir: Add a helper for getting binop identities

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir.c
src/compiler/nir/nir.h