pan/midgard: Move midgard_is_branch_unit to helpers
Signed-off-by: Afonso Bordado <afonsobordado@az8.co> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
5e9106f7af
commit
0e83688f47
|
@ -337,4 +337,10 @@ midgard_ldst_reg(unsigned reg, unsigned component)
|
|||
return packed;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
midgard_is_branch_unit(unsigned unit)
|
||||
{
|
||||
return (unit == ALU_ENAB_BRANCH) || (unit == ALU_ENAB_BR_COMPACT);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -69,13 +69,6 @@ int midgard_debug = 0;
|
|||
do { if (midgard_debug & MIDGARD_DBG_MSGS) \
|
||||
fprintf(stderr, "%s:%d: "fmt, \
|
||||
__FUNCTION__, __LINE__, ##__VA_ARGS__); } while (0)
|
||||
|
||||
static bool
|
||||
midgard_is_branch_unit(unsigned unit)
|
||||
{
|
||||
return (unit == ALU_ENAB_BRANCH) || (unit == ALU_ENAB_BR_COMPACT);
|
||||
}
|
||||
|
||||
static midgard_block *
|
||||
create_empty_block(compiler_context *ctx)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue