[PATCH] D27636: [NVPTX] Move PropertyAnnotationNames into a cc file.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 14:35:49 PST 2016

tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.


Comment at: llvm/lib/Target/NVPTX/NVPTXUtilities.cpp:270-271
   unsigned x = 0;
-  bool retval = llvm::findOneNVVMAnnotation(
-      &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISKERNEL_FUNCTION], x);
+  bool retval = llvm::findOneNVVMAnnotation(&F, "kernel", x);
   if (!retval) {
     // There is no NVVM metadata, check the calling convention
if (findOneNVVMAnnotation()) ... ? Here and in getAlign() below?


More information about the llvm-commits mailing list