-
Notifications
You must be signed in to change notification settings - Fork 13.5k
rework the queries for the MIR pipeline #41625
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
bors
merged 35 commits into
rust-lang:master
from
nikomatsakis:incr-comp-dep-tracking-cell-mir
May 3, 2017
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
0e5e2f3
introduce `mir_keys()`
nikomatsakis 11b6b06
rework `MirPass` API to be stateless and extract helper fns
nikomatsakis 46b342f
simplify the MirPass traits and passes dramatically
nikomatsakis e9e6ccc
introduce `DefIdPass` and remove all impls of `Pass` but `Inline`
nikomatsakis 668886a
rewrite `Passes` to have sets of passes
nikomatsakis f23a7bc
move to only def-id passes
nikomatsakis 2b32cb9
retool MIR passes completely
nikomatsakis e89a321
rename `MirPassSet` to `MirSuite`
nikomatsakis 29263fd
introduce idea of "stealable" MIR
nikomatsakis ecc8ff9
rework macro to prepare for more modifiers than just `[pub]`
nikomatsakis 3d1095c
introduce `IntoKeyValues` trait to prepare for multi-queries
nikomatsakis 1d675ce
adjust the macro to allow for `multi` modifier
nikomatsakis a26e966
convert the `inline` pass to use the new multi result
nikomatsakis 0d045d7
add comments to `Steal` and use `bug!`
nikomatsakis d9c8a2b
use `force` to ensure const-qualif has been done, not read
nikomatsakis 532439f
add a README describing the whole design
nikomatsakis c1ff104
rename `mir_map` to `queries` and remove `build_mir_for_crate`
nikomatsakis c2cfdbb
adjust privacy of various types in `build`
nikomatsakis 69c8f9d
move `build_mir` into `build` directory
nikomatsakis c253df5
remove `Pass` and (temporarily) drop `Inline`
nikomatsakis 9c154a6
rip out everything but `MirPass`, move the logic into suites
nikomatsakis 669d316
simplify down to one query per pass suite
nikomatsakis 1dd9c3e
support inlining by asking for optimizer mir for callees
nikomatsakis 851a880
remove irrelevant comments
nikomatsakis 2fa1ba3
pacify the mercilous tidy
nikomatsakis 74b2783
delete dead code
nikomatsakis c7023d1
run MIR borrowck on the validated, not optimized, MIR
nikomatsakis 393fa4f
rename from `item_mir` to `optimized_mir`
nikomatsakis b0092e8
move queries code into transform
nikomatsakis 0afcfce
update comment about heuristics
nikomatsakis 15bc2f4
remove temporary variable
nikomatsakis e6793ac
have borrowck fetch MIR, which will perform some errors
nikomatsakis afc5acd
fix librustc_driver
nikomatsakis 25be798
remove `mir_passes` from `Session` and add a FIXME
nikomatsakis 488b2a3
add FIXME to `Steal`
nikomatsakis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
support inlining by asking for optimizer mir for callees
I tested this with it enabled 100% of the time, and we were able to run mir-opt tests successfully.
- Loading branch information
commit 1dd9c3e52a78399ca071728c76fafcd9524f793e
There are no files selected for viewing
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
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
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
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.
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.
s/current/previous, perhaps?
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.
I'm not sure what I meant by that sentence. I think best heuristic. It certainly is the current (and previous) heuristic, whether or not it was intended that way.