[cfe-dev] PowerPC AltiVec support in clang

Chris Lattner clattner at apple.com
Wed Mar 24 09:52:31 PDT 2010


On Mar 24, 2010, at 7:27 AM, David Chisnall wrote:

> On 24 Mar 2010, at 09:40, Anton Korobeynikov wrote:
> 
>> Hi, David
>> 
>>> Do we need builtins for the vector add / subtract / multiply / divide operations on AltiVec?
>> Yes. We need to support gcc builtins regardless of altivec.h inclusion.
> 
> Would not the implicit inclusion of a header when -faltivec is passed (as is done with OpenCL) solve this problem?

Yep, this is the way to go.  We don't want to add a bunch of builtins that should be defined in the header.

-Chris



More information about the cfe-dev mailing list