rust/compiler/rustc_mir_transform/src
bors f07d6e8c0a Auto merge of #99102 - JakobDegen:reorder-generators, r=oli-obk
Rework definition of MIR phases to more closely reflect semantic concerns

Implements most of rust-lang/compiler-team#522 .

I tried my best to restrict this PR to the "core" parts of the MCP. In other words, this includes just enough changes to make the new definition of `MirPhase` make sense. That means there are a couple of FIXMEs lying around. Depending on what reviewers prefer, I can either fix them in this PR or send follow up PRs. There are also a couple other refactorings of the `rustc_mir_transform/src/lib.rs` file that I want to do in follow ups that I didn't leave explicit FIXMEs for.
2022-08-30 23:43:33 +00:00
..
coverage Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
inline Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
abort_unwinding_calls.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
add_call_guards.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
add_moves_for_packed_drops.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
add_retag.rs Use the declaration's SourceInfo for FnEntry retags, not the outermost 2022-08-28 11:40:10 -04:00
check_const_item_mutation.rs lint: LintDiagnosticBuilder into rustc_errors 2022-07-05 16:00:20 +01:00
check_packed_ref.rs Remove erroneous E0133 code from an error message. 2022-07-26 12:54:24 +10:00
check_unsafety.rs update comment 2022-08-02 18:55:43 -04:00
cleanup_post_borrowck.rs Add option to mir::MutVisitor to not invalidate CFG. 2022-08-09 01:51:10 -07:00
const_debuginfo.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
const_goto.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
const_prop_lint.rs Rollup merge of #100239 - RalfJung:const-prop-uninit, r=oli-obk 2022-08-29 16:49:40 +05:30
const_prop.rs Rollup merge of #100239 - RalfJung:const-prop-uninit, r=oli-obk 2022-08-29 16:49:40 +05:30
dead_store_elimination.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
deaggregator.rs Refactor MIR phases 2022-08-30 01:40:14 -07:00
deduplicate_blocks.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
deref_separator.rs Refactor MIR phases 2022-08-30 01:40:14 -07:00
dest_prop.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
dump_mir.rs Inline on_mir_pass and add inline to dump_mir 2021-10-14 15:26:59 -05:00
early_otherwise_branch.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
elaborate_box_derefs.rs Elaborate all box dereferences in ElaborateBoxDerefs 2022-08-25 10:38:00 +02:00
elaborate_drops.rs Refactor MIR phases 2022-08-30 01:40:14 -07:00
ffi_unwind_calls.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
function_item_references.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
generator.rs Refactor MIR phases 2022-08-30 01:40:14 -07:00
inline.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
instcombine.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
lib.rs Auto merge of #99102 - JakobDegen:reorder-generators, r=oli-obk 2022-08-30 23:43:33 +00:00
lower_intrinsics.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
lower_slice_len.rs lint: add bad opt access internal lint 2022-07-27 11:24:27 +01:00
marker.rs Add pass for simple phase change 2021-12-02 17:31:38 -08:00
match_branches.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
multiple_return_terminators.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
normalize_array_len.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
nrvo.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
pass_manager.rs Simplify pass manager's run_passes logic 2022-08-30 01:40:16 -07:00
remove_false_edges.rs Separate RemoveFalseEdges from SimplifyBranches 2021-11-30 17:14:48 -08:00
remove_noop_landing_pads.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
remove_storage_markers.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
remove_uninit_drops.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
remove_unneeded_drops.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
remove_zsts.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
required_consts.rs Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
reveal_all.rs Add option to mir::MutVisitor to not invalidate CFG. 2022-08-09 01:51:10 -07:00
separate_const_switch.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
shim.rs Refactor MIR phases 2022-08-30 01:40:14 -07:00
simplify_branches.rs Auto merge of #91279 - scottmcm:small-refactor, r=nagisa 2021-12-06 13:04:18 +00:00
simplify_comparison_integral.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
simplify_try.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
simplify.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
uninhabited_enum_branching.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
unreachable_prop.rs Fix typo in UnreachableProp 2022-08-23 08:18:18 +02:00