Skip to content

Commit 44bf0fc

Browse files

File tree

69 files changed

+3870
-193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3870
-193
lines changed

clang/docs/ClangOffloadBundler.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A bundled code object may also be used to bundle just the offloaded code
2828
objects, and embedded as data into the host code object. The host compilation
2929
includes an ``init`` function that will use the runtime corresponding to the
3030
offload kind (see :ref:`clang-offload-kind-table`) to load the offload code
31-
objects appropriate to the devices present when the host program is executed.
31+
objects appropriate for the devices present when the host program is executed.
3232

3333
:program:`clang-offload-bundler` is located in
3434
`clang/tools/clang-offload-bundler`.
@@ -147,21 +147,21 @@ bundle file is:
147147
<end> ::== OFFLOAD_BUNDLER_MAGIC_STR__END__
148148

149149
**comment**
150-
The symbol used for starting single-line comment in the file type of
150+
The symbol used for starting a single-line comment in the file type of
151151
constituting bundles. E.g. it is ";" for ll ``File Type`` and "#" for "s"
152152
``File Type``.
153153

154154
**bundle_id**
155155
The :ref:`clang-bundle-entry-id` for the enclosing bundle.
156156

157157
**eol**
158-
The end of line character.
158+
The end-of-line character.
159159

160160
**bundle**
161161
The code object stored in one of the supported text file formats.
162162

163163
**OFFLOAD_BUNDLER_MAGIC_STR__**
164-
Magic string that marks the existence of offloading data i.e.
164+
The magic string that marks the existence of offloading data i.e.
165165
"__CLANG_OFFLOAD_BUNDLE__".
166166

167167
.. _clang-bundled-code-object-layout:
@@ -231,7 +231,7 @@ Where:
231231
============= ==============================================================
232232
host Host code object. ``clang-offload-bundler`` always includes
233233
this entry as the first bundled code object entry. For an
234-
embedded bundled code object this entry is not used by the
234+
embedded bundled code object, this entry is not used by the
235235
runtime and so is generally an empty code object.
236236

237237
hip Offload code object for the HIP language. Used for all
@@ -272,7 +272,7 @@ without differentiation based on offload kind.
272272
``<arch><sub>-<vendor>-<sys>-<env>``
273273

274274
However, in order to standardize outputs for tools that consume bitcode bundles
275-
and to parse target ID containing dashes, the bundler only accepts target
275+
and to parse a target ID containing dashes, the bundler only accepts target
276276
triples in the 4-field format:
277277

278278
``<arch><sub>-<vendor>-<sys>-<env>``
@@ -292,17 +292,17 @@ Bundled Code Object Composition
292292
* If there is an entry with a target feature specified as *Any*, then all
293293
entries must specify that target feature as *Any* for the same processor.
294294

295-
There may be additional target specific restrictions.
295+
There may be additional target-specific restrictions.
296296

297297
.. _compatibility-bundle-entry-id:
298298

299299
Compatibility Rules for Bundle Entry ID
300300
---------------------------------------
301301

302302
A code object, specified using its Bundle Entry ID, can be loaded and
303-
executed on a target processor, if:
303+
executed on a target processor if:
304304

305-
* Their offload kinds are the same or comptible.
305+
* Their offload kinds are the same or compatible.
306306
* Their target triples are compatible.
307307
* Their Target IDs are compatible as defined in :ref:`compatibility-target-id`.
308308

@@ -331,7 +331,7 @@ Target ID syntax is defined by the following BNF syntax:
331331
Where:
332332

333333
**processor**
334-
Is a the target specific processor or any alternative processor name.
334+
Is the target-specific processor or any alternative processor name.
335335

336336
**target-feature**
337337
Is a target feature name that is supported by the processor. Each target
@@ -350,7 +350,7 @@ Where:
350350
can only be loaded on a processor configured with the target feature on.
351351

352352
*Off*
353-
specified by ``-``, indicating the target feature is disabled. A code
353+
Specified by ``-``, indicating the target feature is disabled. A code
354354
object compiled with a target ID specifying a target feature off
355355
can only be loaded on a processor configured with the target feature off.
356356

@@ -360,9 +360,9 @@ Compatibility Rules for Target ID
360360
---------------------------------
361361

362362
A code object compiled for a Target ID is considered compatible for a
363-
target, if:
363+
target if:
364364

365-
* Their processor is same.
365+
* Their processor is the same.
366366
* Their feature set is compatible as defined above.
367367

368368
There are two forms of target ID:
@@ -380,10 +380,10 @@ There are two forms of target ID:
380380
alphabetic order. Command line tools convert non-canonical form to canonical
381381
form.
382382

383-
Target Specific information
383+
Target-Specific information
384384
===========================
385385

386-
Target specific information is available for the following:
386+
Target-specific information is available for the following:
387387

