-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for Scalable Vectors #145052
Copy link
Copy link
Labels
B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Blocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-scalable-vectors`#[rustc_scalable_vector]``#[rustc_scalable_vector]`I-lang-radarItems that are on lang's radar and will need eventual work or consideration.Items that are on lang's radar and will need eventual work or consideration.S-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Blocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-scalable-vectors`#[rustc_scalable_vector]``#[rustc_scalable_vector]`I-lang-radarItems that are on lang's radar and will need eventual work or consideration.Items that are on lang's radar and will need eventual work or consideration.S-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for Tracking Issue.
Projects
Status
No status
Status
Backlog
This is a tracking issue for the not-yet-accepted RFC for "Scalable Vectors" (rust-lang/rfcs#3838).
The feature gate for the issue is
#![feature(rustc_attrs)].This feature is part of the "Scalable Vectors" project goal from 2025h1 and 2025h2.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted. Repeated discussions on the tracking issue may lead to the tracking issue getting locked.
Background and motivation
Quoting from rust-lang/rust-project-goals#270:
Dependencies
Sizedtypes that enable them to implementCopyand act like value types from the characteristics that enable their size to be computed statically at compile-time. Scalable vectors are non-constSized.Steps
rustc_scalable_vectorrfcs#3838 inrustc_scalable_vector(N)#143924rustc_scalable_vectorrfcs#3838 proposes internal infrastructure for defining scalable vector types in the standard library'sstd::arch, it's hard to evaluate without having some scalable vector types and intrinsics definedsvpfalseis missing anassert_instrannotation because its current implementation doesn't generate apfalseassert_instron MSVC because they wouldn't disassemble - investigate/report this (see re-enableassert_instrfor SVE[us]mull[bt]instructions stdarch#2084)intrinsic-testfor all of the SVE intrinsicsarm64eccan support SVErustfmtUnresolved Questions
rustc_scalable_vectorrfcs#3838 has open questions about how scalable vectors can work when thetarget_featuremust be present for the types to existImplementation history
rustc_scalable_vector(N)#143924rustc_scalable_vectorrfcs#3838 prior to being mergedSizedtemporarilycfg(target_arch)on scalable intrinsics #154950simd_castandsimd_select#155106