diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-10-29 14:08:46 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-11-06 08:27:21 -0800 |
| commit | 16edaee720139892dbff97cfcb89bf18eb70d227 (patch) | |
| tree | a0025ab3485d4ee1fa9d264c6ddc20253866d474 /include/tcg/tcg-op-common.h | |
| parent | 17b9fadb1d93edd79ac1aec7f48b66ceff325cbd (diff) | |
| download | focaccia-qemu-16edaee720139892dbff97cfcb89bf18eb70d227.tar.gz focaccia-qemu-16edaee720139892dbff97cfcb89bf18eb70d227.zip | |
tcg: Move tcg_constant_* out of line
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231029210848.78234-10-richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg/tcg-op-common.h')
| -rw-r--r-- | include/tcg/tcg-op-common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tcg/tcg-op-common.h b/include/tcg/tcg-op-common.h index 760c67683b..dddf93067e 100644 --- a/include/tcg/tcg-op-common.h +++ b/include/tcg/tcg-op-common.h @@ -12,6 +12,11 @@ #include "exec/helper-proto-common.h" #include "exec/helper-gen-common.h" +TCGv_i32 tcg_constant_i32(int32_t val); +TCGv_i64 tcg_constant_i64(int64_t val); +TCGv_vec tcg_constant_vec(TCGType type, unsigned vece, int64_t val); +TCGv_vec tcg_constant_vec_matching(TCGv_vec match, unsigned vece, int64_t val); + /* Generic ops. */ void gen_set_label(TCGLabel *l); @@ -459,6 +464,9 @@ void tcg_gen_stl_vec(TCGv_vec r, TCGv_ptr base, TCGArg offset, TCGType t); # define NAT TCGv_i64 #endif +TCGv_ptr tcg_constant_ptr_int(intptr_t x); +#define tcg_constant_ptr(X) tcg_constant_ptr_int((intptr_t)(X)) + static inline void tcg_gen_ld_ptr(TCGv_ptr r, TCGv_ptr a, intptr_t o) { glue(tcg_gen_ld_,PTR)((NAT)r, a, o); |