Skip to content

Commit 3ef42c1

Browse files
committed
ReleaseNotes: Formatting and typo fixes.
1 parent db366f9 commit 3ef42c1

File tree

2 files changed

+48
-45
lines changed

2 files changed

+48
-45
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -47,36 +47,36 @@ Major New Features
4747
Improvements to Clang's diagnostics
4848
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4949

50-
- -Wtautological-overlap-compare will warn on negative numbers and non-int
50+
- ``-Wtautological-overlap-compare`` will warn on negative numbers and non-int
5151
types.
5252

53-
- -Wtautological-compare for self comparisons and
54-
-Wtautological-overlap-compare will now look through member and array
53+
- ``-Wtautological-compare`` for self comparisons and
54+
``-Wtautological-overlap-compare`` will now look through member and array
5555
access to determine if two operand expressions are the same.
5656

57-
- -Wtautological-bitwise-compare is a new warning group. This group has the
57+
- ``-Wtautological-bitwise-compare`` is a new warning group. This group has the
5858
current warning which diagnoses the tautological comparison of a bitwise
5959
operation and a constant. The group also has the new warning which diagnoses
6060
when a bitwise-or with a non-negative value is converted to a bool, since
6161
that bool will always be true.
6262

63-
- -Wbitwise-conditional-parentheses will warn on operator precedence issues
63+
- ``-Wbitwise-conditional-parentheses`` will warn on operator precedence issues
6464
when mixing bitwise-and (&) and bitwise-or (|) operator with the
6565
conditional operator (?:).
6666
67-
- -Wrange-loop-analysis got several improvements. It no longer warns about a
67+
- ``-Wrange-loop-analysis`` got several improvements. It no longer warns about a
6868
copy being made when the result is bound to an rvalue reference. It no longer
6969
warns when an object of a small, trivially copyable type is copied. The
70-
warning now offers fixits. Excluding -Wrange-loop-bind-reference it is now
71-
part of -Wall. To reduce the number of false positives the diagnostic is
70+
warning now offers fix-its. Excluding ``-Wrange-loop-bind-reference`` it is now
71+
part of ``-Wall``. To reduce the number of false positives the diagnostic is
7272
disabled in macros and template instantiations.
7373

74-
- -Wmisleading-indentation has been added. This warning is similar to the GCC
74+
- ``-Wmisleading-indentation`` has been added. This warning is similar to the GCC
7575
warning of the same name. It warns about statements that are indented as if
7676
they were part of a if/else/for/while statement but are not semantically
7777
part of that if/else/for/while.
7878

79-
- -Wbitwise-op-parentheses and -Wlogical-op-parentheses are disabled by default.
79+
- ``-Wbitwise-op-parentheses`` and ``-Wlogical-op-parentheses`` are disabled by default.
8080

8181
Non-comprehensive list of changes in this release
8282
-------------------------------------------------
@@ -95,15 +95,15 @@ Non-comprehensive list of changes in this release
9595
learned to sanitize pre/post increment/decrement of types with bit width
9696
smaller than ``int``.
9797

98-
* For X86 target, -march=skylake-avx512, -march=icelake-client,
99-
-march=icelake-server, -march=cascadelake, -march=cooperlake will default to
98+
* For X86 target, ``-march=skylake-avx512``, ``-march=icelake-client``,
99+
``-march=icelake-server``, ``-march=cascadelake``, ``-march=cooperlake`` will default to
100100
not using 512-bit zmm registers in vectorized code unless 512-bit intrinsics
101101
are used in the source code. 512-bit operations are known to cause the CPUs
102102
to run at a lower frequency which can impact performance. This behavior can be
103-
changed by passing -mprefer-vector-width=512 on the command line.
103+
changed by passing ``-mprefer-vector-width=512`` on the command line.
104104

105-
* clang now defaults to ``.init_array`` on Linux. It used to use ``.ctors`` if
106-
the found gcc installation is older than 4.7.0. Add ``-fno-use-init-array`` to
105+
* Clang now defaults to ``.init_array`` on Linux. It used to use ``.ctors`` if
106+
the found GCC installation is older than 4.7.0. Add ``-fno-use-init-array`` to
107107
get the old behavior (``.ctors``).
108108

109109
* The behavior of the flag ``-flax-vector-conversions`` has been modified to
@@ -126,16 +126,16 @@ Non-comprehensive list of changes in this release
126126
New Compiler Flags
127127
------------------
128128

