[cfe-dev] Unable to get Clang to obey target alignment requirements
Stephen McGruer
stephen.mcgruer at gmail.com
Mon Dec 17 05:10:07 PST 2012
I'm currently struggling with getting Clang and LLVM to use 4-byte
alignment for my target backend (ARCompact). (My target uses 4-byte
alignment for all targets whose size is >= 4.) With regards to Clang, I
thought I had set the correct variables and the DescriptionString in
Targets.cpp, but compiling a simple test case to LLVM IR shows that doubles
are still aligned to 8-bytes!
A quick overview of the Targets.cpp code, the test file, and the outcome
can be seen at http://pastebin.com/45y2N4dV
Does anyone know what I might be doing wrong?
Thanks,
Stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121217/acca482b/attachment.html>
More information about the cfe-dev
mailing list