On 25/12/22 00:57, Richard Henderson wrote:
From: Philippe Mathieu-Daudé <phi...@linaro.org>
In order to have variable size allocated TCGOp, pass the number
of arguments we use (and would allocate) up to tcg_op_alloc().
This alters tcg_emit_op(), tcg_op_insert_before() and
tcg_op_insert_after() prototypes.
In tcg_op_alloc() ensure the number of arguments is in range.
Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
[PMD: Extracted from bigger patch]
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-Id: <20221218211832.73312-2-phi...@linaro.org>
---
include/tcg/tcg-op.h | 2 +-
include/tcg/tcg.h | 8 +++++---
accel/tcg/plugin-gen.c | 5 ++++-
tcg/optimize.c | 4 ++--
tcg/tcg-op-vec.c | 8 ++++----
tcg/tcg-op.c | 12 ++++++------
tcg/tcg.c | 30 +++++++++++++++++-------------
7 files changed, 39 insertions(+), 30 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>