[LLVMdev] Function-level metadata for OpenCL (was Re: OpenCL support)
David Neto
dneto.llvm at gmail.com
Mon Dec 20 12:28:26 PST 2010
On Mon, Dec 20, 2010 at 3:11 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> On Fri, Dec 17, 2010 at 04:21:18PM -0500, David Neto wrote:
>> I would be happy to see an OpenCL-specific patch that always marked
>> non-kernel functions with internal linkage. Then you could
>> distinguish the kernel/non-kernel case just by the linkage attribute.
>> It might be a little unclean / unorthogonal, but I think it would be
>> ok.
>
> Some OpenCL implementations (including my own) may use runtime library
> functions which live in a separate compilation unit. These would
> need to be marked external but of course would not be kernel functions.
I stand corrected. :-)
thanks,
david
More information about the llvm-dev
mailing list