about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa/mir
AgeCommit message (Collapse)AuthorLines
2019-01-05Auto merge of #57145 - RalfJung:panic-if-uninhabited, r=alexcrichtonbors-46/+50
panic when calling MaybeUninhabited::into_inner on uninhabited type I do this by adding an internal-only intrinsic `panic_if_uninhabited`. I have no idea what I am doing here, just mindlessly copying code around, so please review carefully!
2019-01-01`<&'tcx ty::Const as Deref>::deref`Oliver Scherer-4/+4
2019-01-01Add `unwrap_usize` to `LazyConst`, tooOliver Scherer-2/+2
2019-01-01Move the `Unevaluated` constant arm upwards in the type structureOliver Scherer-8/+7
2018-12-27use a better way to get at the type parameterRalf Jung-6/+1
2018-12-27panic when calling MaybeUninhabited::into_inner on uninhabited typeRalf Jung-46/+55
2018-12-25Remove licensesMark Rousskov-80/+0
2018-12-21Fix alignment for array indexingNikita Popov-3/+13
We need to reduce the alignment with the used offset. If the offset isn't known, we need to reduce with the element size to support arbitrary offsets.
2018-12-18treat ref-to-raw cast like a reborrow: do a special kind of retagRalf Jung-1/+0
2018-12-11Remove env_alloca hackNikita Popov-24/+2
This is no longer necessary for LLVM >= 6.
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-9/+9
2018-11-29Move get_static from CodegenCx to Builderbjorn3-1/+1
2018-11-29Use implicit deref instead of BuilderMethods::cx()bjorn3-79/+79
2018-11-29Move IntrinsicCallMethods::call_overflow_intrinsics to ↵bjorn3-1/+1
BuilderMethods::checked_binop
2018-11-29Don't use llvm intrinsic names in cg_ssabjorn3-89/+6
2018-11-28Fix alignment of stores to scalar pairNikita Popov-5/+15
The alignment for the second element of a scalar pair is not the same as for the first element. Make sure it is computed correctly based on the element size.
2018-11-25Auto merge of #55959 - matthewjasper:remove-end-region, r=nikomatsakisbors-1/+0
Cleanup from lexical MIR borrowck removal Lexical MIR borrowck was removed months ago now, and `EndRegion`s are no longer used for MIRI verification. * Remove `rustc::mir::StatementKind::EndRegion` and the `-Zemit_end_regions` flag * Use `RegionVid` instead of `Region` in BorrowSet * Rewrite drop generation to create fewer goto terminators. r? @nikomatsakis
2018-11-24Rollup merge of #56097 - ogoffart:union-abi, r=eddybkennytm-3/+14
Fix invalid bitcast taking bool out of a union represented as a scalar As reported in https://github.com/rust-lang/rust/pull/54668#issuecomment-440186476
2018-11-22rustc_target: avoid using AbiAndPrefAlign where possible.Eduard-Mihai Burtescu-33/+33
2018-11-22rustc_target: separate out an individual Align from AbiAndPrefAlign.Eduard-Mihai Burtescu-11/+11
2018-11-22rustc_target: rename abi::Align to AbiAndPrefAlign.Eduard-Mihai Burtescu-14/+13
2018-11-20Add comments and rename a local variableOlivier Goffart-5/+8
2018-11-20Fix invalid bitcast taking bool out of a union represented as a scalarOlivier Goffart-3/+11
As reported in https://github.com/rust-lang/rust/pull/54668#issuecomment-440186476
2018-11-18Remove mir::StatementKind::EndRegionMatthew Jasper-1/+0
Since lexical MIR borrow check is gone, and validation no longer uses these, they can be removed.
2018-11-16[eddyb] rustc_codegen_ssa: rename `interfaces` to `traits`.Eduard-Mihai Burtescu-9/+9
2018-11-16[eddyb] rustc_codegen_ssa: handle LLVM unsafety correctly.Eduard-Mihai Burtescu-1/+3
2018-11-16All Builder methods now take &mut self instead of &selfDenis Merigoux-209/+231
2018-11-16Added some docs + start to &mut self builder methodsDenis Merigoux-25/+25
2018-11-16Great separation of librustc_codegen_llvm: librustc_codegen_ssa compilesDenis Merigoux-0/+4351