mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 03:30:10 +01:00
pan/bi: Add an is_terminal_block() helper
Needed to decide what to do with JUMPs/BRANCHes to such blocks. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8848>
This commit is contained in:
parent
c391c32af2
commit
dbce99a809
1 changed files with 9 additions and 0 deletions
|
|
@ -746,6 +746,15 @@ bool bi_can_insert_tuple(bi_clause *clause, bool constant);
|
|||
unsigned bi_clause_quadwords(bi_clause *clause);
|
||||
signed bi_block_offset(bi_context *ctx, bi_clause *start, bi_block *target);
|
||||
|
||||
static inline bool
|
||||
bi_is_terminal_block(bi_context *ctx, bi_block *block)
|
||||
{
|
||||
|
||||
return block->base.successors[0] == NULL &&
|
||||
block->base.successors[1] == NULL &&
|
||||
list_is_empty(&block->clauses);
|
||||
}
|
||||
|
||||
/* Code emit */
|
||||
|
||||
void bi_pack(bi_context *ctx, struct util_dynarray *emission);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue