<div>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!</div>
<div><br></div><div>A quick overview of the Targets.cpp code, the test file, and the outcome can be seen at <a href="http://pastebin.com/45y2N4dV">http://pastebin.com/45y2N4dV</a></div><div><br></div><div>Does anyone know what I might be doing wrong?</div>
<div><br>Thanks,<br>Stephen</div>