[cfe-dev] [OpenCL patch] kernel attributes implementation
rjmccall at apple.com
Wed Jan 18 10:26:47 PST 2012
On Jan 18, 2012, at 5:31 AM, Benyei, Guy wrote:
> Hi Doug,
> I'm looking into the attributes stuff, and it seems like there was some effort to make it tablegenned all the way.
> Currently even with the Attr.td file in place, each attribute must be added also in AttributeList.h, in AttributeList.cpp, and also there is specific handling for every attribute in SemaDeclAttr.cpp.
> Is there any reason for this?
> I would imagine a simpler way to add attributes by only inserting them in the Attr.td file, and getting the rest for free.
That was indeed the design; it simply hasn't happened yet. The person who was working on this went on to work on other things.
More information about the cfe-dev