[PATCH] D20979: [OpenCL] Use function metadata to represent kernel attributes

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 20 08:10:16 PDT 2016

yaxunl added inline comments.

Comment at: test/CodeGenOpenCL/kernel-attributes.cl:9
@@ -8,3 +10,1 @@
-// CHECK: opencl.kernels = !{[[MDNODE0:![0-9]+]], [[MDNODE3:![0-9]+]]}
bader wrote:
> AFAIK, this named metadata node were also useful for kernel functions traversal.
> What is the new BKM to differentiate kernel/non-kernel functions?
> Check for !kernel_arg_* function attribute?
I think it could be used for that purpose, since kernel functions and only kernel functions have this function attribute.


More information about the cfe-commits mailing list