aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_control_flow.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-08-25 12:48:57 +1000
committerTimothy Arceri <[email protected]>2016-12-23 10:15:36 +1100
commitf8407a5398db040ab698503eab26b59982fe1a10 (patch)
tree277d6c728fdfbbe0c2374fcf775cd5fa2ea5d25c /src/compiler/nir/nir_control_flow.h
parentb84dfa0f628717f62b58db94c88123325ef542cd (diff)
nir: add helper for cloning nir_cf_list
V2: - updated to create a generic list clone helper nir_cf_list_clone() - continue to assert on clone when fallback flag not set as suggested by Jason. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_control_flow.h')
-rw-r--r--src/compiler/nir/nir_control_flow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_control_flow.h b/src/compiler/nir/nir_control_flow.h
index b71382fc597..b496aec035a 100644
--- a/src/compiler/nir/nir_control_flow.h
+++ b/src/compiler/nir/nir_control_flow.h
@@ -141,6 +141,9 @@ void nir_cf_reinsert(nir_cf_list *cf_list, nir_cursor cursor);
void nir_cf_delete(nir_cf_list *cf_list);
+void nir_cf_list_clone(nir_cf_list *dst, nir_cf_list *src, nir_cf_node *parent,
+ struct hash_table *remap_table);
+
static inline void
nir_cf_list_extract(nir_cf_list *extracted, struct exec_list *cf_list)
{