aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-11-01 15:56:04 -0600
committerRichard Henderson <richard.henderson@linaro.org>2017-10-24 21:44:34 +0200
commitb83eabeac06e38706738bd5e92b1ba117a1b554d (patch)
treec7ee005d1cec9d98a80e5d3c556ef991ccb5d9e8 /tcg/tcg.h
parent1807f4c40098070008eb84b2032e25b7ac42569e (diff)
downloadqemu-b83eabeac06e38706738bd5e92b1ba117a1b554d.zip
qemu-b83eabeac06e38706738bd5e92b1ba117a1b554d.tar.gz
qemu-b83eabeac06e38706738bd5e92b1ba117a1b554d.tar.bz2
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 828c1e7..0a0bc92 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -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;