388388
*AMD GPU*
389389
AMD GPU supports target ID and target features. See `User Guide for AMDGPU Backend
@@ -397,7 +397,7 @@ Most other targets do not support target IDs.
397397
Archive Unbundling
398398
==================
399399

400-
Unbundling of a heterogeneous device archive (HDA) is done to create device specific
400+
Unbundling of a heterogeneous device archive (HDA) is done to create device-specific
401401
archives. HDA is in a format compatible with GNU ``ar`` utility and contains a
402402
collection of bundled device binaries where each bundle file will contain
403403
device binaries for a host and one or more targets. The output device-specific
@@ -469,7 +469,7 @@ compatible with that particular offload target. Compatibility between a
469469
device binary in HDA and a target is based on the compatibility between their
470470
bundle entry IDs as defined in :ref:`compatibility-bundle-entry-id`.
471471

472-
Following cases may arise during compatibility testing:
472+
The following cases may arise during compatibility testing:
473473

474474
* A binary is compatible with one or more targets: Insert the binary into the
475475
device-specific archive of each compatible target.
@@ -517,7 +517,7 @@ Compression and Decompression
517517

518518
``clang-offload-bundler`` provides features to compress and decompress the full
519519
bundle, leveraging inherent redundancies within the bundle entries. Use the
520-
`-compress` command-line option to enable this compression capability.
520+
``-compress`` command-line option to enable this compression capability.
521521

522522
The compressed offload bundle begins with a header followed by the compressed binary data:
523523

@@ -542,4 +542,4 @@ The compressed offload bundle begins with a header followed by the compressed bi
542542
- **Compressed Data**:
543543
The actual compressed binary data follows the header. Its size can be inferred from the total size of the file minus the header size.
544544

545-
> **Note**: Version 3 is now the default format. For backward compatibility with older HIP runtimes that support version 2 only, set the environment variable `COMPRESSED_BUNDLE_FORMAT_VERSION=2`.
545+
> **Note**: Version 3 is now the default format. For backward compatibility with older HIP runtimes that support version 2 only, set the environment variable ``COMPRESSED_BUNDLE_FORMAT_VERSION=2``.

libc/src/setjmp/x86_64/sigsetjmp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf buf)) {
4141
[epilogue] "X"(sigsetjmp_epilogue)
4242
: "eax", "ebx", "ecx");
4343
}
44-
#endif
44+
#else
4545
[[gnu::naked]]
4646
LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf, int)) {
4747
asm(R"(
@@ -64,5 +64,6 @@ LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf, int)) {
6464
[epilogue] "X"(sigsetjmp_epilogue)
6565
: "rax", "rbx");
6666
}
67+
#endif
6768

6869
} // namespace LIBC_NAMESPACE_DECL

llvm/docs/YamlIO.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ Flow Mapping
807807
A YAML "flow mapping" is a mapping that uses the inline notation
808808
(e.g { x: 1, y: 0 } ) when written to YAML. To specify that a type should be
809809
written in YAML using flow mapping, your MappingTraits specialization should
810-
add "static const bool flow = true;". For instance:
810+
add ``static constexpr bool flow = true;``. For instance:
811811

812812
.. code-block:: c++
813813

@@ -824,7 +824,7 @@ add "static const bool flow = true;". For instance:
824824
...
825825
}
826826

827-
static const bool flow = true;
827+
static constexpr bool flow = true;
828828
}
829829

830830
Flow mappings are subject to line wrapping according to the ``Output`` object
@@ -859,7 +859,7 @@ Flow Sequence
859859
A YAML "flow sequence" is a sequence that when written to YAML it uses the
860860
inline notation (e.g [ foo, bar ] ). To specify that a sequence type should
861861
be written in YAML as a flow sequence, your SequenceTraits specialization should
862-
add "static const bool flow = true;". For instance:
862+
add ``static constexpr bool flow = true;``. For instance:
863863

864864
.. code-block:: c++
865865

@@ -869,7 +869,7 @@ add "static const bool flow = true;". For instance:
869869
static MyListEl &element(IO &io, MyList &list, size_t index) { ... }
870870

871871
// The existence of this member causes YAML I/O to use a flow sequence
872-
static const bool flow = true;
872+
static constexpr bool flow = true;
873873
};
874874

875875
With the above, if you used MyList as the data type in your native data

llvm/include/llvm/Analysis/DDG.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class RootDDGNode : public DDGNode {
9696
RootDDGNode() : DDGNode(NodeKind::Root) {}
9797
RootDDGNode(const RootDDGNode &N) = delete;
9898
RootDDGNode(RootDDGNode &&N) : DDGNode(std::move(N)) {}
99-
~RootDDGNode() = default;
99+
~RootDDGNode() override = default;
100100

101101
/// Define classof to be able to use isa<>, cast<>, dyn_cast<>, etc.
102102
static bool classof(const DDGNode *N) {
@@ -114,7 +114,7 @@ class LLVM_ABI SimpleDDGNode : public DDGNode {
114114
SimpleDDGNode(Instruction &I);
115115
SimpleDDGNode(const SimpleDDGNode &N);
116116
SimpleDDGNode(SimpleDDGNode &&N);
117-
~SimpleDDGNode();
117+
~SimpleDDGNode() override;
118118

119119
SimpleDDGNode &operator=(const SimpleDDGNode &N) = default;
120120

@@ -176,7 +176,7 @@ class LLVM_ABI PiBlockDDGNode : public DDGNode {
176176
PiBlockDDGNode(const PiNodeList &List);
177177
PiBlockDDGNode(const PiBlockDDGNode &N);
178178
PiBlockDDGNode(PiBlockDDGNode &&N);
179-
~PiBlockDDGNode();
179+
~PiBlockDDGNode() override;
180180

181181
PiBlockDDGNode &operator=(const PiBlockDDGNode &N) = default;
182182

@@ -318,7 +318,7 @@ class LLVM_ABI DataDependenceGraph : public DDGBase, public DDGInfo {
318318
: DDGBase(std::move(G)), DDGInfo(std::move(G)) {}
319319
DataDependenceGraph(Function &F, DependenceInfo &DI);
320320
DataDependenceGraph(Loop &L, LoopInfo &LI, DependenceInfo &DI);
321-
~DataDependenceGraph();
321+
~DataDependenceGraph() override;
322322

323323
/// If node \p N belongs to a pi-block return a pointer to the pi-block,
324324
/// otherwise return null.

llvm/include/llvm/Analysis/InteractiveModelRunner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class LLVM_ABI InteractiveModelRunner : public MLModelRunner {
5151
Log->flush();
5252
}
5353

54-
virtual ~InteractiveModelRunner();
54+
~InteractiveModelRunner() override;
5555

5656
private:
5757
void *evaluateUntyped() override;

llvm/include/llvm/Analysis/MLInlineAdvisor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class MLInlineAdvisor : public InlineAdvisor {
3333
GetModelRunner,
3434
std::function<bool(CallBase &)> GetDefaultAdvice);
3535

36-
virtual ~MLInlineAdvisor() = default;
36+
~MLInlineAdvisor() override = default;
3737

3838
void onPassEntry(LazyCallGraph::SCC *SCC) override;
3939
void onPassExit(LazyCallGraph::SCC *SCC) override;
@@ -105,7 +105,7 @@ class MLInlineAdvice : public InlineAdvice {
105105
public:
106106
MLInlineAdvice(MLInlineAdvisor *Advisor, CallBase &CB,
107107
OptimizationRemarkEmitter &ORE, bool Recommendation);
108-
virtual ~MLInlineAdvice() = default;
108+
~MLInlineAdvice() override = default;
109109

110110
void recordInliningImpl() override;
111111
void recordInliningWithCalleeDeletedImpl() override;

llvm/include/llvm/Analysis/ReleaseModeModelRunner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ReleaseModeModelRunner final : public MLModelRunner {
106106
assert(ResultIndex >= 0 && "Cannot find DecisionName in inlining model");
107107
}
108108

109-
virtual ~ReleaseModeModelRunner() = default;
109+
~ReleaseModeModelRunner() override = default;
110110

111111
static bool classof(const MLModelRunner *R) {
112112
return R->getKind() == MLModelRunner::Kind::Release;

llvm/include/llvm/Analysis/StackSafetyAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class StackSafetyGlobalInfoWrapperPass : public ModulePass {
156156
static char ID;
157157

158158
StackSafetyGlobalInfoWrapperPass();
159-
~StackSafetyGlobalInfoWrapperPass();
159+
~StackSafetyGlobalInfoWrapperPass() override;
160160

161161
const StackSafetyGlobalInfo &getResult() const { return SSGI; }
162162

llvm/include/llvm/DWARFCFIChecker/DWARFCFIFunctionFrameAnalyzer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LLVM_ABI CFIFunctionFrameAnalyzer : public CFIFunctionFrameReceiver {
3232
public:
3333
CFIFunctionFrameAnalyzer(MCContext &Context, const MCInstrInfo &MCII)
3434
: CFIFunctionFrameReceiver(Context), MCII(MCII) {}
35-
~CFIFunctionFrameAnalyzer();
35+
~CFIFunctionFrameAnalyzer() override;
3636

3737
void startFunctionFrame(bool IsEH,
3838
ArrayRef<MCCFIInstruction> Prologue) override;

llvm/include/llvm/DWARFLinker/Classic/DWARFStreamer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class LLVM_ABI DwarfStreamer : public DwarfEmitter {
4848
raw_pwrite_stream &OutFile,
4949
DWARFLinkerBase::MessageHandlerTy Warning)
5050
: OutFile(OutFile), OutFileType(OutFileType), WarningHandler(Warning) {}
51-
virtual ~DwarfStreamer() = default;
51+
~DwarfStreamer() override = default;
5252

5353
static Expected<std::unique_ptr<DwarfStreamer>> createStreamer(
5454
const Triple &TheTriple, DWARFLinkerBase::OutputFileType FileType,

0 commit comments

Comments
 (0)