129-
- The -fgnuc-version= flag now controls the value of ``__GNUC__`` and related
129+
- The ``-fgnuc-version=`` flag now controls the value of ``__GNUC__`` and related
130130
macros. This flag does not enable or disable any GCC extensions implemented in
131131
Clang. Setting the version to zero causes Clang to leave ``__GNUC__`` and
132132
other GNU-namespaced macros, such as ``__GXX_WEAK__``, undefined.
133133

134-
- vzeroupper insertion on X86 targets can now be disabled with -mno-vzeroupper.
134+
- vzeroupper insertion on X86 targets can now be disabled with ``-mno-vzeroupper``.
135135
You can also force vzeroupper insertion to be used on CPUs that normally
136-
wouldn't with -mvzeroupper.
136+
wouldn't with ``-mvzeroupper``.
137137

138-
- The -fno-concept-satisfaction-caching can be used to disable caching for
138+
- The ``-fno-concept-satisfaction-caching`` can be used to disable caching for
139139
satisfactions of Concepts. The C++2a draft standard does not currently permit
140140
this caching, but disabling it may incur significant compile-time costs. This
141141
flag is intended for experimentation purposes and may be removed at any time;
@@ -168,12 +168,12 @@ Deprecated Compiler Flags
168168
The following options are deprecated and ignored. They will be removed in
169169
future versions of Clang.
170170

171-
- -mmpx used to enable the __MPX__ preprocessor define for the Intel MPX
171+
- ``-mmpx`` used to enable the ``__MPX__`` preprocessor define for the Intel MPX
172172
instructions. There were no MPX intrinsics.
173173

174-
- -mno-mpx used to disable -mmpx and is the default behavior.
174+
- ``-mno-mpx`` used to disable ``-mmpx`` and is the default behavior.
175175

176-
- -fconcepts-ts previously used to enable experimental concepts support. Use
176+
- ``-fconcepts-ts`` previously used to enable experimental concepts support. Use
177177
-std=c++2a instead to enable Concepts support.
178178

179179
Modified Compiler Flags
@@ -325,19 +325,19 @@ Changes in C++ for OpenCL:
325325
ABI Changes in Clang
326326
--------------------
327327

328-
- gcc passes vectors of __int128 in memory on X86-64. Clang historically
328+
- GCC passes vectors of __int128 in memory on X86-64. Clang historically
329329
broke the vectors into multiple scalars using two 64-bit values for each
330-
element. Clang now matches the gcc behavior on Linux and NetBSD. You can
331-
switch back to old API behavior with flag: -fclang-abi-compat=9.0.
330+
element. Clang now matches the GCC behavior on Linux and NetBSD. You can
331+
switch back to old API behavior with flag: ``-fclang-abi-compat=9.0``.
332332

333333
- RISC-V now chooses a default ``-march=`` and ``-mabi=`` to match (in almost
334334
all cases) the GCC defaults. On baremetal targets, where neither ``-march=``
335335
nor ``-mabi=`` are specified, Clang now differs from GCC by defaulting to
336-
``-march=rv32imac -mabi=ilp32`` or ``-march=rv64imac -mabi=lp64`` depending on
337-
the architecture in the target triple. These do not always match the defaults
338-
in Clang 9. We strongly suggest that you explicitly pass `-march=` and
339-
`-mabi=` when compiling for RISC-V, due to how extensible this architecture
340-
is.
336+
``-march=rv32imac`` ``-mabi=ilp32`` or ``-march=rv64imac`` ``-mabi=lp64``
337+
depending on the architecture in the target triple. These do not always match
338+
the defaults in Clang 9. We strongly suggest that you explicitly pass
339+
``-march=`` and ``-mabi=`` when compiling for RISC-V, due to how extensible
340+
this architecture is.
341341

342342
- RISC-V now uses `target-abi` module metadata to encode the chosen psABI. This
343343
ensures that the correct lowering will be done by LLVM when LTO is enabled.
@@ -421,7 +421,7 @@ clang-format
421421

422422
- Clang-format has a new option called ``--dry-run`` or ``-n`` to emit a
423423
warning for clang-format violations. This can be used together
424-
with --ferror-limit=N to limit the number of warnings per file and --Werror
424+
with ``--ferror-limit=N`` to limit the number of warnings per file and ``--Werror``
425425
to make warnings into errors.
426426

