Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit f34f6bd

Browse files
SC llvm teamdstutt
authored andcommitted
Merged main:8474bfdd149b into amd-gfx:24c3950d1abc
Local branch amd-gfx 24c3950 Manually merged main:6a91b7051df7 into amd-gfx:cbe644758d17 Remote branch main 8474bfd [NFC] [docs] Clarify we are talking about a function
2 parents 24c3950 + 8474bfd commit f34f6bd

File tree

450 files changed

+22218
-2633
lines changed

Some content is hidden

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

450 files changed

+22218
-2633
lines changed

bolt/docs/doxygen.cfg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ PREDEFINED =
19541954
EXPAND_AS_DEFINED =
19551955

19561956
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
1957-
# remove all refrences to function-like macros that are alone on a line, have an
1957+
# remove all references to function-like macros that are alone on a line, have an
19581958
# all uppercase name, and do not end with a semicolon. Such function macros are
19591959
# typically used for boiler-plate code, and will confuse the parser if not
19601960
# removed.

bolt/include/bolt/Core/BinaryContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ class BinaryContext {
950950
bool registerFragment(BinaryFunction &TargetFunction,
951951
BinaryFunction &Function) const;
952952

953-
/// Add unterprocedural reference for \p Function to \p Address
953+
/// Add interprocedural reference for \p Function to \p Address
954954
void addInterproceduralReference(BinaryFunction *Function, uint64_t Address) {
955955
InterproceduralReferences.push_back({Function, Address});
956956
}

bolt/include/bolt/Core/BinaryFunction.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,8 @@ class BinaryFunction {
14451445

14461446
/// Rebuilds BBs layout, ignoring dead BBs. Returns the number of removed
14471447
/// BBs and the removed number of bytes of code.
1448-
std::pair<unsigned, uint64_t> eraseInvalidBBs();
1448+
std::pair<unsigned, uint64_t>
1449+
eraseInvalidBBs(const MCCodeEmitter *Emitter = nullptr);
14491450

14501451
/// Get the relative order between two basic blocks in the original
14511452
/// layout. The result is > 0 if B occurs before A and < 0 if B
@@ -2172,7 +2173,7 @@ class BinaryFunction {
21722173
/// is corrupted. If it is unable to fix it, it returns false.
21732174
bool finalizeCFIState();
21742175

2175-
/// Return true if this function needs an address-transaltion table after
2176+
/// Return true if this function needs an address-translation table after
21762177
/// its code emission.
21772178
bool requiresAddressTranslation() const;
21782179

bolt/include/bolt/Core/BinarySection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class BinarySection {
127127
return *ContentsOrErr;
128128
}
129129

130-
/// Get the set of relocations refering to data in this section that
130+
/// Get the set of relocations referring to data in this section that
131131
/// has been reordered. The relocation offsets will be modified to
132132
/// reflect the new data locations.
133133
RelocationSetType reorderRelocations(bool Inplace) const;

bolt/include/bolt/Core/DebugData.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ std::optional<AttrInfo> findAttributeInfo(const DWARFDie DIE,
6464
dwarf::Attribute Attr);
6565

6666
// DWARF5 Header in order of encoding.
67-
// Types represent encodnig sizes.
67+
// Types represent encoding sizes.
6868
using UnitLengthType = uint32_t;
6969
using VersionType = uint16_t;
7070
using AddressSizeType = uint8_t;
@@ -372,13 +372,13 @@ class DebugAddrWriter {
372372
}
373373

374374
/// Updates AddressToIndex Map.
375-
/// Follows the same symantics as unordered map [].
375+
/// Follows the same semantics as unordered map [].
376376
void updateAddressToIndex(uint64_t Address, uint32_t Index) {
377377
AddressToIndex[Address] = Index;
378378
}
379379

380380
/// Updates IndexToAddress Map.
381-
/// Follows the same symantics as unordered map [].
381+
/// Follows the same semantics as unordered map [].
382382
void updateIndexToAddrss(uint64_t Address, uint32_t Index) {
383383
IndexToAddress[Index] = Address;
384384
}
@@ -474,7 +474,7 @@ class DebugStrWriter {
474474
}
475475

476476
/// Adds string to .debug_str.
477-
/// On first invokation it initializes internal data stractures.
477+
/// On first invocation it initializes internal data structures.
478478
uint32_t addString(StringRef Str);
479479

480480
/// Returns False if no strings were added to .debug_str.
@@ -485,7 +485,7 @@ class DebugStrWriter {
485485
std::mutex WriterMutex;
486486
/// Initializes Buffer and Stream.
487487
void initialize();
488-
/// Creats internal data stractures.
488+
/// Creates internal data structures.
489489
void create();
490490
std::unique_ptr<DebugStrBufferVector> StrBuffer;
491491
std::unique_ptr<raw_svector_ostream> StrStream;
@@ -585,7 +585,7 @@ class DebugLoclistWriter : public DebugLocWriter {
585585
void finalize(DIEBuilder &DIEBldr, DIE &Die) override;
586586

587587
/// Returns CU ID.
588-
/// For Skelton CU it is a CU Offset.
588+
/// For Skeleton CU it is a CU Offset.
589589
/// For DWO CU it is a DWO ID.
590590
uint64_t getCUID() const {
591591
return CU.isDWOUnit() ? *CU.getDWOId() : CU.getOffset();

bolt/include/bolt/Core/DynoStats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class DynoStats {
121121
/// Maps instruction opcodes to:
122122
/// 1. Accumulated executed instruction counts.
123123
/// 2. a multimap that records highest execution counts, function names,
124-
/// and BB offsets where intructions of these opcodes occur.
124+
/// and BB offsets where instructions of these opcodes occur.
125125
using MaxOpcodeHistogramTy =
126126
std::multimap<uint64_t, std::pair<StringRef, uint32_t>>;
127127
using OpcodeHistogramTy =

bolt/include/bolt/Core/Exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class EHFrameParser {
7777
/// void PatcherCallback(uint64_t Value, uint64_t Offset, uint64_t Type);
7878
///
7979
/// where Value is a value of the reference, Offset - is an offset into the
80-
/// frame data at which the reference occured, and Type is a DWARF encoding
80+
/// frame data at which the reference occurred, and Type is a DWARF encoding
8181
/// type of the reference.
8282
static Error parse(DWARFDataExtractor Data, uint64_t EHFrameAddress,
8383
PatcherCallbackTy PatcherCallback);

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ class MCPlusBuilder {
10821082

10831083
/// Replace the compound memory operand of Inst with an immediate operand.
10841084
/// The value of the immediate operand is computed by reading the \p
1085-
/// ConstantData array starting from \p offset and assuming little-endianess.
1085+
/// ConstantData array starting from \p offset and assuming little-endianness.
10861086
/// Return true on success. The given instruction is modified in place.
10871087
virtual bool replaceMemOperandWithImm(MCInst &Inst, StringRef ConstantData,
10881088
uint64_t Offset) const {

bolt/include/bolt/Core/Relocation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct Relocation {
6161

6262
/// Handle special cases when relocation should not be processed by BOLT or
6363
/// change relocation \p Type to proper one before continuing if \p Contents
64-
/// and \P Type mismatch occured.
64+
/// and \P Type mismatch occurred.
6565
static bool skipRelocationProcess(uint64_t &Type, uint64_t Contents);
6666

6767
// Adjust value depending on relocation type (make it PC relative or not)

bolt/include/bolt/Passes/FixRelaxationPass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
//
99
// This file declares the FixRelaxations class, which locates instructions with
10-
// wrong targets and fixes them. Such problems usually occures when linker
10+
// wrong targets and fixes them. Such problems usually occurs when linker
1111
// relaxes (changes) instructions, but doesn't fix relocations types properly
1212
// for them.
1313
//

0 commit comments

Comments
 (0)