Rollup of 9 pull requests#152547
Closed
JonathanBrouwer wants to merge 20 commits intorust-lang:mainfrom
Closed
Conversation
This code is now in `rustc_middle`, and doesn't need any non-trivial methods, so it can just use `TyCtxt` directly instead.
llvm will look at both 1. the values of "target-features" and 2. the function string attributes. this removes the redundant function string attribute because it is not needed at all. rustc sets the `+backchain` attribute through `target_features_attr(...)`
It can't be serialized to a file.
Support AVRTiny devices in AVR inline assembly Note: This is still draft and this depends on rust-lang#146900 which adds necessary target feature. (The first commit is from it.) --- Follow-up to rust-lang#131323. AVR has devices that reduce the number of registers, similar to RISC-V's RV32E, which have different ABI than default. This PR supports such devices in inline assembly. Refs: AVR-GCC docs https://gcc.gnu.org/wiki/avr-gcc#Reduced_Tiny > On the Reduced Tiny cores (16 GPRs only) several modifications to the ABI above apply: > > Call-saved registers are: R18–R19, R28–R29. Fixed Registers are R16 (__tmp_reg__) and R17 (__zero_reg__). > > Registers used to pass arguments to functions and return values from functions are R25...R20 (instead of R25...R8). Values that occupy more than 4 registers are returned in memory (instead of more than 8 registers). There is only limited library support both from libgcc and AVR-LibC, for example there is no float support and no printf support. r? @Amanieu @rustbot label +O-AVR +A-inline-assembly
…-rules, r=petrochenkov Improve code suggestion for incorrect macro_rules! usage Fixes rust-lang#150899
Change query proc macro to be more rust-analyzer friendly This changes the query proc macro to be more rust-analyzer friendly. - Types in the macro now have a proper span - Some functions have their span hidden so they don't show up when hovering over the query name - Added a hint on the provider field on how to find providers. That is shown when hovering over the query name - Linked query name to the provider field on all queries, not just ones with caching - Added tooltip for the query modifiers by linking to the new types in `rustc_middle:::query::modifiers`
…jorn3 Fix multi-cgu+debug builds using autodiff by delaying autodiff till lto fixes: rust-lang#152470 r? @bjorn3
…fei2009 Don't use `DepContext` in `rustc_middle::traits::cache` - A nice little simplification unlocked by rust-lang#152199. --- This code is now in `rustc_middle`, and doesn't need any non-trivial methods, so it can just use `TyCtxt` directly instead.
…nkov Support serializing CodegenContext Follow up to rust-lang#149209 Part of rust-lang/compiler-team#908
…g,Kivooeo Move tests moved few tests r? @Kivooeo
…=dingxiangfei2009 remove redundant backchain attribute in codegen llvm will look at both 1. the values of `"target-features"` and 2. the function string attributes. this patch removes the redundant function string attribute because it is not needed at all. rustc sets the `+backchain` attribute through `target_features_attr(...)` https://github.com/rust-lang/rust/blob/d34f1f931489618efffc4007e6b6bdb9e10f6467/compiler/rustc_codegen_llvm/src/attributes.rs#L590 https://github.com/rust-lang/rust/blob/d34f1f931489618efffc4007e6b6bdb9e10f6467/compiler/rustc_codegen_llvm/src/attributes.rs#L326-L337
…at-test, r=RalfJung sparc64: enable abi compatibility test fixes rust-lang#115336 We can now remove the exceptions for sparc64 from the abi compatibility tests (since rust-lang#142680). I was also able to remove a cfg for mips64. The remaining (tested) issues seem to be around how `f64` is handled there. cc @RalfJung r? tgross35
Contributor
Author
|
@bors r+ rollup=never p=5 |
Contributor
Contributor
Author
|
Looks like it might be a while before this rollup runs, feel free to recreate it if you can make it significantly bigger :) |
Contributor
|
PR #146901, which is a member of this rollup, was unapproved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
DepContextinrustc_middle::traits::cache#152520 (Don't useDepContextinrustc_middle::traits::cache)r? @ghost
Create a similar rollup