[cfe-dev] How to declare a function that accept pointer to any type

Song, Ruiling via cfe-dev cfe-dev at lists.llvm.org
Tue Dec 29 00:04:02 PST 2015


Hello,

I am working on OpenCL 2.0 implementation.
In OpenCL 2.0, there are functions like:
__local T * to_local(T *p)
__global T *to_global(T *p)

Here T can be any builtin type or user defined type.
How to make declaration of such kind of function in a header file?

Thanks!
Ruiling




More information about the cfe-dev mailing list