Files
rust/compiler/rustc_span
Jonathan Brouwer d6201c9a33 Rollup merge of #157098 - jlpetz:clflushopt-target-feature, r=folkertdev
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
2026-05-29 21:03:32 +02:00
..