[PATCH] D73651: [OpenCL][CUDA][HIP] Add norecurse

Alexey Bader via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 29 11:49:33 PST 2020


bader added inline comments.


================
Comment at: clang/lib/CodeGen/CodeGenFunction.cpp:923
+    if ((getLangOpts().CPlusPlus && FD->isMain()) || getLangOpts().OpenCL ||
+        (getLangOpts().CUDA && FD->hasAttr<CUDAGlobalAttr>()))
+      Fn->addFnAttr(llvm::Attribute::NoRecurse);
----------------
SYCL doesn't support recursion neither. Does it make sense to add it too?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73651/new/

https://reviews.llvm.org/D73651





More information about the cfe-commits mailing list