Skip to content

Conversation

AMS21
Copy link
Contributor

@AMS21 AMS21 commented Oct 9, 2025

As discussed on llvm/llvm-project#162500 there is no good reason to implement these intrinsic function via the LLVM wrapper instead we now just implement them via call_intrinsic like all the other intrinsic functions.

Work towards #46437

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 9, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 9, 2025

r? @lcnr

rustbot has assigned @lcnr.
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

@Zalathar
Copy link
Contributor

Zalathar commented Oct 9, 2025

Nitpick: I think calling this a “refactor” is more confusing than helpful. While the end result is the same, from an internal perspective this is enough of a cross-system behavioural change that I would prefer not to use that term here.

I'll rename this PR; please rename the individual commit and force-push.

@Zalathar Zalathar changed the title refactor: remove intrinsic wrapper functions from LLVM bindings remove intrinsic wrapper functions from LLVM bindings Oct 9, 2025
@Zalathar
Copy link
Contributor

Zalathar commented Oct 9, 2025

r? Zalathar

@rustbot rustbot assigned Zalathar and unassigned lcnr Oct 9, 2025
@AMS21 AMS21 force-pushed the remove_llvm_rust_intrinsics branch 2 times, most recently from 7d9f8e0 to 281d0ba Compare October 9, 2025 07:24
@AMS21 AMS21 force-pushed the remove_llvm_rust_intrinsics branch from 281d0ba to 064e3b8 Compare October 9, 2025 07:27
@Zalathar
Copy link
Contributor

Zalathar commented Oct 9, 2025

Looks good, thanks.

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 9, 2025

📌 Commit 064e3b8 has been approved by Zalathar

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 9, 2025
Zalathar added a commit to Zalathar/rust that referenced this pull request Oct 9, 2025
… r=Zalathar

remove intrinsic wrapper functions from LLVM bindings

As discussed on llvm/llvm-project#162500 there is no good reason to implement these intrinsic function via the LLVM wrapper instead we now just implement them via `call_intrinsic` like all the other intrinsic functions.

Work towards rust-lang#46437
bors added a commit that referenced this pull request Oct 9, 2025
Rollup of 3 pull requests

Successful merges:

 - #147446 (PassWrapper: use non-deprecated lookupTarget method)
 - #147473 (Do `x check` on various bootstrap tools in CI)
 - #147509 (remove intrinsic wrapper functions from LLVM bindings)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants