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

Jochen Wilhelmy j.wilhelmy at arcor.de
Mon Sep 20 08:28:43 PDT 2010


> 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




More information about the cfe-dev mailing list