aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-11-27 07:44:51 -0800
committerRichard Henderson <richard.henderson@linaro.org>2018-12-26 06:57:37 +1100
commit69e3706d2b473815e382552e729d12590339e0ac (patch)
tree9c1dc684b6b9086073ddee4f5583b675c1757177 /tcg/tcg.h
parentba87719cd267e6f07b17f6cda08246bf483146d4 (diff)
downloadqemu-69e3706d2b473815e382552e729d12590339e0ac.zip
qemu-69e3706d2b473815e382552e729d12590339e0ac.tar.gz
qemu-69e3706d2b473815e382552e729d12590339e0ac.tar.bz2
tcg: Add output_pref to TCGOp
Allocate storage for, but do not yet fill in, per-opcode preferences for the output operands. Pass it in to the register allocation routines for output operands. Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r--tcg/tcg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index db2d918..c6721cc 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -619,6 +619,9 @@ typedef struct TCGOp {
/* Arguments for the opcode. */
TCGArg args[MAX_OPC_PARAM];
+
+ /* Register preferences for the output(s). */
+ TCGRegSet output_pref[2];
} TCGOp;
#define TCGOP_CALLI(X) (X)->param1