rust-lang / rust-lang/rust

Tracking Issue for `clflushopt_target_feature`

Open
#157,096 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-tracking-issue needs-triage T-compiler
Dominant language
Rust
Stars
119k
Forks
16.2k
PR merge metrics
PR metrics pending

Description

This is a tracking issue for the clflushopt x86 target feature, used to gate the _mm_clflushopt intrinsic (#![feature(clflushopt_target_feature)]).

Requested in rust-lang/stdarch#1456. CLFLUSHOPT is a standalone x86 CPUID feature (Intel Skylake+ / AMD Excavator+, ~2015) for weakly-ordered cache-line flushing. Today stdarch exposes only the SSE2 _mm_clflush; there is no way to emit clflushopt from an intrinsic.

Steps
  • Add the clflushopt target feature to the compiler (this issue).
  • Add the _mm_clflushopt intrinsic in stdarch (see rust-lang/stdarch#1456).
  • Stabilization PR.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the compiler's existing handling of x86 target features and the linked stdarch#1456 request for context. The compiler portion is done when clflushopt is accepted as a target feature and can gate the planned _mm_clflushopt intrinsic; stabilization is listed separately.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.