[llvm-dev] Changing Alignment of global variables in LLVM

Charith Mendis via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 3 15:25:48 PDT 2017


What is the best way to change the alignment of global variables and
allocated structures in LLVM during one of its optimization passes?


For example, I want to change,

@u = internal unnamed_addr global [5 x [65 x [65 x [65 x double]]]]
zeroinitializer, align 16

to align to 32 bytes.

How can this be accomplished so that all other references in the code
accessing this structure are also updated.

Thank You

-- 
Kind regards,
Charith Mendis

Graduate Student,
CSAIL,
Massachusetts Institute of Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171003/827a828e/attachment.html>


More information about the llvm-dev mailing list