[cfe-dev] is opencl-style select function supported?
Jochen Wilhelmy
j.wilhelmy at arcor.de
Tue Sep 21 01:20:33 PDT 2010
On 21.09.2010 00:43, Nate Begeman wrote:
> 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:
>
>
thanks for solving this problem fast, but i wonder why you do something like
result = c & a | ~c & a
instead of using the llvm select instruction, i.e.
Builder.CreateSelect(TestMSB, LHS, RHS, "select");
I also would suggest that this depends on the Altivec option instead of
OpenCL.
I'd like to use vectors with C++ and therefore enable Altivec. Then I
would expect
the vectorized ? : operator to work.
-Jochen
More information about the cfe-dev
mailing list