about summary refs log tree commit diff
path: root/src/test/codegen/align-struct.rs
AgeCommit message (Collapse)AuthorLines
2018-04-26Use ScalarPair for tagged enumsAnthony Ramine-2/+1
2018-01-23Stabilized `#[repr(align(x))]` attribute (RFC 1358)Cameron Hart-3/+0
2017-12-26rustc: don't use union layouts for tagged union enums.Eduard-Mihai Burtescu-2/+3
2017-12-15rustc_trans: approximate ABI alignment for padding/union fillers.Eduard-Mihai Burtescu-0/+20
2017-10-26Avoid unnecessary copies of arguments that are simple bindingsBjörn Steinbrink-2/+0
Initially MIR differentiated between arguments and locals, which introduced a need to add extra copies assigning the argument to a local, even for simple bindings. This differentiation no longer exists, but we're still creating those copies, bloating the MIR and LLVM IR we emit. Additionally, the current approach means that we create debug info for both the incoming argument (marking it as an argument), and then immediately shadow it a local that goes by the same name. This can be confusing when using e.g. "info args" in gdb, or when e.g. a debugger with a GUI displays the function arguments separately from the local variables, especially when the binding is mutable, because the argument doesn't change, while the local variable does.
2017-05-01Add simple `[repr(align)]` codegen test.Cameron Hart-0/+57
Checks alloca and memcpy are aligned correctly.