From 083a658ee87f511cf2a42db8333db635c9889688 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 5 Jan 2021 10:28:47 -0500 Subject: [PATCH] pan/bi: Add destination iterator macro Convenience. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/compiler.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index bea25bc9083..6b99bba8cd8 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -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) {