[cfe-dev] OpenCL attribute support in libclang

Paul Fox fox at emphotonics.com
Tue Jun 24 08:19:18 PDT 2014


It appears that while (some) CUDA attributes are currently exposed in 
the libclang interface, there's no similar treatment for OpenCL 
attributes. In fact, parameter declaration attributes don't seem to 
appear at all when walking the AST (even as unexposed attributes).

When working with code analysis and generation for OpenCL kernels, this 
is obviously an important feature.

Does anyone know if a patch exists for this? If not, I will look into 
adding support patterned on the CUDA attribute support.

Regards,

Paul



More information about the cfe-dev mailing list