[llvm] [DataLayout] Add byte specification (PR #106536)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 11:21:38 PDT 2024
================
@@ -565,13 +575,14 @@ inline LLVMTargetDataRef wrap(const DataLayout *P) {
class StructLayout final : public TrailingObjects<StructLayout, TypeSize> {
TypeSize StructSize;
Align StructAlignment;
+ unsigned ByteWidth;
----------------
arichardson wrote:
Less critical here since we are multiplying not dividing, but maybe always use a shift? In that case we could even use uint8_t to fit it into the padding.
https://github.com/llvm/llvm-project/pull/106536
More information about the llvm-commits
mailing list