about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/glue.rs
AgeCommit message (Collapse)AuthorLines
2023-03-17Use `size_of_val` instead of manual calculationScott McMurray-1/+1
Very minor thing that I happened to notice in passing, but it's both shorter and means it gets `mul nuw`, so why not.
2022-12-08Add 0..=isize::MAX range metadata to size loads from vtablesErik Desjardins-0/+3
2022-11-13add is_sized method on Abi and Layout, and use itRalf Jung-1/+1
2022-06-14use unchecked mul to compute slice sizesErik Desjardins-1/+6
...since slice sizes can't signed wrap see https://doc.rust-lang.org/std/slice/fn.from_raw_parts.html > The total size len * mem::size_of::<T>() of the slice must be no larger than isize::MAX.
2022-03-11Improve `AdtDef` interning.Nicholas Nethercote-1/+1
This commit makes `AdtDef` use `Interned`. Much the commit is tedious changes to introduce getter functions. The interesting changes are in `compiler/rustc_middle/src/ty/adt.rs`.
2021-12-05Attach range metadata to alignment loads from vtablesErik Desjardins-7/+11
...because alignment is always nonzero. This helps eliminate redundant runtime alignment checks, when a DST is a field of a struct whose remaining fields have alignment 1.
2021-06-15Refactor to make interpreter and codegen backend neutral to vtable internal ↵Charles Lew-1/+6
representation.
2020-09-04Change ty.kind to a methodLeSeulArtichaut-2/+2
2020-08-30mv compiler to compiler/mark-0/+109