[PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.
Jan Vesely via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 23 12:04:17 PDT 2016
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
More information about the cfe-commits
mailing list