opaque vector types?
Paolo Bonzini
bonzini@gnu.org
Wed May 6 09:08:00 GMT 2009
DJ Delorie wrote:
> Andrew Pinski <pinskia@gmail.com> writes:
>> You could do what the rs6000 back-end does for the altivec builtins
>> and resolve them while the parser is run (the SPU back-end does the
>> same thing too). Yes there are opaque vector types, you just use
>> build_opaque_vector_type instead of build_vector_type.
>
> Thanks, I'll look at those. Any way to prototype such functions in C ?
If the opaque vector type is exported as say __v4si_opaque__ that would
be simply
extern __v4si_opaque__ my_and (__v4si_opaque__, __v4si_opaque__);
Opaque vector types are not available via attributes, but that could be
easily added.
Paolo
More information about the Gcc
mailing list