@@ -125,16 +125,19 @@ class OpenMPIRBuilderConfig {
125
125
126
126
// / First separator used between the initial two parts of a name.
127
127
std::optional<StringRef> FirstSeparator;
128
- // / Separator used between all of the rest consecutive parts of s name
128
+ // / Separator used between all of the rest consecutive parts of s name.
129
129
std::optional<StringRef> Separator;
130
130
131
- // Grid Value for the GPU target
131
+ // Grid Value for the GPU target.
132
132
std::optional<omp::GV> GridValue;
133
133
134
134
// / When compilation is being done for the OpenMP host (i.e. `IsTargetDevice =
135
135
// / false`), this contains the list of offloading triples associated, if any.
136
136
SmallVector<Triple> TargetTriples;
137
137
138
+ // Default address space for the target.
139
+ unsigned DefaultTargetAS = 0 ;
140
+
138
141
LLVM_ABI OpenMPIRBuilderConfig ();
139
142
LLVM_ABI OpenMPIRBuilderConfig (bool IsTargetDevice, bool IsGPU,
140
143
bool OpenMPOffloadMandatory,
@@ -165,6 +168,8 @@ class OpenMPIRBuilderConfig {
165
168
return *GridValue;
166
169
}
167
170
171
+ unsigned getDefaultTargetAS () const { return DefaultTargetAS; }
172
+
168
173
bool hasRequiresFlags () const { return RequiresFlags; }
169
174
LLVM_ABI bool hasRequiresReverseOffload () const ;
170
175
LLVM_ABI bool hasRequiresUnifiedAddress () const ;
@@ -202,6 +207,7 @@ class OpenMPIRBuilderConfig {
202
207
void setFirstSeparator (StringRef FS) { FirstSeparator = FS; }
203
208
void setSeparator (StringRef S) { Separator = S; }
204
209
void setGridValue (omp::GV G) { GridValue = G; }
210
+ void setDefaultTargetAS (unsigned AS) { DefaultTargetAS = AS; }
205
211
206
212
LLVM_ABI void setHasRequiresReverseOffload (bool Value);
207
213
LLVM_ABI void setHasRequiresUnifiedAddress (bool Value);
0 commit comments