diff options
author | Jason Ekstrand <[email protected]> | 2017-08-29 20:36:55 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-03-07 12:13:47 -0800 |
commit | 789221dcfa5df3c88e28978c90ccfb9eafb30e10 (patch) | |
tree | a80edfeec5f262adf197a3d7dcadfbf849576b87 /src/compiler/nir/nir.h | |
parent | 82d493a939e9485311f002f65bdc98cddcb44ce8 (diff) |
nir: Add a helper for getting binop identities
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 * @{ |