[LLVMdev] Structure Types and ABI sizes
Renato Golin
rengolin at systemcall.org
Thu Feb 24 08:46:54 PST 2011
On 24 February 2011 16:27, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:
> %I = type { i32, i8 }; // 5 bytes
> %I' = type { %I, tailpad}; // 8 bytes
> %J = type { %I, i8 } // 6 bytes
That would break C code (and whatever else relies on alignment).
I don't see a way of specifying two structures, but I like the idea of
using a packed structure for inheritance and the "normal" one for
types.
cheers,
--renato
More information about the llvm-dev
mailing list