From 789221dcfa5df3c88e28978c90ccfb9eafb30e10 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 29 Aug 2017 20:36:55 -0700 Subject: nir: Add a helper for getting binop identities Reviewed-by: Lionel Landwerlin Reviewed-by: Iago Toral Quiroga --- src/compiler/nir/nir.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/nir/nir.h') diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 65c5343de4d..5b28c727c80 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2064,6 +2064,8 @@ bool nir_deref_foreach_leaf(nir_deref_var *deref, nir_load_const_instr * nir_deref_get_const_initializer_load(nir_shader *shader, nir_deref_var *deref); +nir_const_value nir_alu_binop_identity(nir_op binop, unsigned bit_size); + /** * NIR Cursors and Instruction Insertion API * @{ -- cgit v1.2.3