DJ Delorie wrote: > Andrew Pinski <pins...@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