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

Alexey Bader via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 20 07:56:40 PDT 2016


bader accepted this revision.
bader added a comment.

LGTM.


================
Comment at: test/CodeGenOpenCL/kernel-attributes.cl:9
@@ -8,3 +10,1 @@
 
-// CHECK: opencl.kernels = !{[[MDNODE0:![0-9]+]], [[MDNODE3:![0-9]+]]}
-
----------------
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?


http://reviews.llvm.org/D20979





More information about the cfe-commits mailing list