File tree Expand file tree Collapse file tree 4 files changed +13
-25
lines changed Expand file tree Collapse file tree 4 files changed +13
-25
lines changed Original file line number Diff line number Diff line change @@ -482,8 +482,8 @@ class Qualifiers {
482
482
(A == LangAS::opencl_generic && B != LangAS::opencl_constant) ||
483
483
// For USM extension we define usm_device and usm_host addres spaces,
484
484
// which are a subset of __global.
485
- (A == LangAS::opencl_global && (B == LangAS::opencl_usm_device ||
486
- B == LangAS::opencl_usm_host)) ||
485
+ (A == LangAS::opencl_global &&
486
+ (B == LangAS::opencl_usm_device || B == LangAS::opencl_usm_host)) ||
487
487
// Consider pointer size address spaces to be equivalent to default.
488
488
((isPtrSizeAddressSpace (A) || A == LangAS::Default) &&
489
489
(isPtrSizeAddressSpace (B) || B == LangAS::Default));
Original file line number Diff line number Diff line change @@ -3556,18 +3556,6 @@ those that access host memory.
3556
3556
}];
3557
3557
}
3558
3558
3559
- def OpenCLAddressSpaceGlobalHostDocs : Documentation {
3560
- let Category = DocOpenCLAddressSpaces;
3561
- let Heading = "[[clang::opencl_usm_host]]";
3562
- let Content = [{
3563
- The usm_host address space attribute specifies that an object is allocated in
3564
- global memory on host. It is supposed to be used only in SYCL headers and not in
3565
- the actual OpenCL/SYCL user code. It helps distinguishing USM pointers that
3566
- access host memory from those that access device memory and from accessors that
3567
- access global memory.
3568
- }];
3569
- }
3570
-
3571
3559
def OpenCLAddressSpaceLocalDocs : Documentation {
3572
3560
let Category = DocOpenCLAddressSpaces;
3573
3561
let Heading = "__local, local, [[clang::opencl_local]]";
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ static const unsigned NVPTXAddrSpaceMap[] = {
29
29
4 , // opencl_constant
30
30
0 , // opencl_private
31
31
// FIXME: generic has to be added to the target
32
- 0 , // opencl_generic
33
- 1 , // opencl_usm_device
34
- 1 , // opencl_usm_host
35
- 1 , // cuda_device
36
- 4 , // cuda_constant
37
- 3 , // cuda_shared
38
- 0 , // ptr32_sptr
39
- 0 , // ptr32_uptr
40
- 0 // ptr64
32
+ 0 , // opencl_generic
33
+ 1 , // opencl_usm_device
34
+ 1 , // opencl_usm_host
35
+ 1 , // cuda_device
36
+ 4 , // cuda_constant
37
+ 3 , // cuda_shared
38
+ 0 , // ptr32_sptr
39
+ 0 , // ptr32_uptr
40
+ 0 // ptr64
41
41
};
42
42
43
43
// / The DWARF address class. Taken from
Original file line number Diff line number Diff line change 3
3
void bar (int & Data) {}
4
4
void bar2 (int & Data) {}
5
5
void bar (__attribute__((opencl_private)) int & Data) {}
6
- void bar3 (__attribute__((opencl_global)) int & Data) {}
6
+ void bar3 (__attribute__((opencl_global)) int & Data) {}
7
7
void foo (int * Data) {}
8
8
void foo2 (int * Data) {}
9
9
void foo (__attribute__((opencl_private)) int * Data) {}
10
- void foo3 (__attribute__((opencl_global)) int * Data) {}
10
+ void foo3 (__attribute__((opencl_global)) int *Data) {}
11
11
12
12
template <typename T>
13
13
void tmpl (T *t){}
You can’t perform that action at this time.
0 commit comments