aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_search.h
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2019-05-10 16:57:45 +0200
committerEric Anholt <[email protected]>2019-11-26 10:13:19 -0800
commit305d1300f9052405ad9d273b9cbda48c55faf46a (patch)
treefb691b6413d995134156cc2843b828f045169750 /src/compiler/nir/nir_search.h
parent2da4a58ed92feaaab49a078bfb7b4453f9b697ba (diff)
nir: Maintain the algebraic automaton's state as we work.
In order to have nir_opt_algebraic be able to do further algebraic work on the output of a replacement, we need to maintain the automaton's state. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_search.h')
-rw-r--r--src/compiler/nir/nir_search.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_search.h b/src/compiler/nir/nir_search.h
index 80d153916c8..9d567f88165 100644
--- a/src/compiler/nir/nir_search.h
+++ b/src/compiler/nir/nir_search.h
@@ -29,6 +29,7 @@
#define _NIR_SEARCH_
#include "nir.h"
+#include "util/u_dynarray.h"
#define NIR_SEARCH_MAX_VARIABLES 16
@@ -198,6 +199,8 @@ NIR_DEFINE_CAST(nir_search_value_as_expression, nir_search_value,
nir_ssa_def *
nir_replace_instr(struct nir_builder *b, nir_alu_instr *instr,
struct hash_table *range_ht,
+ struct util_dynarray *states,
+ const struct per_op_table *pass_op_table,
const nir_search_expression *search,
const nir_search_value *replace);
bool