summary refs log tree commit diff
path: root/src/librustc_codegen_ssa/mir
AgeCommit message (Collapse)AuthorLines
2019-01-03Fix 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-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