mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 17:22:19 +00:00
Add the `clflushopt` x86 target feature Adds the unstable `clflushopt` x86 target feature, gated behind `#![feature(clflushopt_target_feature)]`. `CLFLUSHOPT` is a standalone x86 CPUID feature (Intel Skylake+ / AMD Excavator+, ~2015) that is not part of any psABI microarchitecture level, so it needs its own feature flag. **This is the compiler half of a two-PR feature and is a hard dependency for the stdarch side.** The `_mm_clflushopt` intrinsic (rust-lang/stdarch#1456) cannot compile until this target feature exists, so the stdarch PR is blocked on this one merging and syncing into stdarch's pinned toolchain. - Tracking issue: rust-lang/rust#157096 - Unblocks intrinsic: rust-lang/stdarch#1456 This mirrors the existing unstable x86 target features (e.g. `movrs`, `apxf`). `clflushopt` is a standard LLVM x86 feature name, so it maps 1:1 through `to_llvm_features` with no remap entry needed. r? compiler