<div dir="ltr"><br clear="all"><div>What is the best way to change the alignment of global variables and allocated structures in LLVM during one of its optimization passes?</div><div><br></div><div><br></div><div>For example, I want to change,</div><div><br></div><div>@u = internal unnamed_addr global [5 x [65 x [65 x [65 x double]]]] zeroinitializer, align 16<br></div><div><br></div><div>to align to 32 bytes.</div><div><br></div><div>How can this be accomplished so that all other references in the code accessing this structure are also updated.</div><div><br></div><div>Thank You</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Kind regards,<br>Charith Mendis<br><br>Graduate Student,<div>CSAIL,<br><div>Massachusetts Institute of Technology</div></div></div></div></div>
</div>