mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
nir: add nir_foreach_instr_safe_reverse()
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> Signed-off-by: Connor Abbott <connor.w.abbott@intel.com>
This commit is contained in:
parent
8eea091747
commit
eaf799ddff
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue