pan/bi: Add bi_must_last predicate

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
This commit is contained in:
Alyssa Rosenzweig 2020-12-21 15:54:48 -05:00 committed by Marge Bot
parent eb217914f7
commit ab4234bdf0
1 changed files with 6 additions and 0 deletions

View File

@ -166,6 +166,12 @@ bi_can_add(bi_instr *ins)
return bi_opcode_props[ins->op].add;
}
ASSERTED static bool
bi_must_last(bi_instr *ins)
{
return bi_opcode_props[ins->op].last;
}
/* Eventually, we'll need a proper scheduling, grouping instructions
* into clauses and ordering/assigning grouped instructions to the
* appropriate FMA/ADD slots. Right now we do the dumbest possible