about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-11-23 01:02:21 +0000
committerbors <bors@rust-lang.org>2018-11-23 01:02:21 +0000
commit6a2d1b4e15d5de90f8c36181b1d429da658adfd2 (patch)
treed815d3ea4166ddf687f92dd0550e0b6233d5e58b /src/rustllvm/PassWrapper.cpp
parent00e03ee57446d47667e5adba77fca8c13bfe7535 (diff)
parent5b4747ded7c964ea4e871b3ea6b10bf20862462a (diff)
downloadrust-6a2d1b4e15d5de90f8c36181b1d429da658adfd2.tar.gz
rust-6a2d1b4e15d5de90f8c36181b1d429da658adfd2.zip
Auto merge of #54071 - eddyb:alignsssss, r=oli-obk
rustc_target: separate out an individual alignment quantity type from Align.

Before this PR, `rustc_target::abi::Align` combined "power-of-two alignment quantity" semantics, with a distinction between ABI (required) and preferred alignment (by having two quantities).

After this PR, `Align` is only *one* such quantity, and a new `AbiAndPrefAlign` type is introduced to hold the pair of ABI and preferred `Align` quantities.

`Align` is used everywhere one quantity is necessary/sufficient, simplifying some of the code in codegen/miri, while `AbiAndPrefAlign` only in layout computation (to propagate preferred alignment).

r? @oli-obk cc @nagisa @RalfJung @nikomatsakis
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions