[PATCH] D11774: [NVPTX] Use LDG for pointer induction variables

Jingyue Wu jingyue at google.com
Wed Aug 5 15:39:44 PDT 2015


jingyue added inline comments.

================
Comment at: test/CodeGen/NVPTX/load-with-non-coherent-cache.ll:243
@@ -193,1 +242,3 @@
+
+!nvvm.annotations = !{!1 ,!2 ,!3 ,!4 ,!5 ,!6, !7 ,!8 ,!9 ,!10 ,!11 ,!12, !13, !14, !15, !16, !17, !18, !19}
 !1 = !{void (float *, float *)* @foo1, !"kernel", i32 1}
----------------
FYI, adding the keyword ptx_kernel to the function definition also makes `isKernelFunction` to return true. In that way, you don't need a long list of metadata. I noticed that only recently. 


http://reviews.llvm.org/D11774





More information about the llvm-commits mailing list