diff options
author | Connor Abbott <[email protected]> | 2015-07-15 12:01:20 -0700 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2015-07-17 09:49:53 -0700 |
commit | eaf799ddff9f2583d6dee5a0db36fa0a1162fde6 (patch) | |
tree | d0df3d2c64d1172ea839377f0c80e9033d14a95a /src/glsl | |
parent | 8eea091747c9b12b21688b738145632b90d923cb (diff) |
nir: add nir_foreach_instr_safe_reverse()
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 0db1fc3076e..62cdbd4a5fb 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; |