[LLVMdev] Set alignment of a structure?

Nick Johnson nicholas.paul.johnson at gmail.com
Thu May 7 17:58:23 PDT 2009


Chris,

On Thu, May 7, 2009 at 7:20 PM, Chris Lattner <clattner at apple.com> wrote:
> nd what you're saying.  LLVM can and does already
> express this, just in a different form.  Why does this need to be in
> the type?

I misunderstood your earlier email.  Now I understand.  Setting
alignment on a global variable will work for many of my needs.

However, say I need to construct an array of OpaqueTypes; can I set an
alignment on the elements of that array?  For instance, is it possible
to have an array where each element is forced to be a multiple of the
cacheline size?

Thank you again!
-- 
Nick Johnson



More information about the llvm-dev mailing list