================
@@ -12222,8 +12222,17 @@ bool Sema::CheckFunctionDeclaration(Scope *S, 
FunctionDecl *NewFD,
             << NewFD;
     }
 
-    if (!Redeclaration && LangOpts.CUDA)
+    if (!Redeclaration && LangOpts.CUDA) {
----------------
akshayrdeodhar wrote:

Makes sense. I also realized that you'd already addressed this in the 
description 🙂 
> One notable difference from NVCC is that the attribute can be used regardless 
> of the targeted GPU. On the older GPUs it will just be ignored. The attribute 
> is a performance hint, and does not warrant a hard error if compiler can't 
> benefit from it on a particular GPU variant.

https://github.com/llvm/llvm-project/pull/114589
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to