size reduction merge
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJVSVCHAAoJEK0ScMxN0CebmcEH/3HBugIAC7DGbFLjPYoLeVhX FzTUHOUE2o3m23anCUd1Gj2JgOptmEwqTHDzXuyMWIiysonpaGJUo/QnVufwnAnX 3Yy7C1wjYH+VLgOyFtUKpC8azm3MPo2A9YjKdZY91zhN5Gt810UNxRbgOUGL8PcR W5ITZc3fzc7E3ax/4uC//Fmy6lltV/x7dnyCCVV5n8cLnVpql0l1xCZuvlJI22t+ AbusscvJFAeUv8iIKJkSnf8mtvVAF9iBW3Q1sJkqJvG2lQjV9SOPVZjm05f5zytS tRtxNNRIYmgSMVlLfunf5GRcvp1CreEsUa3qhwmq64zAj0kcsm48/Xm0mEC7MLM= =BTQf -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/rth/tags/tcg-next-20150505' into staging size reduction merge # gpg: Signature made Wed May 6 00:21:43 2015 BST using RSA key ID 4DD0279B # gpg: Good signature from "Richard Henderson <rth7680@gmail.com>" # gpg: aka "Richard Henderson <rth@redhat.com>" # gpg: aka "Richard Henderson <rth@twiddle.net>" * remotes/rth/tags/tcg-next-20150505: tcg: optimise memory layout of TCGTemp Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
38003aee19
26
tcg/tcg.h
26
tcg/tcg.h
@ -417,20 +417,19 @@ static inline TCGCond tcg_high_cond(TCGCond c)
|
||||
}
|
||||
}
|
||||
|
||||
#define TEMP_VAL_DEAD 0
|
||||
#define TEMP_VAL_REG 1
|
||||
#define TEMP_VAL_MEM 2
|
||||
#define TEMP_VAL_CONST 3
|
||||
typedef enum TCGTempVal {
|
||||
TEMP_VAL_DEAD,
|
||||
TEMP_VAL_REG,
|
||||
TEMP_VAL_MEM,
|
||||
TEMP_VAL_CONST,
|
||||
} TCGTempVal;
|
||||
|
||||
/* XXX: optimize memory layout */
|
||||
typedef struct TCGTemp {
|
||||
TCGType base_type;
|
||||
TCGType type;
|
||||
int val_type;
|
||||
int reg;
|
||||
tcg_target_long val;
|
||||
int mem_reg;
|
||||
intptr_t mem_offset;
|
||||
unsigned int reg:8;
|
||||
unsigned int mem_reg:8;
|
||||
TCGTempVal val_type:8;
|
||||
TCGType base_type:8;
|
||||
TCGType type:8;
|
||||
unsigned int fixed_reg:1;
|
||||
unsigned int mem_coherent:1;
|
||||
unsigned int mem_allocated:1;
|
||||
@ -438,6 +437,9 @@ typedef struct TCGTemp {
|
||||
basic blocks. Otherwise, it is not
|
||||
preserved across basic blocks. */
|
||||
unsigned int temp_allocated:1; /* never used for code gen */
|
||||
|
||||
tcg_target_long val;
|
||||
intptr_t mem_offset;
|
||||
const char *name;
|
||||
} TCGTemp;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user