Skip to content

Commit

Permalink
Allow emitinl.h access to the rbm variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonycanino committed Jan 12, 2023
1 parent 7b2d4e5 commit 6bf376b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/coreclr/jit/emitinl.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,22 @@ inline ssize_t emitter::emitGetInsAmdAny(instrDesc* id)

#endif // TARGET_XARCH

// TODO-XARCH-AVX512 the following are defined via compiler.h but re-defining via
// extern here to avoid having to introduce a dependency of compiler.h on to
// emitinl.h
#if defined(TARGET_AMD64)
extern regMaskTP rbmAllFloat;
extern regMaskTP rbmFltCalleeTrash;
extern unsigned cntCalleeTrashFloat;
#endif

/*****************************************************************************
*
* Convert between a register mask and a smaller version for storage.
*/

/*static*/ inline void emitter::emitEncodeCallGCregs(regMaskTP regmask, instrDesc* id)
{
// TODO-XARCH-AVX512 global defined in compiler.h, not in scope here
// assert((regmask & RBM_CALLEE_TRASH) == 0);
assert((regmask & RBM_CALLEE_TRASH) == 0);

unsigned encodeMask;

Expand Down

0 comments on commit 6bf376b

Please sign in to comment.