Skip to content

Commit 63e059d

Browse files
[llvm] Proofread *.rst (#168185)
This patch is limited to single-word replacements to fix spelling and/or grammar to ease the review process. Punctuation and markdown fixes are specifically excluded.
1 parent 268ea1a commit 63e059d

16 files changed

+31
-31
lines changed

llvm/docs/HowToBuildWindowsItaniumPrograms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ headers or additional runtime machinery (such as is used by mingw).
1313

1414
Windows Itanium Stack:
1515

16-
* Uses the Itanium C++ abi.
16+
* Uses the Itanium C++ ABI.
1717
* libc++.
1818
* libc++-abi.
1919
* libunwind.
@@ -75,7 +75,7 @@ It is also possible to cross-compile from Linux.
7575

7676
To build the libraries in step 2, refer to the `libc++ documentation <https://libcxx.llvm.org/VendorDocumentation.html#the-default-build>`_.
7777

78-
The next section discuss the salient options and modifications required for building and installing the
78+
The next section discusses the salient options and modifications required for building and installing the
7979
libraries. This assumes that we are building libunwind and libc++ as DLLs and statically linking libc++abi
8080
into libc++. Other build configurations are possible, but they are not discussed here.
8181

llvm/docs/HowToUpdateDebugInfo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ memory access occurred.
9595
To maintain distinct source locations for SamplePGO, it is often beneficial to
9696
retain an arbitrary but deterministic location instead of discarding line and
9797
column information as part of merging. In particular, loss of location
98-
information for calls inhibit optimizations such as indirect call promotion.
98+
information for calls inhibits optimizations such as indirect call promotion.
9999
This behavior can be optionally enabled until support for accurately
100100
representing merged instructions in the line table is implemented.
101101

llvm/docs/HowToUseInstrMappings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ depending on some input flag, ``inPredSense``. The first step in the process is
6767
to define a relationship model that relates predicated instructions to their
6868
non-predicated form by assigning appropriate values to the ``InstrMapping``
6969
fields. For this relationship, non-predicated instructions are treated as key
70-
instruction since they are the one used to query the interface function.
70+
instruction since they are the ones used to query the interface function.
7171

7272
.. code-block:: text
7373

llvm/docs/InstrProfileFormat.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ of all the sections ahead of it.
8080

8181
.. note::
8282
Sections might be padded to meet specific alignment requirements. For
83-
simplicity, header fields and data sections solely for padding purpose are
83+
simplicity, header fields and data sections solely for padding purposes are
8484
omitted in the data layout graph above and the rest of this document.
8585

8686
Header
@@ -195,7 +195,7 @@ The fields are documented as follows:
195195

196196
``FuncHash``
197197
A checksum of the function's IR, taking control flow graph and instrumented
198-
value sites into accounts. See `computeCFGHash`_ for details.
198+
value sites into account. See `computeCFGHash`_ for details.
199199

200200
.. _`computeCFGHash`: https://github.com/llvm/llvm-project/blob/7c3b67d2038cfb48a80299089f6a1308eee1df7f/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp#L616-L685
201201

@@ -210,7 +210,7 @@ The fields are documented as follows:
210210
.. _`commit a1532ed`: https://github.com/llvm/llvm-project/commit/a1532ed27582038e2d9588108ba0fe8237f01844
211211

212212
.. note::
213-
``CounterPtr`` might represent a different value for non-IRPGO use case. For
213+
``CounterPtr`` might represent a different value for non-IRPGO use cases. For
214214
example, for `binary profile correlation`_, it represents the absolute address of counter.
215215
When in doubt, check source code.
216216

@@ -221,7 +221,7 @@ The fields are documented as follows:
221221
corresponding bitmap.
222222

223223
.. note::
224-
Similar to `CounterPtr`_, this field may represent a different value for non-IRPGO use case.
224+
Similar to `CounterPtr`_, this field may represent a different value for non-IRPGO use cases.
225225

226226
``FunctionPointer``
227227
Records the function address when instrumented binary runs. This is used to

llvm/docs/KernelInfo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ KernelInfo
88
Introduction
99
============
1010

11-
This LLVM IR pass reports various statistics for codes compiled for GPUs. The
11+
This LLVM IR pass reports various statistics for code compiled for GPUs. The
1212
goal of these statistics is to help identify bad code patterns and ways to
1313
mitigate them. The pass operates at the LLVM IR level so that it can, in
1414
theory, support any LLVM-based compiler for programming languages supporting

llvm/docs/LangRef.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ added in the future:
439439
"``preserve_allcc``" - The `PreserveAll` calling convention
440440
This calling convention attempts to make the code in the caller even less
441441
intrusive than the `PreserveMost` calling convention. This calling
442-
convention also behaves identical to the `C` calling convention on how
442+
convention also behaves identically to the `C` calling convention on how
443443
arguments and return values are passed, but it uses a different set of
444444
caller/callee-saved registers. This removes the burden of saving and
445445
recovering a large register set before and after the call in the caller. If
@@ -479,7 +479,7 @@ added in the future:
479479
preserving as many registers as possible (all the registers that are
480480
preserved on the fast path, composed of the entry and exit blocks).
481481

482-
This calling convention behaves identical to the `C` calling convention on
482+
This calling convention behaves identically to the `C` calling convention on
483483
how arguments and return values are passed, but it uses a different set of
484484
caller/callee-saved registers.
485485

llvm/docs/Lexicon.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ C
5757
This abbreviation has two meanings.
5858
Either:
5959
Call Frame Information. Used in DWARF debug info and in C++ unwind info
60-
to show how the function prolog lays out the stack frame.
60+
to show how the function prologue lays out the stack frame.
6161

6262
Or:
6363
Control Flow Integrity. A general term for computer security techniques
@@ -194,7 +194,7 @@ L
194194
generic unwinding mechanism. As the unwinder walks each frame, it calls
195195
a "personality" function to do language-specific analysis. Each function's
196196
FDE points to an optional LSDA which is passed to the personality function.
197-
For C++, the LSDA contain info about the type and location of catch
197+
For C++, the LSDA contains info about the type and location of catch
198198
statements in that function.
199199

200200
**Load-VN**
@@ -256,7 +256,7 @@ R
256256

257257
**Reassociation**
258258
Rearranging associative expressions to promote better redundancy elimination
259-
and other optimization. For example, changing ``(A+B-A)`` into ``(B+A-A)``,
259+
and other optimizations. For example, changing ``(A+B-A)`` into ``(B+A-A)``,
260260
permitting it to be optimized into ``(B+0)`` then ``(B)``.
261261

262262
**RFC**

llvm/docs/LinkTimeOptimization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ are needed by native object files. In the example above, the linker reports
180180
that only ``foo1()`` is used by native object files using
181181
``lto_codegen_add_must_preserve_symbol()``. Next the linker invokes the LLVM
182182
optimizer and code generators using ``lto_codegen_compile()`` which returns a
183-
native object file creating by merging the LLVM bitcode files and applying
183+
native object file created by merging the LLVM bitcode files and applying
184184
various optimization passes.
185185

186186
Phase 4 : Symbol Resolution after optimization

llvm/docs/MLGO.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This document is an outline of the tooling and APIs facilitating MLGO.
2929
Corpus Tooling
3030
==============
3131

32-
Within the LLVM monorepo, there is the ``mlgo-utils`` python packages that
32+
Within the LLVM monorepo, there is the ``mlgo-utils`` Python package that
3333
lives at ``llvm/utils/mlgo-utils``. This package primarily contains tooling
3434
for working with corpora, or collections of LLVM bitcode. We use these corpora
3535
to train and evaluate ML models. Corpora consist of a description in JSON
@@ -82,7 +82,7 @@ Options
8282

8383
.. option:: --cmd_filter
8484

85-
Allows filtering of modules by command line. If set, only modules that much
85+
Allows filtering of modules by command line. If set, only modules that match
8686
the filter will be extracted into the corpus. Regular expressions are
8787
supported in some instances.
8888

@@ -690,7 +690,7 @@ This supports the ``ReleaseModeModelRunner`` model runners.
690690

691691
You need a tensorflow pip package for the AOT (ahead-of-time) Saved Model compiler
692692
and a thin wrapper for the native function generated by it. We currently support
693-
TF 2.15. We recommend using a python virtual env (in which case, remember to
693+
TF 2.15. We recommend using a Python virtual env (in which case, remember to
694694
pass ``-DPython3_ROOT_DIR`` to ``cmake``).
695695

696696
Once you install the pip package, find where it was installed:

llvm/docs/MemoryModelRelaxationAnnotations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ not break other constraints as single location coherence.
412412
Static reordering is one consequence of breaking *happens-before*,
413413
but is not the most interesting one.
414414

415-
Run-time consequences are more interesting. When there is an
415+
Run-time consequences are more interesting. When there is a
416416
*happens-before* relation between instructions, the target has to emit
417417
synchronization code to ensure other threads will observe the effects of
418418
the instructions in the right order.
@@ -440,7 +440,7 @@ For every unique tag prefix P present in A or B:
440440
P from both sets are added to U.
441441

442442
Passes should avoid aggressively combining MMRAs, as this can result
443-
in significant losses of information. While this cannot affect
443+
in significant loss of information. While this cannot affect
444444
correctness, it may affect performance.
445445

446446
As a general rule of thumb, common passes such as SimplifyCFG that

0 commit comments

Comments
 (0)