Skip to content
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

Driver improvements #85810

Merged
merged 13 commits into from
Jun 7, 2021
Merged

Driver improvements #85810

merged 13 commits into from
Jun 7, 2021

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented May 29, 2021

This PR contains a couple of cleanups for the driver and a few small improvements for the custom codegen backend interface. It also implements --version and -Cpasses=list support for custom codegen backends.

@rust-highfive
Copy link
Collaborator

Some changes occured to rustc_codegen_cranelift

cc @bjorn3

@rust-highfive
Copy link
Collaborator

r? @varkor

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 29, 2021
@bjorn3 bjorn3 added A-driver Area: rustc_driver that ties everything together into the `rustc` compiler C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 29, 2021
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@bjorn3
Copy link
Member Author

bjorn3 commented May 30, 2021

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 30, 2021
@bors
Copy link
Contributor

bors commented May 30, 2021

⌛ Trying commit 3753457cfed654d730a9f6c9e8fceaba295b668f with merge f484bc0cdcc82a00541b6f91df1f07c698a37931...

@bors
Copy link
Contributor

bors commented May 30, 2021

☀️ Try build successful - checks-actions
Build commit: f484bc0cdcc82a00541b6f91df1f07c698a37931 (f484bc0cdcc82a00541b6f91df1f07c698a37931)

@rust-timer
Copy link
Collaborator

Queued f484bc0cdcc82a00541b6f91df1f07c698a37931 with parent 5957990, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (f484bc0cdcc82a00541b6f91df1f07c698a37931): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 31, 2021
@bjorn3
Copy link
Member Author

bjorn3 commented May 31, 2021

This is a slight improvement with only a few small regressions.

@bjorn3
Copy link
Member Author

bjorn3 commented Jun 1, 2021

Rebased on d209114.

@varkor
Copy link
Member

varkor commented Jun 6, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Jun 6, 2021

📌 Commit 435b540 has been approved by varkor

@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 Jun 6, 2021
@bors
Copy link
Contributor

bors commented Jun 7, 2021

⌛ Testing commit 435b540 with merge cc9610b...

@bors
Copy link
Contributor

bors commented Jun 7, 2021

☀️ Test successful - checks-actions
Approved by: varkor
Pushing cc9610b to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 7, 2021
@bors bors merged commit cc9610b into rust-lang:master Jun 7, 2021
@rustbot rustbot added this to the 1.54.0 milestone Jun 7, 2021
@bjorn3 bjorn3 deleted the further_driver_cleanup branch June 7, 2021 05:58
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 11, 2021
Don't use a generator for BoxedResolver

The generator is non-trivial and requires unsafe code anyway. Using regular unsafe code without a generator is much easier to follow.

Based on rust-lang#85810 as it touches rustc_interface too.
bjorn3 pushed a commit to bjorn3/rust that referenced this pull request Jul 7, 2021
Driver improvements

This PR contains a couple of cleanups for the driver and a few small improvements for the custom codegen backend interface. It also implements `--version` and `-Cpasses=list` support for custom codegen backends.
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 26, 2021
…illot

 Avoid a branch on key being local for queries that use the same local and extern providers

Currently based on rust-lang#85810 as it slightly conflicts with it. Only the last two commits are new.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler C-cleanup Category: PRs that clean code up or issues documenting cleanup. merged-by-bors This PR was explicitly merged by bors. 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.

7 participants