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