Hi Doug,
On Wed, Dec 01, 2010 at 07:38:38AM -0800, Douglas Gregor wrote:
> > +def CUDAConstant : Attr {
> > + let Spellings = ["constant"];
> > +}
> > +
> > +def CUDADevice : Attr {
> > + let Spellings = ["device"];
> > +}
> > +
> > +def CUDAGlobal : Attr {
> > + let Spellings = ["global"];
> > +}
> > +
> > +def CUDAHost : Attr {
> > + let Spellings = ["host"];
> > +}
> > +
> > +def CUDAShared : Attr {
> > + let Spellings = ["shared"];
> > +}
> > +
>
> I'd feel more comfortable if these were spelled "cuda_constant",
> "cuda_device", "cuda_global", "cuda_host", and "cuda_shared", so they're
> guarantee not to conflict with future attributes. Nobody is actually going to
> write the attribute form anyway.
The NVIDIA SDK headers say things like
#define __global__ __attribute__((global))
so we need to use this spelling here.
I agreed with Chris that the best way to disambiguate them is to rename
the attributes at the AST level and keep the spellings.
Thanks,
--
Peter
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits