pan/bi: Copy back bi_foreach_successor

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11936>
This commit is contained in:
Alyssa Rosenzweig
2021-07-16 18:33:32 -04:00
committed by Marge Bot
parent 8bee48a635
commit a372368e22
+8
View File
@@ -734,6 +734,14 @@ bi_node_to_index(unsigned node, unsigned node_count)
v != NULL; \
v = (v == (tuple)->add) ? NULL : (tuple)->add)
#define bi_foreach_successor(blk, v) \
bi_block *v; \
bi_block **_v; \
for (_v = &blk->successors[0], \
v = *_v; \
v != NULL && _v < &blk->successors[2]; \
_v++, v = *_v) \
/* Based on set_foreach, expanded with automatic type casts */
#define bi_foreach_predecessor(blk, v) \