tcg: Make gen_dup_i32/i64() public as tcg_gen_dup_i32/i64
commit614dd4f3ba2a025eae5235c3466ef6da191879f6
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Jun 2021 12:15:53 +0000 (17 13:15 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jun 2021 16:12:50 +0000 (21 17:12 +0100)
treeebace9429994ecd47c5e5c5dd8a9897ba2b75d89
parent399a8c766c0526b51cd180e1b1c776d6dc95bad8
tcg: Make gen_dup_i32/i64() public as tcg_gen_dup_i32/i64

The Arm MVE VDUP implementation would like to be able to emit code to
duplicate a byte or halfword value into an i32.  We have code to do
this already in tcg-op-gvec.c, so all we need to do is make the
functions global.

For consistency with other functions made available to the frontends:
 * we rename to tcg_gen_dup_*
 * we expose both the _i32 and _i64 forms
 * we provide the #define for a _tl form

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210617121628.20116-10-peter.maydell@linaro.org
include/tcg/tcg-op.h
include/tcg/tcg.h
tcg/tcg-op-gvec.c