[LLVMdev] Set alignment of a structure?

Nick Johnson
Fri, 08 May 2009 00:58:23 -0000

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