mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 10:40:11 +01:00
pan/bi: Add bi_foreach_instr_and_src_in_tuple
Rather specialized but keeps down obnoxious indentation in scheduler passes. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8354>
This commit is contained in:
parent
a8fce919d2
commit
ee78628f78
1 changed files with 4 additions and 0 deletions
|
|
@ -686,6 +686,10 @@ bi_node_to_index(unsigned node, unsigned node_count)
|
|||
#define bi_foreach_dest(ins, v) \
|
||||
for (unsigned v = 0; v < ARRAY_SIZE(ins->dest); ++v)
|
||||
|
||||
#define bi_foreach_instr_and_src_in_tuple(tuple, ins, s) \
|
||||
bi_foreach_instr_in_tuple(tuple, ins) \
|
||||
bi_foreach_src(ins, s)
|
||||
|
||||
static inline bi_instr *
|
||||
bi_prev_op(bi_instr *ins)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue