[llvm] [DataLayout] Use member initialization (NFC) (PR #103712)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 01:10:43 PDT 2024
================
@@ -82,14 +79,11 @@ struct LayoutAlignElem {
/// Layout pointer alignment element.
///
/// Stores the alignment data associated with a given pointer and address space.
-///
-/// \note The unusual order of elements in the structure attempts to reduce
-/// padding and make the structure slightly more cache friendly.
struct PointerAlignElem {
+ uint32_t AddressSpace;
+ uint32_t TypeBitWidth;
----------------
nikic wrote:
The idea of this order change is to match how it's written in the string representation?
https://github.com/llvm/llvm-project/pull/103712
More information about the llvm-commits
mailing list