File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1296,12 +1296,12 @@ def OpenCLGlobalAddressSpace : TypeAttr {
1296
1296
1297
1297
def OpenCLUSMDeviceAddressSpace : TypeAttr {
1298
1298
let Spellings = [Clang<"opencl_usm_device">];
1299
- let Documentation = [OpenCLAddressSpaceGlobalDeviceDocs ];
1299
+ let Documentation = [OpenCLUSMAddressSpacesDocs ];
1300
1300
}
1301
1301
1302
1302
def OpenCLUSMHostAddressSpace : TypeAttr {
1303
1303
let Spellings = [Clang<"opencl_usm_host">];
1304
- let Documentation = [OpenCLAddressSpaceGlobalHostDocs ];
1304
+ let Documentation = [OpenCLUSMAddressSpacesDocs ];
1305
1305
}
1306
1306
1307
1307
def OpenCLLocalAddressSpace : TypeAttr {
Original file line number Diff line number Diff line change @@ -3545,15 +3545,14 @@ scope) variables and static local variable as well.
3545
3545
}];
3546
3546
}
3547
3547
3548
- def OpenCLAddressSpaceGlobalDeviceDocs : Documentation {
3548
+ def OpenCLUSMAddressSpacesDocs : Documentation {
3549
3549
let Category = DocOpenCLAddressSpaces;
3550
- let Heading = "[[clang::opencl_usm_device]]";
3550
+ let Heading = "[[clang::opencl_usm_device]], [[clang::opencl_usm_host]] ";
3551
3551
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.
3557
3556
}];
3558
3557
}
3559
3558
You can’t perform that action at this time.
0 commit comments