[llvm-commits] PATCH: Use modules data layout over subtargetdata layout, if it exists.
Chris Lattner
clattner at apple.com
Wed Feb 18 15:11:25 PST 2009
On Feb 18, 2009, at 2:31 PM, Burke, Max wrote:
> Re patches, will do.
>
> I'm trying to fix interop between code that LLVM generates and that
> generated by a few other compilers on a handful of platforms which
> have
> differing alignments than what LLVM specifies, without hard coding the
> permutations into the backends.
Ok, currently that is considered a front-end problem. :)
A silly example, say your C compile expects double to be 8-byte
aligned, and you have the following struct:
struct {
int X;
double D;
};
This will get codegen'd by llvm-gcc to { i32, i32, double }, not to
{i32, double} on targets where the llvm backend thinks that double is
4-byte aligned.
-Chris
More information about the llvm-commits
mailing list