mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
pan/bi: Add bi_foreach_block_from_rev helper
Needed for next commit. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
This commit is contained in:
parent
c697992ca1
commit
a42731536d
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue