@@ -108,11 +108,11 @@ class Compilation {
108
108
DiagnosticEngine &Diags;
109
109
110
110
// / The ToolChain this Compilation was built with, that it may reuse to build
111
- // / subsequent BatchJobs .
111
+ // / subsequent Jobs .
112
112
const ToolChain &TheToolChain;
113
113
114
114
// / The OutputInfo, which the Compilation stores a copy of upon
115
- // / construction, and which it may use to build subsequent batch
115
+ // / construction, and which it may use to build subsequent
116
116
// / jobs itself.
117
117
OutputInfo TheOutputInfo;
118
118
@@ -167,22 +167,6 @@ class Compilation {
167
167
// / even if they returned an error status.
168
168
bool ContinueBuildingAfterErrors = false ;
169
169
170
- // / Indicates whether groups of parallel frontend jobs should be merged
171
- // / together and run in composite "batch jobs" when possible, to reduce
172
- // / redundant work.
173
- const bool EnableBatchMode;
174
-
175
- // / Provides a randomization seed to batch-mode partitioning, for debugging.
176
- const unsigned BatchSeed;
177
-
178
- // / Overrides parallelism level and \c BatchSizeLimit, sets exact
179
- // / count of batches, if in batch-mode.
180
- const std::optional<unsigned > BatchCount;
181
-
182
- // / Overrides maximum batch size, if in batch-mode and not overridden
183
- // / by \c BatchCount.
184
- const std::optional<unsigned > BatchSizeLimit;
185
-
186
170
// / True if temporary files should not be deleted.
187
171
const bool SaveTemps;
188
172
@@ -244,10 +228,6 @@ class Compilation {
244
228
std::unique_ptr<llvm::opt::DerivedArgList> TranslatedArgs,
245
229
InputFileList InputsWithTypes,
246
230
size_t FilelistThreshold,
247
- bool EnableBatchMode = false ,
248
- unsigned BatchSeed = 0 ,
249
- std::optional<unsigned > BatchCount = std::nullopt ,
250
- std::optional<unsigned > BatchSizeLimit = std::nullopt ,
251
231
bool SaveTemps = false ,
252
232
bool ShowDriverTimeCompilation = false ,
253
233
std::unique_ptr<UnifiedStatsReporter> Stats = nullptr ,
@@ -302,10 +282,6 @@ class Compilation {
302
282
return DerivedOutputFileMap;
303
283
}
304
284
305
- bool getBatchModeEnabled () const {
306
- return EnableBatchMode;
307
- }
308
-
309
285
bool getContinueBuildingAfterErrors () const {
310
286
return ContinueBuildingAfterErrors;
311
287
}
@@ -352,14 +328,6 @@ class Compilation {
352
328
return Level;
353
329
}
354
330
355
- unsigned getBatchSeed () const {
356
- return BatchSeed;
357
- }
358
-
359
- std::optional<unsigned > getBatchCount () const { return BatchCount; }
360
-
361
- std::optional<unsigned > getBatchSizeLimit () const { return BatchSizeLimit; }
362
-
363
331
// / Requests the path to a file containing all input source files. This can
364
332
// / be shared across jobs.
365
333
// /
@@ -399,7 +367,7 @@ class Compilation {
399
367
// / Unfortunately the success or failure of a Swift compilation is currently
400
368
// / sensitive to the order in which files are processed, at least in terms of
401
369
// / the order of processing extensions (and likely other ways we haven't
402
- // / discovered yet). So long as this is true, we need to make sure any batch
370
+ // / discovered yet). So long as this is true, we need to make sure any
403
371
// / job we build names its inputs in an order that's a subsequence of the
404
372
// / sequence of inputs the driver was initially invoked with.
405
373
// /
0 commit comments