Skip to content

Commit 5a3067e

Browse files
[gardening] Fix plural issues.
1 parent fca1834 commit 5a3067e

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

Diff for: docs/SIL.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ IR.
109109
functions. Then it rewrites all specialized usages of the generic
110110
to a direct call of the appropriate specialized function.
111111
- **Witness and VTable Devirtualization** for a given type looks up
112-
the associated method from a class's vtable or a types witness table
112+
the associated method from a class's vtable or a type witness table
113113
and replaces the indirect virtual call with a call to the mapped
114114
function.
115115
- **Performance Inlining**

Diff for: docs/proposals/WholeModuleOptimization.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function individually based on those results.
102102

103103
**TBD: Do we really need SCC transforms at all, or is it sufficient to
104104
simply have function transforms that are always passed an SCC, and
105-
have them ask for the results of an analyses for the entire SCC and
105+
have them ask for the results of an analysis for the entire SCC and
106106
then iterate over all functions in the SCC?**
107107

108108
In some cases we have transforms that generate new work in a top-down

Diff for: docs/proposals/archive/ProgramStructureAndCompilationModel.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ components (similar to clang -F or -L) etc. We'll also support a "clean" command
255255
that nukes buildcache/ and products/.
256256

257257
The BuildCache directory holds object files, dependence information and other
258-
stuff needed for incremental [re]builds within the component The generated
259-
manifest file is used both the compiler when a clients lib/app import mylib (it
258+
stuff needed for incremental [re]builds within the component. The generated
259+
manifest file is used by the compiler when a client lib/app import mylib (it
260260
contains type information for all the stuff exported from mylib) but also at
261-
runtime by the runtime library (e.g. for reflection). It needs to be a
261+
runtime by the runtime library (e.g. for reflection). It needs to be a
262262
fast-to-read but extensible format.
263263

264264
What the build system does, how it works

Diff for: include/swift/Frontend/FrontendOptions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class FrontendOptions {
112112
/// The path to which we should output a Swift reference dependencies file.
113113
std::string ReferenceDependenciesFilePath;
114114

115-
/// The path to which we should output a fixits as source edits.
115+
/// The path to which we should output fixits as source edits.
116116
std::string FixitsOutputPath;
117117

118118
/// Arguments which should be passed in immediate mode.

Diff for: include/swift/SIL/SILArgument.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ SILFunctionType::getSILArgumentConvention(unsigned index) const {
7777

7878
enum class InoutAliasingAssumption {
7979
/// Assume that an inout indirect parameter may alias other objects.
80-
/// This is the safe assumption an optimizations should make if it may break
80+
/// This is the safe assumption an optimization should make if it may break
8181
/// memory safety in case the inout aliasing rule is violation.
8282
Aliasing,
8383

Diff for: lib/LLVMPasses/LLVMMergeFunctions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class FunctionComparator {
205205
/// Let's explain the order. Float numbers will be less than integers, just
206206
/// because of cmpType terms: FloatTyID < IntegerTyID.
207207
/// Floats (with same fltSemantics) are sorted according to their value.
208-
/// Then you can see integers, and they are, like a floats,
208+
/// Then you can see integers, and they are, like floats, which
209209
/// could be easy sorted among each others.
210210
/// The structures. Structures are grouped at the tail, again because of their
211211
/// TypeID: StructTyID > IntegerTyID > FloatTyID.

Diff for: lib/SILOptimizer/Analysis/ARCAnalysis.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ void
722722
ConsumedArgToEpilogueReleaseMatcher::
723723
processMatchingReleases() {
724724
llvm::DenseSet<SILArgument *> ArgToRemove;
725-
// If we can not find a releases for all parts with reference semantics
726-
// that means we did not find all release for the base.
725+
// If we can not find a release for all parts with reference semantics
726+
// that means we did not find all releases for the base.
727727
for (auto Arg : ArgInstMap) {
728728
// If an argument has a single release and it is rc-identical to the
729729
// SILArgument. Then we do not need to use projection to check for whether

Diff for: lib/SILOptimizer/Transforms/DeadCodeElimination.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class DCE : public SILFunctionTransform {
112112
auto* DA = PM->getAnalysis<PostDominanceAnalysis>();
113113
PDT = DA->get(F);
114114

115-
// If we have a functions that consists of nothing but a
115+
// If we have a function that consists of nothing but a
116116
// structurally infinite loop like:
117117
// while true {}
118118
// we'll have an empty post dominator tree.

Diff for: stdlib/public/core/Unmanaged.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public struct Unmanaged<Instance : AnyObject> {
139139
/// }
140140
/// }
141141
///
142-
/// The last rule applies transitively through a chains of stored references
142+
/// The last rule applies transitively through a chain of stored references
143143
/// and nested structs.
144144
///
145145
/// Examples:

Diff for: utils/cmpcodesize/cmpcodesize/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def main():
6666
cmpcodesize test.o newversion.o
6767
6868
4) Two lists of files, separated by '--':
69-
Compares a set a files.
69+
Compares a set of files.
7070
Example:
7171
cmpcodesize olddir/*.o -- newdir/*.o
7272

0 commit comments

Comments
 (0)