mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
tcg: Reduce tcg_assert_listed_vecop() scope
tcg_assert_listed_vecop() is only used in tcg-op-vec.c. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230629091107.74384-1-philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
34d03ad963
commit
ec2297bda2
2 changed files with 3 additions and 9 deletions
|
@ -1135,12 +1135,6 @@ uint64_t dup_const(unsigned vece, uint64_t c);
|
||||||
: (qemu_build_not_reached_always(), 0)) \
|
: (qemu_build_not_reached_always(), 0)) \
|
||||||
: dup_const(VECE, C))
|
: dup_const(VECE, C))
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_TCG
|
|
||||||
void tcg_assert_listed_vecop(TCGOpcode);
|
|
||||||
#else
|
|
||||||
static inline void tcg_assert_listed_vecop(TCGOpcode op) { }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static inline const TCGOpcode *tcg_swap_vecop_list(const TCGOpcode *n)
|
static inline const TCGOpcode *tcg_swap_vecop_list(const TCGOpcode *n)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG_TCG
|
#ifdef CONFIG_DEBUG_TCG
|
||||||
|
|
|
@ -42,9 +42,9 @@
|
||||||
* tcg_ctx->vec_opt_opc is non-NULL, the tcg_gen_*_vec expanders
|
* tcg_ctx->vec_opt_opc is non-NULL, the tcg_gen_*_vec expanders
|
||||||
* will validate that their opcode is present in the list.
|
* will validate that their opcode is present in the list.
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_DEBUG_TCG
|
static void tcg_assert_listed_vecop(TCGOpcode op)
|
||||||
void tcg_assert_listed_vecop(TCGOpcode op)
|
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_DEBUG_TCG
|
||||||
const TCGOpcode *p = tcg_ctx->vecop_list;
|
const TCGOpcode *p = tcg_ctx->vecop_list;
|
||||||
if (p) {
|
if (p) {
|
||||||
for (; *p; ++p) {
|
for (; *p; ++p) {
|
||||||
|
@ -54,8 +54,8 @@ void tcg_assert_listed_vecop(TCGOpcode op)
|
||||||
}
|
}
|
||||||
g_assert_not_reached();
|
g_assert_not_reached();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
bool tcg_can_emit_vecop_list(const TCGOpcode *list,
|
bool tcg_can_emit_vecop_list(const TCGOpcode *list,
|
||||||
TCGType type, unsigned vece)
|
TCGType type, unsigned vece)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue