Skip to content

Commit c3bbb1b

Browse files
committed
Apply suggestions in doc
Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
1 parent 5580c23 commit c3bbb1b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,12 +1296,12 @@ def OpenCLGlobalAddressSpace : TypeAttr {
12961296

12971297
def OpenCLUSMDeviceAddressSpace : TypeAttr {
12981298
let Spellings = [Clang<"opencl_usm_device">];
1299-
let Documentation = [OpenCLAddressSpaceGlobalDeviceDocs];
1299+
let Documentation = [OpenCLUSMAddressSpacesDocs];
13001300
}
13011301

13021302
def OpenCLUSMHostAddressSpace : TypeAttr {
13031303
let Spellings = [Clang<"opencl_usm_host">];
1304-
let Documentation = [OpenCLAddressSpaceGlobalHostDocs];
1304+
let Documentation = [OpenCLUSMAddressSpacesDocs];
13051305
}
13061306

13071307
def OpenCLLocalAddressSpace : TypeAttr {

clang/include/clang/Basic/AttrDocs.td

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,15 +3545,14 @@ scope) variables and static local variable as well.
35453545
}];
35463546
}
35473547

3548-
def OpenCLAddressSpaceGlobalDeviceDocs : Documentation {
3548+
def OpenCLUSMAddressSpacesDocs : Documentation {
35493549
let Category = DocOpenCLAddressSpaces;
3550-
let Heading = "[[clang::opencl_usm_device]]";
3550+
let Heading = "[[clang::opencl_usm_device]], [[clang::opencl_usm_host]]";
35513551
let Content = [{
3552-
The usm_device address space attribute specifies that an object is allocated
3553-
in global memory on device. It is supposed to be used only in SYCL headers and
3554-
not in the actual OpenCL/SYCL user code. It helps distinguishing USM pointers
3555-
that access device memory and accessors that access global memory from those
3556-
that access host memory.
3552+
The (usm_device) and (usm_host) address space attributes specify that an object
3553+
is allocated in global memory on the device/host. It helps distinguishing USM
3554+
pointers that access device memory and accessors that access global memory from
3555+
those that access host memory.
35573556
}];
35583557
}
35593558

0 commit comments

Comments
 (0)