<br><br><div class="gmail_quote">On Mon, Mar 8, 2010 at 7:50 PM, me22 <span dir="ltr"><<a href="http://me22.ca">me22.ca</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 8 March 2010 19:51, Arushi Aggarwal <<a href="mailto:arushi987@gmail.com">arushi987@gmail.com</a>> wrote:<br>
><br>
> 2. I notice that the setAlignment method for an AllocaInst takes an<br>
> unsigned. For 64 bit systems, alignment could potentially be larger. Is<br>
> there a reason why the alignment should be restricted to this size?<br>
> Thanks in advance<br>
><br>
<br>
</div>Would it ever be practical to align a stack variable to an 8 GiB<br>
boundary?  I'm curious what use case you could think of for aligning<br>
to 64 KiB or more, since the unsigned is guaranteed to allow at least<br>
0x8000.<br>
</blockquote></div><br><div>I need objects aligned to the closest(largest) power of two boundary and the same case also applies to globals. </div><div><br></div><div>Arushi</div>