Skip to content

Change llvm.neon.* to llvm.arm.neon.* in the mapping for platform intrinsics #42500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2017

Conversation

hsivonen
Copy link
Member

@hsivonen hsivonen commented Jun 7, 2017

This avoids linker errors when using platform intrinsics on 32-bit ARM with
NEON.

Fixes hsivonen/simd#10.

I don't have an explanation why the old code might have worked when the simd crate was written, since the new LLVM intrinsic naming seems to have existed as early as 2012. Maybe LLVM accepted two naming schemes for a few years and dropped the llvm.neon.* version recently? I don't know.

Also, I don't know how to write a unit test for this.

… intrinsics

This avoids linker errors when using platform intrinsics on 32-bit ARM with
NEON.

Fixes hsivonen/simd#10.
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @eddyb (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@eddyb
Copy link
Member

eddyb commented Jun 7, 2017

LGTM. r? @japaric

@rust-highfive rust-highfive assigned japaric and unassigned eddyb Jun 7, 2017
@japaric
Copy link
Member

japaric commented Jun 7, 2017

Thanks @hsivonen!

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 7, 2017

📌 Commit 0fb8414 has been approved by japaric

@aidanhs aidanhs added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jun 7, 2017
@bors
Copy link
Collaborator

bors commented Jun 8, 2017

⌛ Testing commit 0fb8414 with merge ae3d387...

bors added a commit that referenced this pull request Jun 8, 2017
Change `llvm.neon.*` to `llvm.arm.neon.*` in the mapping for platform intrinsics

This avoids linker errors when using platform intrinsics on 32-bit ARM with
NEON.

Fixes hsivonen/simd#10.

I don't have an explanation why the old code might have worked when the `simd` crate was written, since the new LLVM intrinsic naming seems to have existed as early as 2012. Maybe LLVM accepted two naming schemes for a few years and dropped the `llvm.neon.*` version recently? I don't know.

Also, I don't know how to write a unit test for this.
@bors
Copy link
Collaborator

bors commented Jun 8, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: japaric
Pushing ae3d387 to master...

@bors bors merged commit 0fb8414 into rust-lang:master Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants