[PATCH] align_value attribute in Clang

Aaron Ballman aaron.ballman at gmail.com
Thu Oct 2 05:38:21 PDT 2014


On Wed, Oct 1, 2014 at 8:10 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> ----- Original Message -----
>> From: "Alexey Bataev" <a.bataev at hotmail.com>
>> To: "Richard Smith" <richard at metafoo.co.uk>
>> Cc: "cfe commits" <cfe-commits at cs.uiuc.edu>, "aaron ballman" <aaron.ballman at gmail.com>, "Michael Spencer"
>> <bigcheesegs at gmail.com>, reviews+d4635+public+b7e82bdc1d8c324a at reviews.llvm.org, "Hal Finkel" <hfinkel at anl.gov>
>> Sent: Tuesday, September 30, 2014 5:03:00 AM
>> Subject: Re: [PATCH] align_value attribute in Clang
>>
>> Hi Richard,
>> your guess is correct, it is applied to the outer pointer.
>
> Okay, in that case if we keep it out of the type system, then I suppose the current patch is essentially okay. The optimizer will deduce the alignment information when it can (especially after inlining), but if it is not a separate type, then we actually can't have it follow template deduction otherwise because it can't affect the mangling. Sound right?

That sounds correct to me.

~Aaron




More information about the cfe-commits mailing list