[cfe-dev] is opencl-style select function supported?

Nate Begeman nbegeman at apple.com
Mon Sep 20 15:43:00 PDT 2010


http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100920/034760.html

On Sep 20, 2010, at 10:51 AM, Nate Begeman wrote:

> This is a bug in clang missing support for this OpenCL syntax.  
> 
> On Sep 20, 2010, at 8:28 AM, Jochen Wilhelmy wrote:
> 
>> 
>>> Are you referring to the OpenCL "vec.xyzw" syntax? If so, it's implemented in Clang and is represented by ExtVectorElementExpr.
>>> 
>> 
>> no, i mean something like
>> float4 a,b,c,d;
>> float4 e = select(a, b, c < d);
>> 
>> clang does not seem to support
>> float4 e = c < d ? a : b;
>> for vectors, or is there a flag to switch this on?
>> 
>> -Jochen
>> 
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list