[cfe-dev] On which option should vector operator ? : depend?

Jochen Wilhelmy j.wilhelmy at arcor.de
Tue Oct 5 04:24:11 PDT 2010


Hi!

for me it's just that I need some way to generate the vectorized llvm 
select instruction from clang in c++ mode.
as opencl uses ? : for this, i would suggest that this always works on 
ext_vector_type.
if this is not acceptable for some reason then a separate flag could be 
introduced that can be used to enable
vector ? : in c++ mode. i think it's not possible to enable c++ and 
opencl at the same time.

the vector minimum

vec1<  vec2 ? vec1 : vec2

is a good example of what i'd like to achieve.

-jochen





More information about the cfe-dev mailing list