[PATCH] align_value attribute in Clang

Hal Finkel hfinkel at anl.gov
Tue Jul 22 23:13:28 PDT 2014


One aspect perhaps worth some thought:

typedef double * aligned_double_ptr __attribute__((align_value(64)));
aligned_double_ptr x;

void foo(decltype(x + 3) y, aligned_double_ptr z) {}

Does y also carry the alignment assumption? As it stands in my current patch, the answer is no -- I think that is the desirable outcome, but I could be convinced otherwise ;)

Thanks again,
Hal

----- Original Message -----
> From: "Richard Smith" <richard at metafoo.co.uk>
> To: hfinkel at anl.gov, "aaron ballman" <aaron.ballman at gmail.com>, bigcheesegs at gmail.com, richard at metafoo.co.uk
> Cc: cfe-commits at cs.uiuc.edu
> Sent: Tuesday, July 22, 2014 9:18:56 PM
> Subject: Re: [PATCH] align_value attribute in Clang
> 
> +Michael Spencer, he was considering proposing something similar for
> standardization.
> 
> http://reviews.llvm.org/D4635
> 
> 
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-commits mailing list