jvesely added a comment.

In http://reviews.llvm.org/D19932#465807, @yaxunl wrote:

> > this is not true. as I pointed out earlier, take a look at libclc headers. 
> > a lot functions are defined for multiple types while maintaining type 
> > safety.
>
> >  there is no problem having TYPE * to_global(TYPE *), for every permissible 
> > CLC type, declared in headers without any builtin.
>
>
> This function allows user defined types. How do you declare that in a header 
> file?


ah, now it makes sense, thanks. the void* argument let me astray.
I'd say you can still do it using //typeof//, but I see how builtin would be 
preferable to that.


Repository:
  rL LLVM

http://reviews.llvm.org/D19932



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to