Skip to content

Commit e2b66ef

Browse files
authored
[ESIMD] Remove documentation for SYCLSimdAccessorPtr attr w/o spelling. (#3058)
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent 74809e4 commit e2b66ef

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,13 +1180,17 @@ def SYCLRegisterNum : InheritableAttr {
11801180
let Documentation = [SYCLRegisterNumDocs];
11811181
}
11821182

1183-
// Used to mark ESIMD kernel pointer parameters originating from accessors.
1183+
// Used by FE to mark ESIMD kernel pointer parameters which correspond to the
1184+
// original lambda's captured accessors. FE turns the attribute to some metadata
1185+
// required by the ESIMD Back-End.
1186+
// Not supposed to be used directly in the source - SYCL device compiler FE
1187+
// automatically adds it for ESIMD kernels, hence undocumented.
11841188
def SYCLSimdAccessorPtr : InheritableAttr {
11851189
// No spelling, as this attribute can't be created in the source code.
11861190
let Spellings = [];
11871191
let Subjects = SubjectList<[ParmVar]>;
11881192
let LangOpts = [SYCLExplicitSIMD];
1189-
let Documentation = [SYCLSimdAccessorPtrDocs];
1193+
let Documentation = [Undocumented];
11901194
}
11911195

11921196
def SYCLScope : Attr {

clang/include/clang/Basic/AttrDocs.td

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,18 +380,6 @@ def SYCLRegisterNumDocs : Documentation {
380380
}];
381381
}
382382

383-
def SYCLSimdAccessorPtrDocs : Documentation {
384-
let Category = DocCatVariable;
385-
let Content = [{
386-
The ``__attribute__((esimd_acc_ptr))`` attribute is used by FE to mark ESIMD
387-
kernel pointer parameters which correspond to the original
388-
lambda's captured accessors. FE turns the attribute to some metadata
389-
required by the ESIMD Back-End.
390-
Not supposed to be used directly in the source - SYCL device compiler FE
391-
automatically adds it for ESIMD kernels.
392-
}];
393-
}
394-
395383
def C11NoReturnDocs : Documentation {
396384
let Category = DocCatFunction;
397385
let Content = [{

0 commit comments

Comments
 (0)