diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-28 15:01:38 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-29 20:34:55 +0000 |
commit | a42731536d59ec2c028138d303d15c18158e85c9 (patch) | |
tree | 0214794a9c5cf19495e4ec7506221a2f1d8c5248 /src | |
parent | c697992ca18e6f059d167fa0a1a9af53b3f93fea (diff) |
pan/bi: Add bi_foreach_block_from_rev helper
Needed for next commit.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/bifrost/compiler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 92dfb963ed7..95c35609e5e 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -498,6 +498,9 @@ bi_make_temp_reg(bi_context *ctx) #define bi_foreach_block_from(ctx, from, v) \ list_for_each_entry_from(pan_block, v, from, &ctx->blocks, link) +#define bi_foreach_block_from_rev(ctx, from, v) \ + list_for_each_entry_from_rev(pan_block, v, from, &ctx->blocks, link) + #define bi_foreach_instr_in_block(block, v) \ list_for_each_entry(bi_instruction, v, &(block)->base.instructions, link) |