[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 26/28] tcg: Remove tcg_temp_local_new_*, tcg_const_local_*
From: |
Richard Henderson |
Subject: |
[PATCH v2 26/28] tcg: Remove tcg_temp_local_new_*, tcg_const_local_* |
Date: |
Wed, 22 Feb 2023 13:27:13 -1000 |
These symbols are now unused.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/tcg/tcg-op.h | 2 --
include/tcg/tcg.h | 28 ----------------------------
tcg/tcg.c | 16 ----------------
3 files changed, 46 deletions(-)
diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h
index 66b1461caa..353d430a63 100644
--- a/include/tcg/tcg-op.h
+++ b/include/tcg/tcg-op.h
@@ -828,14 +828,12 @@ static inline void tcg_gen_plugin_cb_end(void)
#if TARGET_LONG_BITS == 32
#define tcg_temp_new() tcg_temp_new_i32()
#define tcg_global_mem_new tcg_global_mem_new_i32
-#define tcg_temp_local_new() tcg_temp_local_new_i32()
#define tcg_temp_free tcg_temp_free_i32
#define tcg_gen_qemu_ld_tl tcg_gen_qemu_ld_i32
#define tcg_gen_qemu_st_tl tcg_gen_qemu_st_i32
#else
#define tcg_temp_new() tcg_temp_new_i64()
#define tcg_global_mem_new tcg_global_mem_new_i64
-#define tcg_temp_local_new() tcg_temp_local_new_i64()
#define tcg_temp_free tcg_temp_free_i64
#define tcg_gen_qemu_ld_tl tcg_gen_qemu_ld_i64
#define tcg_gen_qemu_st_tl tcg_gen_qemu_st_i64
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index 2e220d4040..7e2b954dbc 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -905,12 +905,6 @@ static inline TCGv_i32 tcg_temp_new_i32(void)
return temp_tcgv_i32(t);
}
-static inline TCGv_i32 tcg_temp_local_new_i32(void)
-{
- TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I32, TEMP_TB);
- return temp_tcgv_i32(t);
-}
-
static inline TCGv_i64 tcg_global_mem_new_i64(TCGv_ptr reg, intptr_t offset,
const char *name)
{
@@ -931,12 +925,6 @@ static inline TCGv_i64 tcg_temp_new_i64(void)
return temp_tcgv_i64(t);
}
-static inline TCGv_i64 tcg_temp_local_new_i64(void)
-{
- TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I64, TEMP_TB);
- return temp_tcgv_i64(t);
-}
-
/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */
static inline TCGv_i128 tcg_temp_ebb_new_i128(void)
{
@@ -950,12 +938,6 @@ static inline TCGv_i128 tcg_temp_new_i128(void)
return temp_tcgv_i128(t);
}
-static inline TCGv_i128 tcg_temp_local_new_i128(void)
-{
- TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I128, TEMP_TB);
- return temp_tcgv_i128(t);
-}
-
static inline TCGv_ptr tcg_global_mem_new_ptr(TCGv_ptr reg, intptr_t offset,
const char *name)
{
@@ -976,12 +958,6 @@ static inline TCGv_ptr tcg_temp_new_ptr(void)
return temp_tcgv_ptr(t);
}
-static inline TCGv_ptr tcg_temp_local_new_ptr(void)
-{
- TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_TB);
- return temp_tcgv_ptr(t);
-}
-
#if defined(CONFIG_DEBUG_TCG)
/* If you call tcg_clear_temp_count() at the start of a section of
* code which is not supposed to leak any TCG temporaries, then
@@ -1084,8 +1060,6 @@ void tcg_optimize(TCGContext *s);
/* Allocate a new temporary and initialize it with a constant. */
TCGv_i32 tcg_const_i32(int32_t val);
TCGv_i64 tcg_const_i64(int64_t val);
-TCGv_i32 tcg_const_local_i32(int32_t val);
-TCGv_i64 tcg_const_local_i64(int64_t val);
TCGv_vec tcg_const_zeros_vec(TCGType);
TCGv_vec tcg_const_ones_vec(TCGType);
TCGv_vec tcg_const_zeros_vec_matching(TCGv_vec);
@@ -1113,11 +1087,9 @@ TCGv_vec tcg_constant_vec_matching(TCGv_vec match,
unsigned vece, int64_t val);
#if UINTPTR_MAX == UINT32_MAX
# define tcg_const_ptr(x) ((TCGv_ptr)tcg_const_i32((intptr_t)(x)))
-# define tcg_const_local_ptr(x) ((TCGv_ptr)tcg_const_local_i32((intptr_t)(x)))
# define tcg_constant_ptr(x) ((TCGv_ptr)tcg_constant_i32((intptr_t)(x)))
#else
# define tcg_const_ptr(x) ((TCGv_ptr)tcg_const_i64((intptr_t)(x)))
-# define tcg_const_local_ptr(x) ((TCGv_ptr)tcg_const_local_i64((intptr_t)(x)))
# define tcg_constant_ptr(x) ((TCGv_ptr)tcg_constant_i64((intptr_t)(x)))
#endif
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 9f1b042ecd..4b244eebc2 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1476,22 +1476,6 @@ TCGv_i64 tcg_const_i64(int64_t val)
return t0;
}
-TCGv_i32 tcg_const_local_i32(int32_t val)
-{
- TCGv_i32 t0;
- t0 = tcg_temp_local_new_i32();
- tcg_gen_movi_i32(t0, val);
- return t0;
-}
-
-TCGv_i64 tcg_const_local_i64(int64_t val)
-{
- TCGv_i64 t0;
- t0 = tcg_temp_local_new_i64();
- tcg_gen_movi_i64(t0, val);
- return t0;
-}
-
#if defined(CONFIG_DEBUG_TCG)
void tcg_clear_temp_count(void)
{
--
2.34.1
- [PATCH v2 11/28] tcg: Use tcg_temp_ebb_new_* in tcg/, (continued)
- [PATCH v2 11/28] tcg: Use tcg_temp_ebb_new_* in tcg/, Richard Henderson, 2023/02/22
- [PATCH v2 14/28] tcg: Don't re-use TEMP_TB temporaries, Richard Henderson, 2023/02/22
- [PATCH v2 15/28] tcg: Change default temp lifetime to TEMP_TB, Richard Henderson, 2023/02/22
- [PATCH v2 16/28] target/arm: Drop copies in gen_sve_{ldr,str}, Richard Henderson, 2023/02/22
- [PATCH v2 17/28] target/arm: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/22
- [PATCH v2 18/28] target/cris: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 21/28] target/i386: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 20/28] target/hppa: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 22/28] target/mips: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 26/28] tcg: Remove tcg_temp_local_new_*, tcg_const_local_*,
Richard Henderson <=
- [PATCH v2 23/28] target/ppc: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 25/28] exec/gen-icount: Don't use tcg_temp_local_new_i32, Richard Henderson, 2023/02/22
- [PATCH v2 19/28] target/hexagon: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/22
- [PATCH v2 24/28] target/xtensa: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/22
- [PATCH v2 28/28] tcg: Use noinline for major tcg_gen_code_subroutines, Richard Henderson, 2023/02/22
- [PATCH v2 27/28] tcg: Update docs/devel/tcg-ops.rst for temporary changes, Richard Henderson, 2023/02/22