Skip to content

Commit 6bf376b

Browse files
committed
Allow emitinl.h access to the rbm variables.
1 parent 7b2d4e5 commit 6bf376b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/coreclr/jit/emitinl.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,22 @@ inline ssize_t emitter::emitGetInsAmdAny(instrDesc* id)
207207

208208
#endif // TARGET_XARCH
209209

210+
// TODO-XARCH-AVX512 the following are defined via compiler.h but re-defining via
211+
// extern here to avoid having to introduce a dependency of compiler.h on to
212+
// emitinl.h
213+
#if defined(TARGET_AMD64)
214+
extern regMaskTP rbmAllFloat;
215+
extern regMaskTP rbmFltCalleeTrash;
216+
extern unsigned cntCalleeTrashFloat;
217+
#endif
218+
210219
/*****************************************************************************
211220
*
212221
* Convert between a register mask and a smaller version for storage.
213222
*/
214-
215223
/*static*/ inline void emitter::emitEncodeCallGCregs(regMaskTP regmask, instrDesc* id)
216224
{
217-
// TODO-XARCH-AVX512 global defined in compiler.h, not in scope here
218-
// assert((regmask & RBM_CALLEE_TRASH) == 0);
225+
assert((regmask & RBM_CALLEE_TRASH) == 0);
219226

220227
unsigned encodeMask;
221228

0 commit comments

Comments
 (0)