[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 23/31] target/hexagon/idef-parser: Drop gen_tmp_local
From: |
Richard Henderson |
Subject: |
[PATCH v4 23/31] target/hexagon/idef-parser: Drop gen_tmp_local |
Date: |
Sun, 26 Feb 2023 19:36:53 -1000 |
This is now equivalent to gen_tmp.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/hexagon/idef-parser/parser-helpers.c | 24 ++-------------------
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/target/hexagon/idef-parser/parser-helpers.c
b/target/hexagon/idef-parser/parser-helpers.c
index dfb9c65b52..3025040640 100644
--- a/target/hexagon/idef-parser/parser-helpers.c
+++ b/target/hexagon/idef-parser/parser-helpers.c
@@ -307,26 +307,6 @@ HexValue gen_tmp(Context *c,
return rvalue;
}
-HexValue gen_tmp_local(Context *c,
- YYLTYPE *locp,
- unsigned bit_width,
- HexSignedness signedness)
-{
- HexValue rvalue;
- assert(bit_width == 32 || bit_width == 64);
- memset(&rvalue, 0, sizeof(HexValue));
- rvalue.type = TEMP;
- rvalue.bit_width = bit_width;
- rvalue.signedness = signedness;
- rvalue.is_dotnew = false;
- rvalue.is_manual = false;
- rvalue.tmp.index = c->inst.tmp_count;
- OUT(c, locp, "TCGv_i", &bit_width, " tmp_", &c->inst.tmp_count,
- " = tcg_temp_new_i", &bit_width, "();\n");
- c->inst.tmp_count++;
- return rvalue;
-}
-
HexValue gen_tmp_value(Context *c,
YYLTYPE *locp,
const char *value,
@@ -2161,8 +2141,8 @@ HexValue gen_rvalue_sat(Context *c, YYLTYPE *locp, HexSat
*sat,
assert_signedness(c, locp, sat->signedness);
unsigned_str = (sat->signedness == UNSIGNED) ? "u" : "";
- res = gen_tmp_local(c, locp, value->bit_width, sat->signedness);
- ovfl = gen_tmp_local(c, locp, 32, sat->signedness);
+ res = gen_tmp(c, locp, value->bit_width, sat->signedness);
+ ovfl = gen_tmp(c, locp, 32, sat->signedness);
OUT(c, locp, "gen_sat", unsigned_str, "_", bit_suffix, "_ovfl(");
OUT(c, locp, &ovfl, ", ", &res, ", ", value, ", ", &width->imm.value,
");\n");
--
2.34.1
- RE: [PATCH v4 22/31] target/hexagon: Don't use tcg_temp_local_new_*, (continued)
- [PATCH v4 25/31] target/i386: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 24/31] target/hppa: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 17/31] tcg: Don't re-use TEMP_TB temporaries, Richard Henderson, 2023/02/27
- [PATCH v4 27/31] target/ppc: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 18/31] tcg: Change default temp lifetime to TEMP_TB, Richard Henderson, 2023/02/27
- [PATCH v4 21/31] target/cris: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 26/31] target/mips: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 29/31] exec/gen-icount: Don't use tcg_temp_local_new_i32, Richard Henderson, 2023/02/27
- [PATCH v4 31/31] tcg: Update docs/devel/tcg-ops.rst for temporary changes, Richard Henderson, 2023/02/27
- [PATCH v4 23/31] target/hexagon/idef-parser: Drop gen_tmp_local,
Richard Henderson <=
- [PATCH v4 19/31] target/arm: Drop copies in gen_sve_{ldr,str}, Richard Henderson, 2023/02/27
- [PATCH v4 20/31] target/arm: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/27
- [PATCH v4 28/31] target/xtensa: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/27
- [PATCH v4 30/31] tcg: Remove tcg_temp_local_new_*, tcg_const_local_*, Richard Henderson, 2023/02/27