-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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.
Description
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
No fields configured for Tracking Issue.
Projects
StatusShow more project fields
No status
StatusShow more project fields
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(stdarch_aarch64_sve)].This feature is part of the "Scalable Vectors" project goal from 2025h1, 2025h2 and 2026 (rust-lang/rust-project-goals#270).
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 apfalse(Create asve_zeroinitializercompiler intrinsic #157110)assert_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 intrinsics (intrinsic-test: sve support stdarch#2160)sveorvtesting when LLVM is upgraded (sveorv_s8 intrinsic call optimised out incorrectly llvm/llvm-project#203921 is fixed)-O0#158088 when LLVM is upgraded (ICE from#dbg_declareof scalable vector alloca on -O0 llvm/llvm-project#204585 is fixed)arm64eccan support SVEcfgto ensure little endian for SVE stdarch#2145)Layoutso that scalable vector sizes aren't as easily misusedrustfmtUnresolved 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#155106cfgto ensure little endian for SVE stdarch#2145sve_zeroinitializercompiler intrinsic #157110populate_randomand related code stdarch#2126arm::argumentmodule stdarch#2127arm_intrinsics.jsonforsvsetandsvgetstdarch#2162svrev,svzipandsvuzpstdarch#2163intrinsic-test.shstdarch#2164SupportedArchitecturestdarch#2170concatln!and redundant newlines stdarch#2171-O0#158088vscale#158253