File tree Expand file tree Collapse file tree 17 files changed +107
-45
lines changed Expand file tree Collapse file tree 17 files changed +107
-45
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ enum class LangAS : unsigned {
59
59
// HLSL specific address spaces.
60
60
hlsl_groupshared,
61
61
hlsl_constant,
62
+ hlsl_private,
62
63
63
64
// Wasm specific address spaces.
64
65
wasm_funcref,
Original file line number Diff line number Diff line change @@ -2576,6 +2576,8 @@ std::string Qualifiers::getAddrSpaceAsString(LangAS AS) {
2576
2576
return " groupshared" ;
2577
2577
case LangAS::hlsl_constant:
2578
2578
return " hlsl_constant" ;
2579
+ case LangAS::hlsl_private:
2580
+ return " hlsl_private" ;
2579
2581
case LangAS::wasm_funcref:
2580
2582
return " __funcref" ;
2581
2583
default :
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ static const LangASMap FakeAddrSpaceMap = {
47
47
11 , // ptr32_uptr
48
48
12 , // ptr64
49
49
13 , // hlsl_groupshared
50
+ 14 , // hlsl_constant
51
+ 15 , // hlsl_private
50
52
20 , // wasm_funcref
51
53
};
52
54
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ static const unsigned ARM64AddrSpaceMap[] = {
45
45
static_cast <unsigned >(AArch64AddrSpace::ptr64),
46
46
0 , // hlsl_groupshared
47
47
0 , // hlsl_constant
48
+ 0 , // hlsl_private
48
49
// Wasm address space values for this target are dummy values,
49
50
// as it is only enabled for Wasm targets.
50
51
20 , // wasm_funcref
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ const LangASMap AMDGPUTargetInfo::AMDGPUDefIsGenMap = {
60
60
llvm::AMDGPUAS::FLAT_ADDRESS, // ptr64
61
61
llvm::AMDGPUAS::FLAT_ADDRESS, // hlsl_groupshared
62
62
llvm::AMDGPUAS::CONSTANT_ADDRESS, // hlsl_constant
63
+ llvm::AMDGPUAS::PRIVATE_ADDRESS, // hlsl_private
63
64
};
64
65
65
66
const LangASMap AMDGPUTargetInfo::AMDGPUDefIsPrivMap = {
@@ -85,6 +86,7 @@ const LangASMap AMDGPUTargetInfo::AMDGPUDefIsPrivMap = {
85
86
llvm::AMDGPUAS::FLAT_ADDRESS, // ptr64
86
87
llvm::AMDGPUAS::FLAT_ADDRESS, // hlsl_groupshared
87
88
llvm::AMDGPUAS::CONSTANT_ADDRESS, // hlsl_constant
89
+ llvm::AMDGPUAS::PRIVATE_ADDRESS, // hlsl_private
88
90
};
89
91
} // namespace targets
90
92
} // namespace clang
Original file line number Diff line number Diff line change @@ -33,16 +33,17 @@ static const unsigned DirectXAddrSpaceMap[] = {
33
33
0 , // cuda_constant
34
34
0 , // cuda_shared
35
35
// SYCL address space values for this map are dummy
36
- 0 , // sycl_global
37
- 0 , // sycl_global_device
38
- 0 , // sycl_global_host
39
- 0 , // sycl_local
40
- 0 , // sycl_private
41
- 0 , // ptr32_sptr
42
- 0 , // ptr32_uptr
43
- 0 , // ptr64
44
- 3 , // hlsl_groupshared
45
- 2 , // hlsl_constant
36
+ 0 , // sycl_global
37
+ 0 , // sycl_global_device
38
+ 0 , // sycl_global_host
39
+ 0 , // sycl_local
40
+ 0 , // sycl_private
41
+ 0 , // ptr32_sptr
42
+ 0 , // ptr32_uptr
43
+ 0 , // ptr64
44
+ 3 , // hlsl_groupshared
45
+ 2 , // hlsl_constant
46
+ 10 , // hlsl_private
46
47
// Wasm address space values for this target are dummy values,
47
48
// as it is only enabled for Wasm targets.
48
49
20 , // wasm_funcref
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ static const unsigned NVPTXAddrSpaceMap[] = {
47
47
0 , // ptr64
48
48
0 , // hlsl_groupshared
49
49
0 , // hlsl_constant
50
+ 0 , // hlsl_private
50
51
// Wasm address space values for this target are dummy values,
51
52
// as it is only enabled for Wasm targets.
52
53
20 , // wasm_funcref
Original file line number Diff line number Diff line change @@ -38,16 +38,17 @@ static const unsigned SPIRDefIsPrivMap[] = {
38
38
0 , // cuda_constant
39
39
0 , // cuda_shared
40
40
// SYCL address space values for this map are dummy
41
- 0 , // sycl_global
42
- 0 , // sycl_global_device
43
- 0 , // sycl_global_host
44
- 0 , // sycl_local
45
- 0 , // sycl_private
46
- 0 , // ptr32_sptr
47
- 0 , // ptr32_uptr
48
- 0 , // ptr64
49
- 0 , // hlsl_groupshared
50
- 2 , // hlsl_constant
41
+ 0 , // sycl_global
42
+ 0 , // sycl_global_device
43
+ 0 , // sycl_global_host
44
+ 0 , // sycl_local
45
+ 0 , // sycl_private
46
+ 0 , // ptr32_sptr
47
+ 0 , // ptr32_uptr
48
+ 0 , // ptr64
49
+ 0 , // hlsl_groupshared
50
+ 2 , // hlsl_constant
51
+ 10 , // hlsl_private
51
52
// Wasm address space values for this target are dummy values,
52
53
// as it is only enabled for Wasm targets.
53
54
20 , // wasm_funcref
@@ -70,18 +71,19 @@ static const unsigned SPIRDefIsGenMap[] = {
70
71
// cuda_constant pointer can be casted to default/"flat" pointer, but in
71
72
// SPIR-V casts between constant and generic pointers are not allowed. For
72
73
// this reason cuda_constant is mapped to SPIR-V CrossWorkgroup.
73
- 1 , // cuda_constant
74
- 3 , // cuda_shared
75
- 1 , // sycl_global
76
- 5 , // sycl_global_device
77
- 6 , // sycl_global_host
78
- 3 , // sycl_local
79
- 0 , // sycl_private
80
- 0 , // ptr32_sptr
81
- 0 , // ptr32_uptr
82
- 0 , // ptr64
83
- 0 , // hlsl_groupshared
84
- 0 , // hlsl_constant
74
+ 1 , // cuda_constant
75
+ 3 , // cuda_shared
76
+ 1 , // sycl_global
77
+ 5 , // sycl_global_device
78
+ 6 , // sycl_global_host
79
+ 3 , // sycl_local
80
+ 0 , // sycl_private
81
+ 0 , // ptr32_sptr
82
+ 0 , // ptr32_uptr
83
+ 0 , // ptr64
84
+ 0 , // hlsl_groupshared
85
+ 0 , // hlsl_constant
86
+ 10 , // hlsl_private
85
87
// Wasm address space values for this target are dummy values,
86
88
// as it is only enabled for Wasm targets.
87
89
20 , // wasm_funcref
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ static const unsigned ZOSAddressMap[] = {
43
43
0 , // ptr64
44
44
0 , // hlsl_groupshared
45
45
0 , // hlsl_constant
46
+ 0 , // hlsl_private
46
47
0 // wasm_funcref
47
48
};
48
49
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ static const unsigned TCEOpenCLAddrSpaceMap[] = {
52
52
0 , // ptr64
53
53
0 , // hlsl_groupshared
54
54
0 , // hlsl_constant
55
+ 0 , // hlsl_private
55
56
// Wasm address space values for this target are dummy values,
56
57
// as it is only enabled for Wasm targets.
57
58
20 , // wasm_funcref
You can’t perform that action at this time.
0 commit comments