|
|
|
[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
[Newbies FAQ] [Kernel List] [Site Home] [IETF Annouce] [DCCP] [Netdev] [Networking] [Security] [Bugtraq] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux RAID] [Linux SCSI] [DDR & Rambus] [Trinity Fuzzer Tool]