[cfe-dev] Adding a new pragma to Clang
Dmitri Gribenko
gribozavr at gmail.com
Wed Jan 8 10:12:25 PST 2014
On Wed, Jan 8, 2014 at 7:32 PM, Nadav Rotem <nrotem at apple.com> wrote:
> I understand that adding vectorization attributes will be easier than
> pragmas. But, what will the syntax look like? Can someone provide a small
> example?
There are a few examples on the web:
http://www.codesynthesis.com/~boris/blog/2012/04/18/cxx11-generalized-attributes/
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-dev
mailing list