-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Implement Integer funnel shifts #145690
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
Implement Integer funnel shifts #145690
Conversation
This comment has been minimized.
This comment has been minimized.
I see there is a tracking issue, but not an ACP for this. Could you create one? It's an issue template at https://github.com/rust-lang/libs-team/issues. |
81da1f2
to
b91850b
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
b91850b
to
400a29d
Compare
This comment has been minimized.
This comment has been minimized.
400a29d
to
23601d2
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Some changes occurred in compiler/rustc_codegen_gcc Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5f4c412
to
63fde15
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few tiny requests from me then I think this looks good, as long as @RalfJung doesn't have anything else.
Per usual, please squash. You can also (optionally) drop the CABs from the commit messages assuming they come from the GH suggestion, as typically review feedback is given without need for authorship attribution - bit misleading that GH adds these automatically for what are usually typo fixes (unless @folkertdev authored more of this patch then I'm realizing 🙂)
@folkertdev did author a significant part of the patches, including the tests and (although removed now) gcc, clif and const-eval implementations. Also, is a squash really needed, I believe the current commit structure is helpful for reviewers as it clearly separates the different objectives (libs impl, cg_llvm and tests) |
I didn't have this context, makes sense 👍 thanks for including in that case
If it's not a big number of tests then it's always good to have them in the same commit as whatever enables / fixes them, so you can look at a single point in history and see "x changed and produced y visible results" (tests are already separated enough by file/directory). So ideally I'd suggest reordering from current commits But we don't have strict history requirements, so I ofc won't insist on that. At a minimum though, please update the commit message "Add tests" to at least specify what tests; that's never the most insightful message to see in the log :) |
Makes sense, I'd just squash the commits (lazy lol) |
- Add a fallback implementation for the intrinsics - Add LLVM backend support for funnel shifts Co-Authored-By: folkertdev <[email protected]>
c1260ef
to
62b4347
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! r=me after CI passes
@bors r=tgross35 |
…ross35 Implement Integer funnel shifts Tracking issue: rust-lang#145686 ACP: rust-lang/libs-team#642 This implements funnel shifts on primitive integer types. Implements this for cg_llvm, with a fallback impl for everything else Thanks ``@folkertdev`` for the fixes and tests cc ``@rust-lang/libs-api``
Rollup of 5 pull requests Successful merges: - #145682 (Promote aarch64-pc-windows-msvc to Tier 1) - #145690 (Implement Integer funnel shifts) - #146119 (compiletest: Implement an experimental `--new-output-capture` mode) - #146168 (Update bootstrap's dependencies to remove winapi and old windows-sys) - #146182 (Don't require next-solver `ProbeRef` to be `Copy`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #145690 - sayantn:integer-funnel-shift, r=tgross35 Implement Integer funnel shifts Tracking issue: #145686 ACP: rust-lang/libs-team#642 This implements funnel shifts on primitive integer types. Implements this for cg_llvm, with a fallback impl for everything else Thanks `@folkertdev` for the fixes and tests cc `@rust-lang/libs-api`
@bors r- |
Rollup of 5 pull requests Successful merges: - rust-lang/rust#145682 (Promote aarch64-pc-windows-msvc to Tier 1) - rust-lang/rust#145690 (Implement Integer funnel shifts) - rust-lang/rust#146119 (compiletest: Implement an experimental `--new-output-capture` mode) - rust-lang/rust#146168 (Update bootstrap's dependencies to remove winapi and old windows-sys) - rust-lang/rust#146182 (Don't require next-solver `ProbeRef` to be `Copy`) r? `@ghost` `@rustbot` modify labels: rollup
Bors, please, it's already merged. @bors r- retry |
…ross35 Implement Integer funnel shifts Tracking issue: rust-lang#145686 ACP: rust-lang/libs-team#642 This implements funnel shifts on primitive integer types. Implements this for cg_llvm, with a fallback impl for everything else Thanks `@folkertdev` for the fixes and tests cc `@rust-lang/libs-api`
Tracking issue: #145686
ACP: rust-lang/libs-team#642
This implements funnel shifts on primitive integer types. Implements this for cg_llvm, with a fallback impl for everything else
Thanks @folkertdev for the fixes and tests
cc @rust-lang/libs-api