[llvm] [DataLayout] Use member initialization (NFC) (PR #103712)
    Sergei Barannikov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Aug 14 01:14:32 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;
----------------
s-barannikov wrote:
Yes
https://github.com/llvm/llvm-project/pull/103712
    
    
More information about the llvm-commits
mailing list