[PATCH] D11993: [CUDA] Make sure we emit all templated __global__ functions on device side. Again.

Eli Bendersky via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 12 14:44:37 PDT 2015


eliben accepted this revision.
eliben added a comment.

lgtm


================
Comment at: test/CodeGenCUDA/ptx-kernels.cu:26
@@ -16,1 +25,2 @@
 // CHECK: !{{[0-9]+}} = !{void ()* @global_function, !"kernel", i32 1}
+// CHECK: !{{[0-9]+}} = !{void (i32)* @_Z16templated_kernelIiEvT_, !"kernel", i32 1}
----------------
It't not clear what this metadata is part of? I'm guessing llvm.used, so maybe make that explicit with an earlier CHECK?


http://reviews.llvm.org/D11993





More information about the cfe-commits mailing list