about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-12-22Add intrinsics & target features for rd{rand,seed}Simonas Kazlauskas-1/+85
2016-12-22Remove outdated FIXME commentEsteban Küber-6/+0
Removed FIXME comment referencing #3300.
2016-12-21Auto merge of #38488 - srinivasreddy:rf_collections, r=aturonbors-95/+103
run rustfmt on libcollections folder
2016-12-21Auto merge of #38302 - Mark-Simulacrum:trans-cleanup, r=eddybbors-5020/+1904
Cleanup old trans This is a cleanup of old trans, with the following main points: - Remove the `build.rs` API (prefer using `Builder` directly, which is now passed where needed through `BlockAndBuilder`). - Remove `Block` (inlining it into `BlockAndBuilder`) - Remove `Callee::call`, primarily through inlining and simplification of code. - Thinned `FunctionContext`: - `mir`, `debug_scopes`, `scopes`, and `fn_ty` are moved to `MirContext`. - `param_env` is moved to `SharedCrateContext` and renamed to `empty_param_env`. - `llretslotptr` is removed, replaced with more careful management of the return values in calls. - `landingpad_alloca` is inlined into cleanup. - `param_substs` are moved to `MirContext`. - `span` is removed, it was never set to anything but `None`. - `block_arena` and `lpad_arena` are removed, since neither was necessary (landing pads and block are quite small, and neither needs arena allocation). - Fixed `drop_in_place` not running other destructors in the same function. Fixes #35566 (thanks to @est31 for confirming).
2016-12-21Auto merge of #38099 - GuillaumeGomez:cast_suggestions, r=nikomatsakisbors-100/+401
Cast suggestions r? @nikomatsakis
2016-12-20Fix rebase errors.Mark Simulacrum-2/+1
2016-12-20Reuse cleanup pad declared at start of block.Mark Simulacrum-3/+3
2016-12-20Improve cache quality for eh_personality.Mark Simulacrum-8/+8
2016-12-20Move eh_unwind_resume into CrateContextMark Simulacrum-44/+37
Also improves cache quality.
2016-12-20Simplify get_landing_pad by inlining UnwindKind.Mark Simulacrum-72/+22
2016-12-20Add unreachable() after calls to eh_unwind_resume.Mark Simulacrum-0/+2
2016-12-20Simplify callee by removing is_indirect branch.Mark Simulacrum-13/+6
2016-12-20Move eh_personality() onto CrateContextMark Simulacrum-53/+51
2016-12-20Remove outdated commentMark Simulacrum-3/+0
2016-12-20Remove fn_ty from FunctionContextMark Simulacrum-50/+40
2016-12-20slice_for_each gives a reference alreadyMark Simulacrum-1/+1
2016-12-20Reduce coerce_unsized_into to one callMark Simulacrum-10/+5
We cannot inline due to it being recursive.
2016-12-20Remove outdated commentMark Simulacrum-1/+0
2016-12-20Inline make_drop_glueMark Simulacrum-82/+74
2016-12-20Remove needless checkMark Simulacrum-2/+0
2016-12-20Move get_landing_pad onto DropVal.Mark Simulacrum-80/+69
2016-12-20Use fn_ty directlyMark Simulacrum-8/+6
2016-12-20Do not use BAB after calling unreachable.Mark Simulacrum-16/+18
This does not make unreachable and other terminators take self by-value because it is deemed too difficult. We would need to create by-value methods on BAB that call into Builder, due to the Deref to builder.
2016-12-20Change *.fcx.ccx to *.ccxMark Simulacrum-41/+34
2016-12-20Mutate llargs instead of reconstructing it.Mark Simulacrum-20/+14
2016-12-20Replace bcx.ccx() with bcx.ccxMark Simulacrum-239/+238
2016-12-20Remove unecessary logic.Mark Simulacrum-8/+1
2016-12-20Add helper function to set debug locationsMark Simulacrum-24/+18
2016-12-20Clean up uses of set_personality_fn.Mark Simulacrum-24/+12
Remove gnu/msvc constructors for Funclet; these are worse for readability than explicit Some/None.
2016-12-20Change param_env to empty_param_envMark Simulacrum-4/+4
2016-12-20Simplify funclets creation.Mark Simulacrum-16/+14
2016-12-20Remove unused bcx from LocalAnalyzer.Mark Simulacrum-29/+22
2016-12-20Move debug info check into create_function_debug_contextMark Simulacrum-23/+8
2016-12-20Remove public ccx function on MirContextMark Simulacrum-5/+1
2016-12-20Make debuginfo take debug_context instead of MirContextMark Simulacrum-38/+54
2016-12-20Remove unreachable call to unreachableMark Simulacrum-5/+0
2016-12-20Fix and cleanup callee shimsMark Simulacrum-20/+31
2016-12-20Rebase fixesMark Simulacrum-2/+0
2016-12-20Make add_incoming_to_phi call slightly less confusing.Mark Simulacrum-1/+1
2016-12-20Inline and simplify init_cpadMark Simulacrum-35/+20
2016-12-20Don't special case abort/unreachable intrinsicsMark Simulacrum-13/+6
2016-12-20Remove llretslotptr from FunctionContextMark Simulacrum-35/+8
2016-12-20Move param_substs onto MirContextMark Simulacrum-56/+48
2016-12-20Move param_env onto SharedCrateContext, and move functions which need the ↵Mark Simulacrum-119/+107
ParamEnv onto it.
2016-12-20Move debug_context to MirContext from FunctionContextMark Simulacrum-62/+66
2016-12-20Remove lifetime parameterMark Simulacrum-4/+2
2016-12-20Inline get_funcletMark Simulacrum-11/+5
2016-12-20Inline last remaining use of Callee::call and delete unused codeMark Simulacrum-304/+19
2016-12-20Inline and cleanup build_return_blockMark Simulacrum-81/+87
2016-12-20Inline/Replace finish with build_return_blockMark Simulacrum-11/+5