Hi everybody,<br><br>for my master thesis I am extending clang in order to support OpenCL, at least the most important features.<br>I am adding the support for vector data types. <br><br>As I saw in many of the test cases in the suite the standard way to support them is using the ext_vector_type attribute, like this:<br>
<br>typedef __attribute__(( ext_vector_type(4) )) int int4;<br><br>My problem is that OpenCL supports a variety of vector data types: charn, intn, floatn ...<br>There are 9 basic types supported and 'n' can assume 6 different values. <br>
Moreover every vector type has an alias: cl_charn, cl_intn, ... and so on.<br>This will end up in 108 typedefs to add in the Preprocessor intialization phase. <br>Can this be a problem? <br>Is there a better way to suppor all this types ?<br>
<br>Thank you in advance,<br><br>Alberto<br>