diff options
author | Richard Henderson <rth@twiddle.net> | 2016-11-01 15:56:04 -0600 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2017-10-24 21:44:34 +0200 |
commit | b83eabeac06e38706738bd5e92b1ba117a1b554d (patch) | |
tree | c7ee005d1cec9d98a80e5d3c556ef991ccb5d9e8 /tcg/tcg.h | |
parent | 1807f4c40098070008eb84b2032e25b7ac42569e (diff) |
tcg: Use per-temp state data in liveness
This avoids having to allocate external memory for each temporary.
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -592,6 +592,12 @@ typedef struct TCGTemp { struct TCGTemp *mem_base; intptr_t mem_offset; const char *name; + + /* Pass-specific information that can be stored for a temporary. + One word worth of integer data, and one pointer to data + allocated separately. */ + uintptr_t state; + void *state_ptr; } TCGTemp; typedef struct TCGContext TCGContext; |