tcg: Remove args_ct from TCGOpDef
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 3 Jan 2025 18:34:34 +0000 (10:34 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 17 Jan 2025 04:57:16 +0000 (20:57 -0800)
commit501fb3da3fd60538214218cfbccc1abf45a047c2
treebf1150c3632382807bbdb1d7ffd1265359029efa
parent3e80824e8bffef2d1dd27165a2cf48e8c034ed10
tcg: Remove args_ct from TCGOpDef

Introduce a new function, opcode_args_ct, to look up the argument
set for an opcode.  We lose the ability to assert the correctness
of the map from TCGOpcode to constraint sets at startup, but we can
still validate at runtime upon lookup.

Rename process_op_defs to process_constraint_sets, as it now does
nothing to TCGOpDef.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg.h
tcg/tcg-common.c
tcg/tcg.c