about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-12-03rustc: compute FnAbi's for virtual calls through FnAbi::of_instance.Eduard-Mihai Burtescu-36/+36
2019-12-03rustc: use ReifyShim for reifying Virtual call instances.Eduard-Mihai Burtescu-25/+34
2019-12-03rustc_codegen_ssa: use FnAbi::of_instance wherever possible.Eduard-Mihai Burtescu-30/+34
2019-12-03rustc_codegen_llvm: move NoReturn attribute to apply_attrs_llfn.Eduard-Mihai Burtescu-7/+5
2019-12-03rustc_codegen_ssa: take a FnAbi instead of a FnSig in declare_fn.Eduard-Mihai Burtescu-39/+45
2019-12-03rustc_codegen_ssa: remove define_fn and define_internal_fn.Eduard-Mihai Burtescu-37/+3
2019-12-03rustc_codegen_ssa: clean up lifetimes on TerminatorCodegenHelper's methods.Eduard-Mihai Burtescu-14/+13
2019-12-03rustc_codegen_ssa: make codegen_instance a simple wrapper for codegen_mir.Eduard-Mihai Burtescu-10/+7
2019-12-03rustc_codegen_ssa: use &'tcx mir::Body<'tcx> instead of &'a ... for the MIR ↵Eduard-Mihai Burtescu-28/+29
body.
2019-12-03rustc: expose the mir::Body reference lifetime from mir::ReadOnlyBodyCache ↵Eduard-Mihai Burtescu-70/+62
(#64736 fallout).
2019-12-03rustc_mir: don't hardcode InstanceDef::VtableShim behavior to ↵Eduard-Mihai Burtescu-18/+24
Adjustment::DerefMove.
2019-12-03rustc: combine Instance::fn_sig_noadjust and Instance::fn_sig.Eduard-Mihai Burtescu-17/+15
2019-12-03Auto merge of #66256 - CAD97:patch-2, r=RalfJungbors-8/+9
Layout::pad_to_align is infallible As per [this comment](https://github.com/rust-lang/rust/issues/55724#issuecomment-441421651) (cc @glandium). > Per https://github.com/rust-lang/rust/blob/eb981a1/src/libcore/alloc.rs#L63-L65, `layout.size()` is always <= `usize::MAX - (layout.align() - 1)`. > > Which means: > > * The maximum value `layout.size()` can have is already aligned for `layout.align()` (`layout.align()` being a power of two, `usize::MAX - (layout.align() - 1)` is a multiple of `layout.align()`) > * Incidentally, any value smaller than that maximum value will align at most to that maximum value. > > IOW, `pad_to_align` can not return `Err(LayoutErr)`, except for the layout not respecting its invariants, but we shouldn't care about that. This PR makes `pad_to_align` return `Layout` directly, representing the fact that it cannot fail.
2019-12-02Auto merge of #64736 - Nashenas88:mir_predecessors_cache_cleanup, r=oli-obkbors-590/+942
Remove interior mutability in mir predecessors cache
2019-12-02Fix issues caused during rebasingPaul Daniel Faria-2/+1
2019-12-02Fix issues caused during rebasingPaul Daniel Faria-5/+5
2019-12-02Use new HashStable proc macroPaul Daniel Faria-6/+1
2019-12-02Fix tidy issuesPaul Daniel Faria-40/+53
2019-12-02Fix rebasing errors, convert some BodyCache::body() calls to reborrowsPaul Daniel Faria-38/+39
2019-12-02Fix type errors created during rebasingPaul Daniel Faria-70/+67
2019-12-02Remove unchecked inline attribute, remove unused functions, make chache mod ↵Paul Daniel Faria-48/+26
private again
2019-12-02Remove inline attributes that hadn't been profiled, unexport Cache since it ↵Paul Daniel Faria-17/+1
no longer needs to be public
2019-12-02Fix type errors cause during rebasingPaul Daniel Faria-5/+6
2019-12-02Compute predecessors in mir_build query and use existing cache for ↵Paul Daniel Faria-14/+7
generating ReadOnlyBodyCache, remove unneeded fns
2019-12-02Remove files created during conflict resolutionPaul Daniel Faria-1696/+0
2019-12-02Fix typos caused during rebasePaul Daniel Faria-2/+1698
2019-12-02Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, ↵Paul Daniel Faria-630/+618
rename all body_cache back to body
2019-12-02Remove BodyCache.body and rely on Deref as much as possible for ↵Paul Daniel Faria-87/+89
ReadOnlyBodyCache
2019-12-02Undo minor changes that weren't needed, fix one lifetime typoPaul Daniel Faria-30/+31
2019-12-02Fix compilation errors created during rebasePaul Daniel Faria-2/+2
2019-12-02Fix typoPaul Daniel Faria-1/+1
2019-12-02Fix tidy errorsPaul Daniel Faria-62/+182
2019-12-02Fix typos caused during rebasePaul Daniel Faria-6/+6
2019-12-02Fix remaining compilation issuesPaul Daniel Faria-50/+102
2019-12-02Simplify BodyCache impl and fix all remaining type errors in librustc_mir ↵Paul Daniel Faria-612/+588
(lifetime errors still exist)
2019-12-02Fix remaining Body -> (ReadOnly)BodyCache type errors in librustc_mir ↵Paul Daniel Faria-14/+16
outside of librustc_mir/transform
2019-12-02Fix typo caused by rebasingPaul Daniel Faria-1/+1
2019-12-02Add predecessors fn to ReadOnlyBodyCache, fix more Body -> ↵Paul Daniel Faria-47/+52
(ReadOnly)BodyCache type errors
2019-12-02Add read_only fn to BodyCache<&mut...> impl, fix more Body -> ↵Paul Daniel Faria-40/+48
(ReadOnly)BodyCache type errors
2019-12-02Fix a large number of Body -> (ReadOnly)BodyCache type errors, add ↵Paul Daniel Faria-183/+207
predecessor_locations fn to ReadOnlyBodyCache
2019-12-02Account for new maybe_sideeffect helper that requires predecessorsPaul Daniel Faria-133/+176
2019-12-02Convert &mut to & since the reference didn't need to be mutablePaul Daniel Faria-2/+2
2019-12-02Revert back to using FunctionCx's BodyPaul Daniel Faria-147/+118
2019-12-02Add Body back as field of FunctionCx, but under a different lifetimePaul Daniel Faria-49/+46
2019-12-02Improved BodyCache body impl so it only returns a sharable ref, add new ↵Paul Daniel Faria-12/+23
body_mut method, fix visit macros, simplify usage in codegen_ssa analyzer
2019-12-02Remove Body from FunctionCx, pass it along during librustc_codegen_ssaPaul Daniel Faria-159/+184
2019-12-02Simplify Cache wrapper to single type, impl Deref on it, fix all compilation ↵Paul Daniel Faria-162/+132
errors in librustc_codegen_ssa
2019-12-02Move predecessor cache outside of Body, use wrapper types to manage Cache ↵Paul Daniel Faria-161/+300
and Body (WIP, amend this commit)
2019-12-02Move predecessors cache back to its own typePaul Daniel Faria-14/+61
This ensures that the cache can be properly ignored during encoding and decoding. Fix panics that arose due to lack of encoding
2019-12-02Add back cache invalidation to basic_blocks_and_local_decls_mutPaul Daniel Faria-1/+3