mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965/cfg: Add a foreach_inst_in_block_reverse_safe macro.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
579157e6c1
commit
65dd4a255a
1 changed files with 3 additions and 0 deletions
|
|
@ -314,6 +314,9 @@ struct cfg_t {
|
|||
#define foreach_inst_in_block_reverse(__type, __inst, __block) \
|
||||
foreach_in_list_reverse(__type, __inst, &(__block)->instructions)
|
||||
|
||||
#define foreach_inst_in_block_reverse_safe(__type, __inst, __block) \
|
||||
foreach_in_list_reverse_safe(__type, __inst, &(__block)->instructions)
|
||||
|
||||
#define foreach_inst_in_block_starting_from(__type, __scan_inst, __inst, __block) \
|
||||
for (__type *__scan_inst = (__type *)__inst->next; \
|
||||
!__scan_inst->is_tail_sentinel(); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue