Hi everybody,<br><br>I am a student at Politecnico di Milano.<br>For my Master thesis I am working on extending CLang in order to support OpenCL.<br><br>I am working on CLang 2.8 refering to the version 1.1 of the OpenCL standard.<br>


I just finished adding the main OpenCL features to the Parser:<br><br>* function qualifier: __kernel<br>* type qualifiers: __constant, __global, __local, __private<br>* built-in vector data types are added by the preprocessor during the start up.<br>


<br>The attached patch contains also a set of test cases, placed in the<br>test/OpenCL subdirectory.<br><br>_______________________________________<br>Missing Features:<br><br>* half data type<br>* built-in types:  image2d_t, image3d_t, sampler_t, event_t<br>


* image access qualifiers: __read_only, __write_only, __read_write<br>* reserved data types<br><br>_______________________________________<br>Future development:<br><br>Now I plan to add the support for code generation.<br>


This will require adding metadata for __kernel functions,<br>setting a specific addressspace for __constant variables and tagging<br>with metadata the alloca instructions for __local variables.<br><br>I plan to add the parser missing features only when I can generate the IR<br>


for the simple features listed above.<br><br>Any suggestions would be greatly appreciated.<br><br>Bye bye<br><font color="#888888"><br>Alberto</font>