Skip to content

Commit ad6bb70

Browse files
[llvm] Fix typos in documentation (#140275)
Co-authored-by: Matt Arsenault <[email protected]>
1 parent dd4a730 commit ad6bb70

10 files changed

+23
-23
lines changed

llvm/docs/AMDGPUUsage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ The AMDGPU backend implements the following LLVM IR intrinsics.
13521352

13531353
llvm.amdgcn.sched.group.barrier Creates schedule groups with specific properties to create custom scheduling
13541354
pipelines. The ordering between groups is enforced by the instruction scheduler.
1355-
The intrinsic applies to the code that preceeds the intrinsic. The intrinsic
1355+
The intrinsic applies to the code that precedes the intrinsic. The intrinsic
13561356
takes three values that control the behavior of the schedule groups.
13571357

13581358
- Mask : Classify instruction groups using the llvm.amdgcn.sched_barrier mask values.
@@ -1669,7 +1669,7 @@ The AMDGPU backend supports the following LLVM IR attributes.
16691669

16701670
"amdgpu-git-ptr-high" The hard-wired high half of the address of the global information table
16711671
for AMDPAL OS type. 0xffffffff represents no hard-wired high half, since
1672-
current hardware only allows a 16 bit value.
1672+
current hardware only allows a 16-bit value.
16731673

16741674
"amdgpu-32bit-address-high-bits" Assumed high 32-bits for 32-bit address spaces which are really truncated
16751675
64-bit addresses (i.e., addrspace(6))
@@ -4884,7 +4884,7 @@ apertures address can be used. For GFX7-GFX8 these are available in the
48844884
:ref:`amdgpu-amdhsa-hsa-aql-queue` the address of which can be obtained with
48854885
Queue Ptr SGPR (see :ref:`amdgpu-amdhsa-initial-kernel-execution-state`). For
48864886
GFX9-GFX11 the aperture base addresses are directly available as inline constant
4887-
registers ``SRC_SHARED_BASE/LIMIT`` and ``SRC_PRIVATE_BASE/LIMIT``. In 64 bit
4887+
registers ``SRC_SHARED_BASE/LIMIT`` and ``SRC_PRIVATE_BASE/LIMIT``. In 64-bit
48884888
address mode the aperture sizes are 2^32 bytes and the base is aligned to 2^32
48894889
which makes it easier to convert from flat to segment or segment to flat.
48904890

llvm/docs/CIBestPractices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ just a release, which looks like the following:
6161
However, it is best practice to specify an exact commit SHA from which to pull
6262
the action from, noting the version in a comment:
6363

64-
We plan on revisting this reccomendation once Github's immutable actions have
64+
We plan on revisiting this recommendation once Github's immutable actions have
6565
been rolled out as GA.
6666

6767
.. code-block:: yaml

llvm/docs/CMake.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ enabled sub-projects. Nearly all of these variable names begin with
589589

590590
.. note::
591591
Some projects listed here can also go in ``LLVM_ENABLE_RUNTIMES``. They
592-
should only appear in one of the two lists. If a project is a valid possiblity
592+
should only appear in one of the two lists. If a project is a valid possibility
593593
for both, prefer putting it in ``LLVM_ENABLE_RUNTIMES``.
594594

595595
**LLVM_ENABLE_RTTI**:BOOL

llvm/docs/CodeGenerator.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ frame. LLVM takes advantage of having no TOC to provide space to save the frame
20882088
pointer in the PowerPC linkage area of the caller frame. Other details of
20892089
PowerPC ABI can be found at `PowerPC ABI
20902090
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/LowLevelABI/Articles/32bitPowerPC.html>`_\
2091-
. Note: This link describes the 32 bit ABI. The 64 bit ABI is similar except
2091+
. Note: This link describes the 32-bit ABI. The 64-bit ABI is similar except
20922092
space for GPRs are 8 bytes wide (not 4) and r13 is reserved for system use.
20932093

20942094
Frame Layout
@@ -2137,8 +2137,8 @@ function epilog can also use the link to pop the frame from the stack. The
21372137
third entry in the linkage area is used to save the return address from the lr
21382138
register. Finally, as mentioned above, the last entry is used to save the
21392139
previous frame pointer (r31.) The entries in the linkage area are the size of a
2140-
GPR, thus the linkage area is 24 bytes long in 32 bit mode and 48 bytes in 64
2141-
bit mode.
2140+
GPR, thus the linkage area is 24 bytes long in 32-bit mode and 48 bytes in
2141+
64-bit mode.
21422142

21432143
32 bit linkage area:
21442144

@@ -2207,21 +2207,21 @@ parameter area must be large enough to store all the parameters for the largest
22072207
call sequence made by the caller. The size must also be minimally large enough
22082208
to spill registers r3-r10. This allows callees blind to the call signature,
22092209
such as thunks and vararg functions, enough space to cache the argument
2210-
registers. Therefore, the parameter area is minimally 32 bytes (64 bytes in 64
2211-
bit mode.) Also note that since the parameter area is a fixed offset from the
2210+
registers. Therefore, the parameter area is minimally 32 bytes (64 bytes in
2211+
64-bit mode.) Also note that since the parameter area is a fixed offset from the
22122212
top of the frame, that a callee can access its split arguments using fixed
22132213
offsets from the stack pointer (or base pointer.)
22142214

22152215
Combining the information about the linkage, parameter areas and alignment. A
2216-
stack frame is minimally 64 bytes in 32 bit mode and 128 bytes in 64 bit mode.
2216+
stack frame is minimally 64 bytes in 32-bit mode and 128 bytes in 64-bit mode.
22172217

22182218
The *dynamic area* starts out as size zero. If a function uses dynamic alloca
22192219
then space is added to the stack, the linkage and parameter areas are shifted to
22202220
top of stack, and the new space is available immediately below the linkage and
22212221
parameter areas. The cost of shifting the linkage and parameter areas is minor
22222222
since only the link value needs to be copied. The link value can be easily
22232223
fetched by adding the original frame size to the base pointer. Note that
2224-
allocations in the dynamic space need to observe 16 byte alignment.
2224+
allocations in the dynamic space need to observe 16-byte alignment.
22252225

22262226
The *locals area* is where the llvm compiler reserves space for local variables.
22272227

@@ -2343,7 +2343,7 @@ When BPF_CLASS(code) == BPF_ALU or BPF_ALU64 or BPF_JMP,
23432343
::
23442344

23452345
BPF_X 0x1 use src_reg register as source operand
2346-
BPF_K 0x0 use 32 bit immediate as source operand
2346+
BPF_K 0x0 use 32-bit immediate as source operand
23472347

23482348
and four MSB bits store operation code
23492349

llvm/docs/Coroutines.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ be used to communicate with the coroutine. This distinguished alloca is called
606606
**coroutine promise** and is provided as the second parameter to the
607607
`coro.id`_ intrinsic.
608608

609-
The following coroutine designates a 32 bit integer `promise` and uses it to
609+
The following coroutine designates a 32-bit integer `promise` and uses it to
610610
store the current value produced by a coroutine.
611611

612612
.. code-block:: llvm
@@ -2055,7 +2055,7 @@ coroutine, and things that happen after the resumption of the coroutine
20552055
are not guaranteed to happen only after the end of `await_suspend`.
20562056

20572057
This version of intrinsic corresponds to
2058-
'``std::corouine_handle<> awaiter.await_suspend(...)``' variant.
2058+
'``std::coroutine_handle<> awaiter.await_suspend(...)``' variant.
20592059

20602060
Arguments:
20612061
""""""""""

llvm/docs/CoverageMappingFormat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ IR for the `coverage mapping sample`_ that was shown earlier:
412412
for the first function record.
413413

414414
* The two trailing bytes are zeroes and are used to pad the coverage mapping
415-
data to give it the 8 byte alignment.
415+
data to give it the 8-byte alignment.
416416

417417
Encoding
418418
========

llvm/docs/DeveloperPolicy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ to the categories of interest for notifications.
5454
Paying attention to changes being made by others is a good way to see what other people
5555
are interested in and watching the flow of the project as a whole.
5656

57-
Contibutions to the project are made through :ref:`GitHub Pull Requests <github-reviews>`.
57+
Contributions to the project are made through :ref:`GitHub Pull Requests <github-reviews>`.
5858
You can subscribe to notification for areas of the codebase by joining
5959
one of the `pr-subscribers-* <https://github.com/orgs/llvm/teams?query=pr-subscribers>`_
6060
GitHub teams. This `mapping <https://github.com/llvm/llvm-project/blob/main/.github/new-prs-labeler.yml>`_

llvm/docs/ExtendingLLVM.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ complicated behavior in a single node (rotate).
127127
Add a case for your node in ``ExpandOp`` to teach the legalizer how to
128128
perform the action represented by the new node on a value that has been split
129129
into high and low halves. This case will be used to support your node with a
130-
64 bit operand on a 32 bit target.
130+
64-bit operand on a 32-bit target.
131131

132132
#. ``lib/CodeGen/SelectionDAG/DAGCombiner.cpp``:
133133

llvm/docs/InstrProfileFormat.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data from an executable or a shared library [3]_ consists of a header and
3232
multiple sections, with each section as a memory dump. The raw profile data needs
3333
to be reasonably compact and fast to generate.
3434

35-
There are no backward or forward version compatiblity guarantees for the raw profile
35+
There are no backward or forward version compatibility guarantees for the raw profile
3636
format. That is, compilers and tools `require`_ a specific raw profile version
3737
to parse the profiles.
3838

@@ -381,7 +381,7 @@ This section contains the profile data for value profiling.
381381
The value profiles corresponding to a profile metadata are serialized contiguously
382382
as one record, and value profile records are stored in the same order as the
383383
respective profile data, such that a raw profile reader `advances`_ the pointer to
384-
profile data and the pointer to value profile records simutaneously [5]_ to find
384+
profile data and the pointer to value profile records simultaneously [5]_ to find
385385
value profiles for a per function, per `FuncHash`_ profile data.
386386

387387
.. _`advances`: https://github.com/llvm/llvm-project/blob/7e15fa9161eda7497a5d6abf0d951a1d12d86550/llvm/include/llvm/ProfileData/InstrProfReader.h#L456-L457
@@ -520,7 +520,7 @@ based profile data. For supported usages, check out `llvm-profdata documentation
520520
.. [4] The counter section is used by a few variant types (like temporal
521521
profiling) and might have different semantics there.
522522
.. [5] The step size of data pointer is the ``sizeof(ProfileData)``, and the step
523-
size of value profile pointer is calcuated based on the number of collected
523+
size of value profile pointer is calculated based on the number of collected
524524
values.
525525
526526
.. _`lightweight instrumentation`: https://groups.google.com/g/llvm-dev/c/r03Z6JoN7d4

llvm/docs/InterfaceExportAnnotations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class declaration must be annotated with ``LLVM_ABI``.
123123
124124
class ExampleClass {
125125
public:
126-
// Public methods defined externally must be annotatated.
126+
// Public methods defined externally must be annotated.
127127
LLVM_ABI int sourceDefinedPublicMethod(int a, int b);
128128
129129
// Methods defined in the class definition do not need annotation.
@@ -135,7 +135,7 @@ class declaration must be annotated with ``LLVM_ABI``.
135135
ExampleClass() {}
136136
LLVM_ABI ~ExampleClass();
137137
138-
// Public static methods defined externally must be annotatated.
138+
// Public static methods defined externally must be annotated.
139139
LLVM_ABI static int sourceDefinedPublicStaticMethod(int a, int b);
140140
};
141141

0 commit comments

Comments
 (0)