[PATCH/RFC] Expose OpenCL Attributes in libclang

Paul Fox fox at emphotonics.com
Fri Jun 27 08:26:52 PDT 2014


Here are initial patches that expose the inheritable attributes for 
OpenCL in libclang, including the python bindings.

I initially posted these on the dev mailing list, but since they 
received no response, I presume that this list is a better place for them.

As far as I can tell, since the address space attributes are type 
attributes, exposing them will require adding to the libclang API. Along 
these lines, it might be useful to have a generalized way to query type 
attributes so that more semantic analysis can be done through libclang. 
Any thoughts on this?

Paul Fox


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Expose-OpenCL-attributes-in-AST.patch
Type: text/x-patch
Size: 2794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140627/2f7df108/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-additional-OpenCL-attributes-to-Python-binding.patch
Type: text/x-patch
Size: 773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140627/2f7df108/attachment-0001.bin>


More information about the cfe-commits mailing list