[LLVMdev] NVPTX annotation metadata emission

Alberto Magni alberto.magni86 at gmail.com
Mon May 7 06:09:03 PDT 2012


Hi everybody,

I have noticed that the new NVPTX backend requires new metadata to identify
the kernels in the module:

define void @metadata_kernel(float* %a) {
  ret void
}

!nvvm.annotations = !{!1}
!1 = metadata !{void (float*)* @metadata_kernel, metadata !"kernel", i32 1}

Is clang going to support the emission of this metadata soon ? Or do I have
to write it on my own ? :)

Thanks,
Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120507/8b7b83d2/attachment.html>


More information about the llvm-dev mailing list