rust/compiler/rustc_middle/src/mir
Nicholas Nethercote abde9ba527 Tweak CGU size estimate code.
- Rename `create_size_estimate` as `compute_size_estimate`, because that
  makes more sense for the second and subsequent calls for each CGU.
- Change `CodegenUnit::size_estimate` from `Option<usize>` to `usize`.
  We can still assert that `compute_size_estimate` is called first.
- Move the size estimation for `place_mono_items` inside the function,
  for consistency with `merge_codegen_units`.
2023-06-22 09:33:06 +10:00
..
interpret add InlineConst check 2023-06-14 18:01:05 -04:00
basic_blocks.rs remove unused postorder CFG cache 2023-06-14 23:01:36 +00:00
coverage.rs Replace enum ==s with matches where it makes sense 2023-01-30 12:26:26 +00:00
generic_graph.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
generic_graphviz.rs Remove redundant graphviz escaping 2022-11-14 15:11:18 +01:00
graphviz.rs Remove WithOptconstParam. 2023-04-20 17:48:32 +00:00
mod.rs address most easy comments 2023-06-20 20:55:31 +08:00
mono.rs Tweak CGU size estimate code. 2023-06-22 09:33:06 +10:00
patch.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
pretty.rs Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
query.rs Store generator field names in GeneratorLayout. 2023-06-19 16:50:52 +00:00
spanview.rs Add <meta charset="utf-8"> to -Zdump-mir-spanview output 2023-06-17 18:31:35 +10:00
syntax.rs update comment on MutBorrowKind::ClosureCapture 2023-06-20 20:55:31 +08:00
tcx.rs merge BorrowKind::Unique into BorrowKind::Mut 2023-06-20 20:55:31 +08:00
terminator.rs Tweak the post-order for multi-successor blocks 2023-05-21 17:48:36 -07:00
traversal.rs remove redundant combinators between PO and RPO 2023-06-18 09:16:40 +00:00
type_foldable.rs intern offsetof fields 2023-04-21 02:14:03 -07:00
visit.rs merge BorrowKind::Unique into BorrowKind::Mut 2023-06-20 20:55:31 +08:00