about summary refs log tree commit diff
path: root/src/librustc/mir/cache.rs
AgeCommit message (Collapse)AuthorLines
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-271/+0
2019-12-22Format the worldMark Rousskov-35/+19
2019-12-05rustc: Apply clearer naming to BodyAndCache, fix Deref impl, remove unneeded ↵Paul Daniel Faria-29/+25
Index impl, remove body fn rustc_codegen_ssa: Fix BodyAndCache reborrow to Body and change instances of body() call to derefence rustc_mir: Fix BodyAndCache reborrow to Body and change intances of body() call to derefence
2019-12-03rustc: expose the mir::Body reference lifetime from mir::ReadOnlyBodyCache ↵Eduard-Mihai Burtescu-10/+2
(#64736 fallout).
2019-12-02Use new HashStable proc macroPaul Daniel Faria-6/+1
2019-12-02Fix type errors created during rebasingPaul Daniel Faria-8/+1
2019-12-02Remove unchecked inline attribute, remove unused functions, make chache mod ↵Paul Daniel Faria-47/+25
private again
2019-12-02Remove inline attributes that hadn't been profiled, unexport Cache since it ↵Paul Daniel Faria-15/+0
no longer needs to be public
2019-12-02Compute predecessors in mir_build query and use existing cache for ↵Paul Daniel Faria-10/+0
generating ReadOnlyBodyCache, remove unneeded fns
2019-12-02Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, ↵Paul Daniel Faria-16/+4
rename all body_cache back to body
2019-12-02Remove BodyCache.body and rely on Deref as much as possible for ↵Paul Daniel Faria-9/+13
ReadOnlyBodyCache
2019-12-02Fix tidy errorsPaul Daniel Faria-2/+9
2019-12-02Fix remaining compilation issuesPaul Daniel Faria-6/+32
2019-12-02Simplify BodyCache impl and fix all remaining type errors in librustc_mir ↵Paul Daniel Faria-106/+78
(lifetime errors still exist)
2019-12-02Add predecessors fn to ReadOnlyBodyCache, fix more Body -> ↵Paul Daniel Faria-1/+5
(ReadOnly)BodyCache type errors
2019-12-02Add read_only fn to BodyCache<&mut...> impl, fix more Body -> ↵Paul Daniel Faria-0/+9
(ReadOnly)BodyCache type errors
2019-12-02Fix a large number of Body -> (ReadOnly)BodyCache type errors, add ↵Paul Daniel Faria-21/+43
predecessor_locations fn to ReadOnlyBodyCache
2019-12-02Account for new maybe_sideeffect helper that requires predecessorsPaul Daniel Faria-50/+115
2019-12-02Improved BodyCache body impl so it only returns a sharable ref, add new ↵Paul Daniel Faria-4/+10
body_mut method, fix visit macros, simplify usage in codegen_ssa analyzer
2019-12-02Simplify Cache wrapper to single type, impl Deref on it, fix all compilation ↵Paul Daniel Faria-41/+41
errors in librustc_codegen_ssa
2019-12-02Move predecessor cache outside of Body, use wrapper types to manage Cache ↵Paul Daniel Faria-25/+233
and Body (WIP, amend this commit)
2019-12-02Move predecessors cache back to its own typePaul Daniel Faria-0/+47
This ensures that the cache can be properly ignored during encoding and decoding. Fix panics that arose due to lack of encoding
2019-12-02Inline cache impl into Body, rename predecessor fns, change output of ↵Paul Daniel Faria-75/+0
predecessors_for to slice
2019-12-02Remove interior mutability in mir predecessors cachePaul Daniel Faria-11/+15
2019-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-1/+1
2019-09-28Switch over all StableHash impls to new formatMark Rousskov-4/+2
2019-09-07Aggregation of cosmetic changes made during work on REPL PRs: librustcAlexander Regueiro-1/+1
2019-07-23cleanup: Remove `extern crate serialize as rustc_serialize`sVadim Petrochenkov-10/+8
2019-06-09Changed usages of `mir` in librustc::mir and librustc_mir to `body`Jad Ghalayini-5/+5
2019-05-28Changes the type `mir::Mir` into `mir::Body`Claude-Alban RANÉLY-VERGÉ-DÉPRÉ-3/+3
The commit should have changed comments as well. At the time of writting, it passes the tidy and check tool. Revisions asked by eddyb : - Renamed of all the occurences of {visit/super}_mir - Renamed test structures `CachedMir` to `Cached` Fixing the missing import on `AggregateKind`
2019-02-05move librustc to 2018Mark Mansi-3/+3
2018-12-25Remove licensesMark Rousskov-10/+0
2018-09-29don't elide lifetimes in paths in librustc/Zack M. Davis-3/+3
This seemed like a good way to kick the tires on the elided-lifetimes-in-paths lint (#52069)—seems to work! This was also pretty tedious—it sure would be nice if `cargo fix` worked on this codebase (#53896)!
2018-09-04Breaking change upgradesMark Rousskov-2/+5
2018-05-01rustc: return impl Iterator from Terminator(Kind)::successors(_mut).Eduard-Mihai Burtescu-1/+1
2018-03-28Make Mir::predecessors thread-safeJohn Kåre Alsaker-5/+5
2018-03-13improve TypeFoldable/Lift macros and make a bunch of stuff use themNiko Matsakis-0/+4
Improvements: - Use Clone not Copy for the "simple cases" - Separate TypeFoldable and Lift for the "simple cases" - Support generics type parameters - Support named fields in enum variants - etc
2018-03-08Add InterpretInterner to StableHashingContext for AllocId serializationOliver Schneider-2/+2
2017-09-18incr.comp.: Remove tcx from StableHashingContext.Michael Woerister-2/+2
2017-06-06ICH: Make StableHashingContext work with any TyCtxt, not just the global one.Michael Woerister-2/+2
2017-04-06Introduce HashStable trait and base ICH implementations on it.Michael Woerister-1/+10
This initial commit provides implementations for HIR, MIR, and everything that also needs to be supported for those two.
2016-10-28rustc: move mir::repr::* to mir.Eduard Burtescu-1/+1
2016-06-23add control flow graph and algorithms. add dominator to mirScott A Carr-1/+1
2016-06-09add a cache for MIR predecessorsAriel Ben-Yehuda-0/+69