pan/bi: Add destination iterator macro

Convenience.

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/8723>
This commit is contained in:
Alyssa Rosenzweig 2021-01-05 10:28:47 -05:00 committed by Marge Bot
parent eca516ebdb
commit 083a658ee8

View file

@ -676,6 +676,9 @@ bi_node_to_index(unsigned node, unsigned node_count)
#define bi_foreach_src(ins, v) \
for (unsigned v = 0; v < ARRAY_SIZE(ins->src); ++v)
#define bi_foreach_dest(ins, v) \
for (unsigned v = 0; v < ARRAY_SIZE(ins->dest); ++v)
static inline bi_instr *
bi_prev_op(bi_instr *ins)
{