@@ -1435,8 +1435,8 @@ Error ThinBackendProc::emitFiles(
1435
1435
}
1436
1436
1437
1437
namespace {
1438
- // Base class for ThinLTO backends that perform code generation and insert the
1439
- // generated files back into the link.
1438
+ // / Base class for ThinLTO backends that perform code generation and insert the
1439
+ // / generated files back into the link.
1440
1440
class CGThinBackend : public ThinBackendProc {
1441
1441
protected:
1442
1442
AddStreamFn AddStream;
@@ -1464,6 +1464,8 @@ class CGThinBackend : public ThinBackendProc {
1464
1464
}
1465
1465
};
1466
1466
1467
+ // / This backend performs code generation by scheduling a job to run on
1468
+ // / an in-process thread when invoked for each task.
1467
1469
class InProcessThinBackend : public CGThinBackend {
1468
1470
protected:
1469
1471
FileCache Cache;
@@ -2184,12 +2186,12 @@ std::vector<int> lto::generateModulesOrdering(ArrayRef<BitcodeModule *> R) {
2184
2186
}
2185
2187
2186
2188
namespace {
2187
- // For this out-of-process backend no codegen is done when invoked for each
2188
- // task. Instead we generate the required information (e.g. the summary index
2189
- // shard, import list, etc.. ) to allow for the codegen to be performed
2190
- // externally ( similar to WriteIndexesThinBackend). This backend's `wait`
2191
- // function then invokes an external distributor process to do backend
2192
- // compilations.
2189
+ // / This out-of-process backend does not perform code generation when invoked
2190
+ // / for each task. Instead, it generates the necessary information (e.g., the
2191
+ // / summary index shard, import list, etc.) to enable code generation to be
2192
+ // / performed externally, similar to WriteIndexesThinBackend. The backend's
2193
+ // / `wait` function then invokes an external distributor process to carry out
2194
+ // / the backend compilations.
2193
2195
class OutOfProcessThinBackend : public CGThinBackend {
2194
2196
using SString = SmallString<128 >;
2195
2197
0 commit comments