@@ -108,11 +108,11 @@ class Compilation {
108108 DiagnosticEngine &Diags;
109109
110110 // / The ToolChain this Compilation was built with, that it may reuse to build
111- // / subsequent BatchJobs .
111+ // / subsequent Jobs .
112112 const ToolChain &TheToolChain;
113113
114114 // / 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
116116 // / jobs itself.
117117 OutputInfo TheOutputInfo;
118118
@@ -167,22 +167,6 @@ class Compilation {
167167 // / even if they returned an error status.
168168 bool ContinueBuildingAfterErrors = false ;
169169
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-
186170 // / True if temporary files should not be deleted.
187171 const bool SaveTemps;
188172
@@ -244,10 +228,6 @@ class Compilation {
244228 std::unique_ptr<llvm::opt::DerivedArgList> TranslatedArgs,
245229 InputFileList InputsWithTypes,
246230 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 ,
251231 bool SaveTemps = false ,
252232 bool ShowDriverTimeCompilation = false ,
253233 std::unique_ptr<UnifiedStatsReporter> Stats = nullptr ,
@@ -302,10 +282,6 @@ class Compilation {
302282 return DerivedOutputFileMap;
303283 }
304284
305- bool getBatchModeEnabled () const {
306- return EnableBatchMode;
307- }
308-
309285 bool getContinueBuildingAfterErrors () const {
310286 return ContinueBuildingAfterErrors;
311287 }
@@ -352,14 +328,6 @@ class Compilation {
352328 return Level;
353329 }
354330
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-
363331 // / Requests the path to a file containing all input source files. This can
364332 // / be shared across jobs.
365333 // /
@@ -399,7 +367,7 @@ class Compilation {
399367 // / Unfortunately the success or failure of a Swift compilation is currently
400368 // / sensitive to the order in which files are processed, at least in terms of
401369 // / 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
403371 // / job we build names its inputs in an order that's a subsequence of the
404372 // / sequence of inputs the driver was initially invoked with.
405373 // /
0 commit comments