diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-28 13:49:41 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-29 20:34:55 +0000 |
commit | 64c49ab1fc48e9a82c06f1e9fc92c3cf093ef3ce (patch) | |
tree | 8bf3889fe3bd77ae15725b1821b79f73a528f558 /src/panfrost | |
parent | 64bedbfa67bc0f814ba6b0d4a587807fb9b88050 (diff) |
pan/bi: Add bi_foreach_clause_in_block_from{_rev} helpers
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
Diffstat (limited to 'src/panfrost')
-rw-r--r-- | src/panfrost/bifrost/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index a283f3fed60..bfa8ab81fe0 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -520,6 +520,12 @@ bi_make_temp_reg(bi_context *ctx) #define bi_foreach_clause_in_block(block, v) \ list_for_each_entry(bi_clause, v, &(block)->clauses, link) +#define bi_foreach_clause_in_block_from(block, v, from) \ + list_for_each_entry_from(bi_clause, v, from, &(block)->clauses, link) + +#define bi_foreach_clause_in_block_from_rev(block, v, from) \ + list_for_each_entry_from_rev(bi_clause, v, from, &(block)->clauses, link) + #define bi_foreach_instr_global(ctx, v) \ bi_foreach_block(ctx, v_block) \ bi_foreach_instr_in_block((bi_block *) v_block, v) |