427427
- Option *IncludeIsMainSourceRegex* has been added to allow for additional

llvm/docs/ReleaseNotes.rst

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,18 @@ Changes to the AArch64 Backend
108108

109109
* Added support for Cortex-A65, Cortex-A65AE, Neoverse E1 and Neoverse N1 cores.
110110

111-
* With a few more bugs fixed in the LLVM 10 release, clang-cl can now target windows-on-Arm well, demonstrated by building complex pieces of software such as Chromium and the Electron framework.
111+
* With a few more bugs fixed in the LLVM 10 release, clang-cl can now target
112+
Windows-on-ARM well, demonstrated by building complex pieces of software such
113+
as Chromium and the Electron framework.
112114

113-
* Support for -fpatchable-function-entry was added.
115+
* Support for ``-fpatchable-function-entry`` was added.
114116

115117
Changes to the ARM Backend
116118
--------------------------
117119

118-
* Optimized Armv8.1-M code generation, including generating Low Overhead Loops.
120+
* Optimized ARMv8.1-M code generation, including generating Low Overhead Loops.
119121

120-
* Added auto-vectorization for the Armv8.1-M MVE vector extension.
122+
* Added auto-vectorization for the ARMv8.1-M MVE vector extension.
121123

122124
* Support was added for inline asm constraints s,j,x,N,O.
123125

@@ -160,7 +162,7 @@ Optimization:
160162

161163
* Enabled vectorization of math routines on PowerPC using MASSV (Mathematical Acceleration SubSystem) library
162164

163-
copiler-rt:
165+
compiler-rt:
164166

165167
* Added/improved conversion functions from IBM long double to 128-bit integers
166168

@@ -211,12 +213,13 @@ Changes to the X86 Target
211213
* v32i8 and v64i8 vectors with AVX512F enabled, but AVX512BW disabled will now
212214
be passed in ZMM registers for calls and returns. Previously they were passed
213215
in two YMM registers. Old behavior can be enabled by passing
214-
-x86-enable-old-knl-abi
216+
``-x86-enable-old-knl-abi``.
215217

216-
* -mprefer-vector-width=256 is now the default behavior skylake-avx512 and later
217-
Intel CPUs. This tries to limit the use of 512-bit registers which can cause a
218-
decrease in CPU frequency on these CPUs. This can be re-enabled by passing
219-
-mprefer-vector-width=512 to clang or passing -mattr=-prefer-256-bit to llc.
218+
* ``-mprefer-vector-width=256`` is now the default behavior skylake-avx512 and
219+
later Intel CPUs. This tries to limit the use of 512-bit registers which can
220+
cause a decrease in CPU frequency on these CPUs. This can be re-enabled by
221+
passing ``-mprefer-vector-width=512`` to clang or passing
222+
``-mattr=-prefer-256-bit`` to llc.
220223

221224
* Deprecated the mpx feature flag for the Intel MPX instructions. There were no
222225
intrinsics for this feature. This change only this effects the results
@@ -231,7 +234,7 @@ Changes to the X86 Target
231234
Changes to the WebAssembly Target
232235
---------------------------------
233236

234-
* __attribute__((used)) no longer implies that a symbol is exported, for
237+
* ``__attribute__((used))`` no longer implies that a symbol is exported, for
235238
consistency with other targets.
236239

237240
* Multivalue function signatures are now supported in WebAssembly object files
@@ -328,8 +331,8 @@ Bug Fixes:
328331
* There have been some small changes to the code generation for atomic
329332
operations.
330333

331-
* RISC-V no longer emits incorrect CFI directives in function prologs and
332-
epilogs.
334+
* RISC-V no longer emits incorrect CFI directives in function prologues and
335+
epilogues.
333336

334337
* RV64 no longer clears the upper bits when returning complex types from
335338
libcalls using the LP64 psABI.
@@ -339,7 +342,7 @@ Compiler-RT:
339342
* RISC-V (both 64-bit and 32-bit) is now supported by compiler-rt, allowing
340343
crtbegin and crtend to be built.
341344

342-
* The Sanitizers now support 64-bit RISC-V on linux.
345+
* The Sanitizers now support 64-bit RISC-V on Linux.
343346

344347

345348

0 commit comments

Comments
 (0)