[LLVMdev] Structure Types and ABI sizes

John McCall rjmccall at apple.com
Tue Feb 15 17:14:31 PST 2011


I think the obvious solution here is to use packed structs when the layout of an type as a base class would substantially differ from its layout as a complete object.  This loses some alignment information, but frontends need to be aggressive about providing alignment on loads/stores/etc. anyway.  I'm actually thinking of changing clang to do this.

John.



More information about the llvm-dev mailing list