Skip to content

Commit

Permalink
Auto merge of #74275 - wesleywiser:break_up_partitioning_rs, r=pnkfelix
Browse files Browse the repository at this point in the history
Refactor the partitioning module to make it easier to introduce new algorithms

I've split the `librustc_mir::monomorphize::partitioning` module into a few files and introduced a `Partitioner` trait which allows us to decouple the partitioning algorithm from the code which integrates it into the query system. This should allow us to introduce new partitioning algorithms much more easily. I've also gone ahead and added a `-Z` flag to control which algorithm is used (currently there is only the `default`).

I left a few comments in places where things might be improved further.

r? @pnkfelix cc @rust-lang/wg-incr-comp
  • Loading branch information
bors committed Aug 25, 2020
2 parents ba4c446 + 98b943e commit 8ba2250
Show file tree
Hide file tree
Showing 5 changed files with 1,097 additions and 1,012 deletions.
Loading

0 comments on commit 8ba2250

Please sign in to comment.