| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-08-30 | mv compiler to compiler/ | mark | -502/+0 | |
| 2020-08-08 | Emit == null instead of <= null | Nikita Popov | -8/+7 | |
| When the niche maximum is zero, emit a "== zero" check instead of a "<= zero" check. In particular, this avoid the awkward case of "<= null". While LLVM does canonicalize this to "!= null", this appently doesn't happen for constant expressions, leading to the issue in #74425. While that can be addressed on the LLVM side, it still seems prudent to emit sensible IR here, because this will allow null checks to be optimized earlier in the pipeline. Fixes #74425. | ||||
| 2020-05-30 | tag/niche terminology cleanup | Ralf Jung | -22/+22 | |
| 2020-05-23 | take mir::PlaceElem by value | Bastian Kauschke | -7/+7 | |
| 2020-04-22 | Don't use `*` for deref-coercion | Dylan MacKenzie | -1/+1 | |
| 2020-04-02 | nix rustc_target::abi::* reexport in ty::layout | Mazdak Farrokhzad | -20/+14 | |
| 2020-03-31 | rustc_target::abi: rename FieldPlacement to FieldsShape. | Ana-Maria Mihalache | -1/+1 | |
| 2020-03-30 | rustc -> rustc_middle part 2 | Mazdak Farrokhzad | -4/+4 | |
| 2020-03-27 | Rename TyLayout to TyAndLayout. | Ana-Maria Mihalache | -6/+10 | |
| 2020-03-04 | PlaceRef<'a, 'tcx> -> PlaceRef<'tcx> | Santiago Pastorino | -2/+2 | |
| 2020-03-03 | Make PlaceRef lifetimes of monomorphized_place_ty be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-03-03 | Make PlaceRef lifetimes of codegen_place be both 'tcx | Santiago Pastorino | -1/+1 | |
| 2020-01-28 | Place::ty_from takes local by value | Santiago Pastorino | -1/+1 | |
| 2020-01-28 | Local field on PlaceRef and RootPlace is not a reference anymore | Santiago Pastorino | -2/+2 | |
| 2020-01-28 | codegen_place and related functions can take PlaceRef by value | Santiago Pastorino | -5/+5 | |
| 2020-01-10 | Remove PlaceBase enum and make Place base field be local: Local | Santiago Pastorino | -17/+15 | |
| 2020-01-10 | Remove Static from PlaceBase | Santiago Pastorino | -19/+0 | |
| 2020-01-10 | Remove StaticKind | Santiago Pastorino | -6/+1 | |
| 2020-01-10 | Remove StaticKind::Promoted | Santiago Pastorino | -34/+1 | |
| 2019-12-24 | x.py fmt after previous deignore | Mark Rousskov | -124/+85 | |
| 2019-12-22 | Rollup merge of #66877 - skinny121:const-eval-entry-points, r=oli-obk | Mazdak Farrokhzad | -6/+1 | |
| Add simpler entry points to const eval for common usages. I found the `tcx.const_eval` API to be complex/awkward to work with, because of the inherent complexity from all of the different situations it is called from. Though it mainly used in one of the following ways: - Evaluates the value of a constant without any substitutions, e.g. evaluating a static, discriminant, etc. - Evaluates the value of a resolved instance of a constant. this happens when evaluating unevaluated constants or normalising trait constants. - Evaluates a promoted constant. This PR adds three new functions `const_eval_mono`, `const_eval_resolve`, and `const_eval_promoted` to `TyCtxt`, which each cater to one of the three ways `tcx.const_eval` is normally used. | ||||
| 2019-12-22 | Add simpler entry points to const eval for common usages. | Ben Lewis | -6/+1 | |
| 2019-12-18 | Add Rvalue::AddressOf to MIR | Matthew Jasper | -1/+1 | |
| This operator creates a raw pointer to a Place directly, without first creating a reference. See RFC #2582 for motivation. The Rvalue is currently unused. | ||||
| 2019-12-09 | Make const index and subslice array projections more useful | Matthew Jasper | -1/+2 | |
| * `min_length` is now exact for const index elements. * const index elements are always from the start. * make array `Subslice` `PlaceElems` count both `from` and `to` from the start. | ||||
| 2019-12-06 | use abort instead of unreachable | Ralf Jung | -1/+3 | |
| 2019-12-05 | comments | Ralf Jung | -0/+2 | |
| 2019-12-05 | codegen: mark invalid SetDiscriminant unreachable | Ralf Jung | -2/+3 | |
| 2019-12-03 | rustc: expose the mir::Body reference lifetime from mir::ReadOnlyBodyCache ↵ | Eduard-Mihai Burtescu | -1/+1 | |
| (#64736 fallout). | ||||
| 2019-12-02 | Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, ↵ | Paul Daniel Faria | -1/+1 | |
| rename all body_cache back to body | ||||
| 2019-12-02 | Remove BodyCache.body and rely on Deref as much as possible for ↵ | Paul Daniel Faria | -2/+3 | |
| ReadOnlyBodyCache | ||||
| 2019-12-02 | Fix tidy errors | Paul Daniel Faria | -1/+5 | |
| 2019-12-02 | Simplify BodyCache impl and fix all remaining type errors in librustc_mir ↵ | Paul Daniel Faria | -1/+1 | |
| (lifetime errors still exist) | ||||
| 2019-12-02 | Account for new maybe_sideeffect helper that requires predecessors | Paul Daniel Faria | -1/+1 | |
| 2019-12-02 | Revert back to using FunctionCx's Body | Paul Daniel Faria | -7/+6 | |
| 2019-12-02 | Add Body back as field of FunctionCx, but under a different lifetime | Paul Daniel Faria | -1/+1 | |
| 2019-12-02 | Remove Body from FunctionCx, pass it along during librustc_codegen_ssa | Paul Daniel Faria | -6/+7 | |
| 2019-12-02 | Simplify Cache wrapper to single type, impl Deref on it, fix all compilation ↵ | Paul Daniel Faria | -1/+1 | |
| errors in librustc_codegen_ssa | ||||
| 2019-11-21 | Aggregation of drive-by cosmetic changes. | Alexander Regueiro | -12/+11 | |
| 2019-11-12 | Fix tidy. | Camille GILLOT | -1/+3 | |
| 2019-11-12 | Rename in librustc_codegen_ssa. | Camille GILLOT | -1/+1 | |
| 2019-10-31 | rustc_codegen_ssa: move local variable debuginfo to mir::debuginfo. | Eduard-Mihai Burtescu | -0/+4 | |
| 2019-10-13 | Remove is_const_integral method from ConstMethods | bjorn3 | -2/+2 | |
| 2019-09-25 | Rename `sty` to `kind` | varkor | -1/+1 | |
| 2019-09-14 | Rollup merge of #64435 - eddyb:arguments-against-arg, r=rkruppe | Mazdak Farrokhzad | -6/+2 | |
| codegen: use "_N" (like for other locals) instead of "argN", for argument names. Based on #64408 (second commit is new), fixing something I mentioned in #64408 (which turned to be an immediate blocker for unifying relevant codepaths). Closes #64408 (by containing it). r? @rkruppe | ||||
| 2019-09-12 | codegen: be more explicit about setting giving names to allocas. | Eduard-Mihai Burtescu | -6/+2 | |
| 2019-09-09 | Use slice patterns to match projection base | Santiago Pastorino | -6/+2 | |
| 2019-09-09 | Convert Place's projection to a boxed slice | Santiago Pastorino | -17/+18 | |
| 2019-08-29 | `new_sized` is mostly used without align | Dante-Broggi | -2/+15 | |
| so rename it `new_sized_aligned`. 6/11 use `align` = `layout.align.abi`. `from_const_alloc` uses `alloc.align`, but that is `assert_eq!` to `layout.align.abi`. only 4/11 use something interesting for `align`. | ||||
| 2019-08-29 | `new_thin_place` is only used with `align` = `layout.align.abi` | Dante-Broggi | -3/+2 | |
| and is not `pub`. | ||||
| 2019-08-22 | Handle statics in `Subst::subst()` by implementing `TypeFoldable` | Wesley Wiser | -9/+2 | |
