[clang] [CUDA] Add support for __grid_constant__ attribute (PR #114589)

Akshay Deodhar via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 11:13:03 PST 2024


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

Is it possible to add a check for sm70+ for grid_constant here?

https://github.com/llvm/llvm-project/pull/114589


More information about the cfe-commits mailing list