John Criswell
2010-Feb-04 16:53 UTC
[LLVMdev] Unpacked Structures within Packed Structures
Dear LLVMers, I have a question on packed structures in LLVM 2.6. Is it possible to place an unpacked structure type as a member within a packed structure type? What I want to do is to have the fields of an inner structure padded per the ABI but have the elements of the outer structure packed. Thanks in advance. -- John T.
Chris Lattner
2010-Feb-04 21:46 UTC
[LLVMdev] Unpacked Structures within Packed Structures
On Feb 4, 2010, at 8:53 AM, John Criswell wrote:> Dear LLVMers, > > I have a question on packed structures in LLVM 2.6. > > Is it possible to place an unpacked structure type as a member > within a > packed structure type? What I want to do is to have the fields of an > inner structure padded per the ABI but have the elements of the outer > structure packed.Yep, that should work fine. One issue to watch out for is that the elements of the non-packed struct may not be properly aligned if the entire thing is off. -Chris