[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/27] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr}
From: |
Richard Henderson |
Subject: |
[PATCH 09/27] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr} |
Date: |
Mon, 30 Jan 2023 10:59:17 -1000 |
TCG internals will want to be able to allocate and reuse
explicitly life-limited temporaries.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/tcg/tcg.h | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index bbede1e900..fe57373d4b 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -890,6 +890,13 @@ static inline TCGv_i32 tcg_global_mem_new_i32(TCGv_ptr
reg, intptr_t offset,
return temp_tcgv_i32(t);
}
+/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */
+static inline TCGv_i32 tcg_temp_ebb_new_i32(void)
+{
+ TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I32, TEMP_EBB);
+ return temp_tcgv_i32(t);
+}
+
static inline TCGv_i32 tcg_temp_new_i32(void)
{
TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I32, TEMP_EBB);
@@ -909,6 +916,13 @@ static inline TCGv_i64 tcg_global_mem_new_i64(TCGv_ptr
reg, intptr_t offset,
return temp_tcgv_i64(t);
}
+/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */
+static inline TCGv_i64 tcg_temp_ebb_new_i64(void)
+{
+ TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I64, TEMP_EBB);
+ return temp_tcgv_i64(t);
+}
+
static inline TCGv_i64 tcg_temp_new_i64(void)
{
TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I64, TEMP_EBB);
@@ -921,6 +935,13 @@ static inline TCGv_i64 tcg_temp_local_new_i64(void)
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)
+{
+ TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I128, TEMP_EBB);
+ return temp_tcgv_i128(t);
+}
+
static inline TCGv_i128 tcg_temp_new_i128(void)
{
TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I128, TEMP_EBB);
@@ -940,6 +961,13 @@ static inline TCGv_ptr tcg_global_mem_new_ptr(TCGv_ptr
reg, intptr_t offset,
return temp_tcgv_ptr(t);
}
+/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */
+static inline TCGv_ptr tcg_temp_ebb_new_ptr(void)
+{
+ TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_EBB);
+ return temp_tcgv_ptr(t);
+}
+
static inline TCGv_ptr tcg_temp_new_ptr(void)
{
TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_EBB);
--
2.34.1
- Re: [PATCH 05/27] tcg: Rename TEMP_LOCAL to TEMP_TB, (continued)
- [PATCH 02/27] accel/tcg: Pass max_insn to gen_intermediate_code by pointer, Richard Henderson, 2023/01/30
- [PATCH] target/arm: Fix physical address resolution for Stage2, Richard Henderson, 2023/01/30
- [PATCH 03/27] accel/tcg: Use more accurate max_insns for tb_overflow, Richard Henderson, 2023/01/30
- [PATCH 01/27] tcg: Adjust TCGContext.temps_in_use check, Richard Henderson, 2023/01/30
- [PATCH 06/27] tcg: Add liveness_pass_0, Richard Henderson, 2023/01/30
- [PATCH 08/27] tcg: Pass TCGTempKind to tcg_temp_new_internal, Richard Henderson, 2023/01/30
- [PATCH 09/27] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr},
Richard Henderson <=
- [PATCH 04/27] tcg: Remove branch-to-next regardless of reference count, Richard Henderson, 2023/01/30
- [PATCH 10/27] tcg: Add tcg_gen_movi_ptr, Richard Henderson, 2023/01/30
- [PATCH 07/27] tcg: Remove TEMP_NORMAL, Richard Henderson, 2023/01/30
- [PATCH 16/27] target/arm: Drop copies in gen_sve_{ldr,str}, Richard Henderson, 2023/01/30
- [PATCH 15/27] tcg: Change default temp lifetime to TEMP_TB, Richard Henderson, 2023/01/30
- [PATCH 13/27] accel/tcg/plugin: Tidy plugin_gen_disable_mem_helpers, Richard Henderson, 2023/01/30