Skip to content

Add read(write)_unaligned specification for aarch64 neon - #2291

Open
yilin0518 wants to merge 1 commit into
rust-lang:mainfrom
yilin0518:aarch_unalign
Open

yilin0518 wants to merge 1 commit into
rust-lang:mainfrom
yilin0518:aarch_unalign

Conversation

@yilin0518

Copy link
Copy Markdown
Contributor

This PR adds two new unsafe values in aarch64.spec.yaml: read_unaligned and write_unaligned, and adds new generation logic about these new values.

The reason I open this PR is that I found that there are many stable unsafe API in generated.rs, among these there are 28 APIs internally call write_unaligned and 37 APIs call read_unaligned. But these APIs have # Safety section with content Neon intrinsic unsafe. So I think it is helpful that using concrete safety requirements to replace Neon intrinsic unsafe.

It don't know whether it is appropriate to open this PR directly. If not, I can follow the right process.

@rustbot

rustbot commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

r? @folkertdev

rustbot has assigned @folkertdev.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Amanieu, @adamgemmell, @davidtwco, @folkertdev
  • @Amanieu, @adamgemmell, @davidtwco, @folkertdev expanded to Amanieu, adamgemmell, davidtwco, folkertdev
  • Random selection from Amanieu, adamgemmell, davidtwco, folkertdev

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants