[Mesa-dev] [PATCH 2/3] nir: add nir_foreach_instr_safe_reverse()

Kenneth Graunke kenneth at whitecape.org
Thu Jul 16 15:18:52 PDT 2015


From: Connor Abbott <connor.w.abbott at intel.com>

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/glsl/nir/nir.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 0db1fc3..62cdbd4 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1233,6 +1233,8 @@ nir_block_last_instr(nir_block *block)
    foreach_list_typed_reverse(nir_instr, instr, node, &(block)->instr_list)
 #define nir_foreach_instr_safe(block, instr) \
    foreach_list_typed_safe(nir_instr, instr, node, &(block)->instr_list)
+#define nir_foreach_instr_safe_reverse(block, instr) \
+   foreach_list_typed_safe_reverse(nir_instr, instr, node, &(block)->instr_list)
 
 typedef struct nir_if {
    nir_cf_node cf_node;
-- 
2.4.5



More information about the mesa-dev mailing list