[cfe-dev] OpenCL vec_step feature implementation

Anton Lokhmotov Anton.Lokhmotov at arm.com
Wed Feb 16 02:01:22 PST 2011


> > In fact, vec_step is also used in AltiVec (see PIM 2.5.3, where it is
> > properly called an operator).
> Exactly! vec_step for AltiVec can be simply implemented in the header
> via overloaded functions but the suggested implementation is more
> correct.
Yes, an overloaded function can operate on a variable of a type, not just on a type.

> > Perhaps UnaryOperatorOnExprOrType?
> Or UnaryOpOnExprOrType? :)

Anton.


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.





More information about the cfe-dev mailing list