File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1454,7 +1454,7 @@ def CUDAGridConstant : InheritableAttr {
1454
1454
let Spellings = [GNU<"grid_constant">, Declspec<"__grid_constant__">];
1455
1455
let Subjects = SubjectList<[ParmVar]>;
1456
1456
let LangOpts = [CUDA];
1457
- let Documentation = [Undocumented ];
1457
+ let Documentation = [CUDAGridConstantAttrDocs ];
1458
1458
}
1459
1459
1460
1460
def NVPTXKernel : InheritableAttr, TargetSpecificAttr<TargetNVPTX> {
Original file line number Diff line number Diff line change @@ -6620,6 +6620,16 @@ unbind runtime APIs.
6620
6620
}];
6621
6621
}
6622
6622
6623
+ def CUDAGridConstantAttrDocs : Documentation {
6624
+ let Category = DocCatDecl;
6625
+ let Content = [{
6626
+ The ``__grid_constant__`` attribute can be applied to a ``const``-qualified kernel
6627
+ function argument and allows compiler to take the address of that argument without
6628
+ making a copy. The argument applies to sm_70 or newer GPUs, during compilation
6629
+ with CUDA-11.7(PTX 7.7) or newer, and is ignored otherwise.
6630
+ }];
6631
+ }
6632
+
6623
6633
def HIPManagedAttrDocs : Documentation {
6624
6634
let Category = DocCatDecl;
6625
6635
let Content = [{
You can’t perform that action at this time.
0 commit comments