<p>I thought so, but it is returning just the Abi alignment for me. Should there be an 's:4' or something in the target data?</p>
<p>On Jul 7, 2010 6:39 PM, "Dan Gohman" <<a href="mailto:gohman@apple.com">gohman@apple.com</a>> wrote:<br type="attribution">> <br>> On Jul 6, 2010, at 2:41 PM, Rafael Espindola wrote:<br>> <br>
>> One issues is that we would produce silly code like<br>>> <br>>>         add     r0, r0, #3<br>>>         bfc     r0, #0, #2<br>>> <br>>> for the vaarg of i32. What is the correct way to find the minimum<br>
>> alignment of an argument? This is not the same as the stack alignment<br>>> at function entry. For example, for ARM the correct value is 4, since<br>>> values smaller than 32 bits are promoted (see 5.2.1.1 and 5.2.1.2 in<br>
>> AAPCS).<br>> <br>> Is TargetData::getCallFrameTypeAlignment what you want here?<br>> <br>> Dan<br>> <br></p>