[sparse-llvm] LLVM and alignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I looked at adding struct support yesterday and it seems rather
straight-forward. I'll hopefully have a working patch today. I noticed
one issue with alignment, though.

The LLVMStructType() function wants to know if a structure is packed
or not. Initially I thought we can just make all structures non-packed
since sparse takes care of that and sets up alignment to 1 byte.
Unfortunately I then noticed that LLVM doesn't actually seem to allow
you to change _type alignment_ but only _value alignment_. The latter
is done with the LLVMSetAlignment() function and seems to be limited
to global variables.

Jeff, any ideas?

                        Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux