summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-06-22 12:13:25 -0700
committerMatt Turner <[email protected]>2017-07-20 16:56:49 -0700
commitd4c9d6a3b2cef577454d9c911fc96d5f678d9955 (patch)
tree46a453be7aaa514f1605770d1f7b52d7c1bb9a2c /src/compiler/nir/nir.h
parentba2fbbf1c0dacfad45ad59b32de6297239c0f88d (diff)
nir: Add pass to optimize intrinsics
Specifically, constant fold intrinsics from ARB_shader_group_vote, but I suspect it'll be useful for other things in the future. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index c41b0dc9313..44a1d0887e3 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2644,6 +2644,8 @@ bool nir_opt_gcm(nir_shader *shader, bool value_number);
bool nir_opt_if(nir_shader *shader);
+bool nir_opt_intrinsics(nir_shader *shader);
+
bool nir_opt_loop_unroll(nir_shader *shader, nir_variable_mode indirect_mask);
bool nir_opt_move_comparisons(nir_shader *shader);