Skip to content

Commit 71a56e7

Browse files
authored
[NFC][SYCL] Remove doc for buffer_location attribute (#2273)
Speling-less attributes can't have a documentation. That is unfortunate. Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent c4c3494 commit 71a56e7

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ def SYCLIntelBufferLocation : InheritableAttr {
11931193
let Spellings = [];
11941194
let Args = [UnsignedArgument<"LocationID">];
11951195
let LangOpts = [SYCLIsDevice, SYCLIsHost];
1196-
let Documentation = [SYCLIntelBufferLocationAttrDocs];
1196+
let Documentation = [Undocumented];
11971197
}
11981198

11991199
def SYCLIntelKernelArgsRestrict : InheritableAttr {

clang/include/clang/Basic/AttrDocs.td

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,25 +1994,6 @@ can be lowered.
19941994
}];
19951995
}
19961996

1997-
def SYCLIntelBufferLocationAttrDocs : Documentation {
1998-
let Category = DocCatFunction;
1999-
let Heading = "kernel_args_buffer_location";
2000-
let Content = [{
2001-
This attribute is implicitly added to OpenCL pointer kernel parameters generated
2002-
from a SYCL kernel object. It lacks a spelling, as it is not intended to be used
2003-
by the programmer.
2004-
2005-
This attribute causes clang to generate metadata on the OpenCL kernel containing
2006-
the number of kernel parameters. The metadata contains an integer that is set
2007-
according to the values passed through the ``accessor`` property
2008-
``buffer_location``. These values are mapped to the actual locations of the
2009-
global buffers (such as DDR, QDR, etc) and applied to pointer kernel parameters.
2010-
Number of metadata arguments is the same as a number of kernel parameters, so
2011-
any parameter that isn't an ``accessor`` with ``buffer_location`` property is
2012-
annotated by '-1' in the metadata node.
2013-
}];
2014-
}
2015-
20161997
def SYCLIntelKernelArgsRestrictDocs : Documentation {
20171998
let Category = DocCatVariable;
20181999
let Heading = "kernel_args_restrict";

0 commit comments

Comments
 (0)