mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 03:07:25 +00:00

This round is dependant on https://github.com/rust-lang/llvm-project/pull/101 landing first in rust-lang/rust and won't pass CI until that does. That PR, however, will also break wasm CI because it's changing how the wasm target works. My goal here is to open this early to get it out there so that when that PR lands in rust-lang/rust and CI breaks in stdarch then this can be merged to make CI green again. The changes here are mostly around the codegen for various intrinsics. Some wasm-specific intrinsics have been removed in favor of more general LLVM intrinsics, and other intrinsics have been removed in favor of pattern-matching codegen. The only new instruction supported as part of this chagne is `v128.any_true`. This leaves only one instruction unsupported in LLVM which is `i64x2.abs`. I think the codegen for the instruction is correct in stdsimd, though, and LLVM just needs to update with a pattern-match to actually emit the opcode. That'll happen in a future LLVM update.
stdarch - Rust's standard library SIMD components
Crates
This repository contains two main crates:
-
core_arch
implementscore::arch
- Rust's core library architecture-specific intrinsics, and -
std_detect
implementsstd::detect
- Rust's standard library run-time CPU feature detection.
The std::simd
component now lives in the
packed_simd
crate.
How to do a release
To do a release of the core_arch
and std_detect
crates,
- bump up the version appropriately,
- comment out the
dev-dependencies
in theirCargo.toml
files (due to https://github.com/rust-lang/cargo/issues/4242), - publish the crates.