Closed Bug 1685984 Opened 4 years ago Closed 4 years ago

Refactoring: Make SIMD code cross-platform

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: lth, Assigned: lth)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Now that the SIMD code has stabilized, and in anticipation of doing more with SIMD on on non-x86 platforms, it can be moved out of the x86-specific part of the source tree and made to conform to the normal style: the LIR nodes are shared, the analysis code is shared, and every platform that does not implement SIMD gets stubs for LIR/codegen.

Move shareable SIMD code -- LIR nodes and analysis code -- out of
jit/x86-shared into jit/shared. Make some notes in the moved analysis
code about it being slightly x86-centric. Truly though, most of the
patterns carry over to other architectures, and we can add other
patterns for new architectures. For example, ARM64 has a reverse
instruction.

Create NYI stubs for SIMD in jit/arm64, jit/arm, and jit/mips-shared,
and remove the stubs from jit/shared.

SIMD is not enabled on any additional platforms yet, so all tests
continue to pass with this patch.

Pushed by lhansen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5823156c7dc4 Refactor SIMD code to make it more cross-platform. r=jseward
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: