[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-8.0 v3 27/45] tcg/aarch64: Merge tcg_out_callr into tcg_out_c
From: |
Richard Henderson |
Subject: |
[PATCH for-8.0 v3 27/45] tcg/aarch64: Merge tcg_out_callr into tcg_out_call |
Date: |
Fri, 11 Nov 2022 17:40:43 +1000 |
There is only one use, and BLR is perhaps even more
self-documentary than CALLR.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/aarch64/tcg-target.c.inc | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/tcg/aarch64/tcg-target.c.inc b/tcg/aarch64/tcg-target.c.inc
index 344b63e20f..1af879e6f5 100644
--- a/tcg/aarch64/tcg-target.c.inc
+++ b/tcg/aarch64/tcg-target.c.inc
@@ -1336,11 +1336,6 @@ static void tcg_out_goto_long(TCGContext *s, const
tcg_insn_unit *target)
}
}
-static inline void tcg_out_callr(TCGContext *s, TCGReg reg)
-{
- tcg_out_insn(s, 3207, BLR, reg);
-}
-
static void tcg_out_call(TCGContext *s, const tcg_insn_unit *target)
{
ptrdiff_t offset = tcg_pcrel_diff(s, target) >> 2;
@@ -1348,7 +1343,7 @@ static void tcg_out_call(TCGContext *s, const
tcg_insn_unit *target)
tcg_out_insn(s, 3206, BL, offset);
} else {
tcg_out_movi(s, TCG_TYPE_I64, TCG_REG_TMP, (intptr_t)target);
- tcg_out_callr(s, TCG_REG_TMP);
+ tcg_out_insn(s, 3207, BLR, TCG_REG_TMP);
}
}
--
2.34.1
- [PATCH for-8.0 v3 17/45] tcg: Replace TCG_TARGET_EXTEND_ARGS with TCG_TARGET_CALL_ARG_I32, (continued)
- [PATCH for-8.0 v3 27/45] tcg/aarch64: Merge tcg_out_callr into tcg_out_call,
Richard Henderson <=
- [PATCH for-8.0 v3 24/45] tcg: Use output_pref wrapper function, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v3 25/45] tcg: Reorg function calls, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v3 28/45] tcg: Add TCGHelperInfo argument to tcg_out_call, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v3 31/45] tcg: Allocate objects contiguously in temp_allocate_frame, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v3 32/45] tcg: Introduce tcg_out_addi_ptr, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v3 29/45] tcg: Define TCG_TYPE_I128 and related helper macros, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v3 30/45] tcg: Handle dh_typecode_i128 with TCG_CALL_{RET, ARG}_NORMAL, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v3 33/45] tcg: Add TCG_CALL_{RET,ARG}_BY_REF, Richard Henderson, 2022/11/11