Skip to content

Update the JIT to share the xplat vector tables across platforms#130049

Draft
tannergooding wants to merge 10 commits into
dotnet:mainfrom
tannergooding:wasm-simd
Draft

Update the JIT to share the xplat vector tables across platforms#130049
tannergooding wants to merge 10 commits into
dotnet:mainfrom
tannergooding:wasm-simd

Conversation

@tannergooding

Copy link
Copy Markdown
Member

This massively simplifies and unifies the xplat vector intrinsic support by unifying it to a single table and instruction set.

It removes around 3000 lines of code (more simplifications are possible in the future as well) and enables us to add WASM and Arm64 SVE support for the xplat intrinsics without duplicating the import logic two more times.

I've generally split it out into two commits. The first is the general refactoring and the second is some of the base support for WASM lightup. There's some pending platform specific work and some more xplat work required before WASM can be fully enabled.

Copilot AI review requested due to automatic review settings June 30, 2026 18:40
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 30, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings June 30, 2026 22:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 34/39 changed files
  • Comments generated: 1

Comment on lines +436 to +443
case NI_Vector_ExtractMostSignificantBits:
{
// We want to keep this as is, because we'll rewrite it in post-order
assert(varTypeIsShort(simdBaseType));
return;
if (simdSize == 16)
{
// We want to keep this as is, because we'll rewrite it in post-order
assert(varTypeIsShort(simdBaseType));
return;
}
Copilot AI review requested due to automatic review settings July 1, 2026 01:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 34/39 changed files
  • Comments generated: 2

Comment on lines +8289 to 8294
case NI_Vector_ExtractMostSignificantBits:
#if defined(TARGET_XARCH)
case NI_X86Base_MoveMask:
case NI_AVX_MoveMask:
case NI_AVX2_MoveMask:
#endif
Comment on lines +436 to +440
case NI_Vector_ExtractMostSignificantBits:
{
// We want to keep this as is, because we'll rewrite it in post-order
assert(varTypeIsShort(simdBaseType));
return;
if (simdSize == 16)
{
// We want to keep this as is, because we'll rewrite it in post-order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants