String buffers, part 3a: Add IR_TMPREF for passing TValues to helpers.

Sponsored by fmad.io.
This commit is contained in:
Mike Pall
2021-07-19 16:23:12 +02:00
parent 71db0cf043
commit 6df650fe3f
12 changed files with 252 additions and 128 deletions

View File

@@ -95,6 +95,7 @@
_(UREFO, LW, ref, lit) \
_(UREFC, LW, ref, lit) \
_(FREF, R , ref, lit) \
_(TMPREF, S , ref, lit) \
_(STRREF, N , ref, ref) \
_(LREF, L , ___, ___) \
\
@@ -218,6 +219,11 @@ IRFLDEF(FLENUM)
IRFL__MAX
} IRFieldID;
/* TMPREF mode bits, stored in op2. */
#define IRTMPREF_IN1 0x01 /* First input value. */
#define IRTMPREF_OUT1 0x02 /* First output value. */
#define IRTMPREF_OUT2 0x04 /* Second output value. */
/* SLOAD mode bits, stored in op2. */
#define IRSLOAD_PARENT 0x01 /* Coalesce with parent trace. */
#define IRSLOAD_FRAME 0x02 /* Load 32 bits of ftsz. */