Fix typos and spelling errors across codebase (#156270)
Corrected various spelling mistakes such as 'occurred', 'receiver',
'initialized', 'length', and others in comments, variable names,
function names, and documentation throughout the project. These
changes improve code readability and maintain consistency in naming
and documentation.
Co-authored-by: Louis Dionne <ldionne.2@gmail.com>
diff --git a/bolt/lib/Core/DebugNames.cpp b/bolt/lib/Core/DebugNames.cpp
index 787ef74..8936785 100644
--- a/bolt/lib/Core/DebugNames.cpp
+++ b/bolt/lib/Core/DebugNames.cpp
@@ -677,11 +677,11 @@
constexpr uint32_t BucketCountLength = sizeof(uint32_t);
constexpr uint32_t NameCountLength = sizeof(uint32_t);
constexpr uint32_t AbbrevTableSizeLength = sizeof(uint32_t);
- constexpr uint32_t AugmentationStringSizeLenght = sizeof(uint32_t);
+ constexpr uint32_t AugmentationStringSizeLength = sizeof(uint32_t);
return VersionLength + PaddingLength + CompUnitCountLength +
LocalTypeUnitCountLength + ForeignTypeUnitCountLength +
BucketCountLength + NameCountLength + AbbrevTableSizeLength +
- AugmentationStringSizeLenght;
+ AugmentationStringSizeLength;
}
void DWARF5AcceleratorTable::emitHeader() const {
diff --git a/bolt/test/X86/Inputs/dwarf4-gdb-index-types-helper.s b/bolt/test/X86/Inputs/dwarf4-gdb-index-types-helper.s
index 51613e6..affdc9e 100644
--- a/bolt/test/X86/Inputs/dwarf4-gdb-index-types-helper.s
+++ b/bolt/test/X86/Inputs/dwarf4-gdb-index-types-helper.s
@@ -16,7 +16,7 @@
.type _Z3foov,@function
_Z3foov: # @_Z3foov
.Lfunc_begin0:
- .file 1 "/dwarf4-lenght-test" "helper.cpp"
+ .file 1 "/dwarf4-length-test" "helper.cpp"
.loc 1 7 0 # helper.cpp:7:0
.cfi_startproc
# %bb.0:
@@ -257,7 +257,7 @@
.Linfo_string1:
.asciz "helper.cpp" # string offset=146
.Linfo_string2:
- .asciz "/home/ayermolo/local/tasks/T117448832/dwarf4-lenght-test" # string offset=157
+ .asciz "/home/ayermolo/local/tasks/T117448832/dwarf4-length-test" # string offset=157
.Linfo_string3:
.asciz "_Z3foov" # string offset=214
.Linfo_string4:
diff --git a/bolt/test/X86/Inputs/dwarf4-gdb-index-types-main.s b/bolt/test/X86/Inputs/dwarf4-gdb-index-types-main.s
index f5393cf..dda537a 100644
--- a/bolt/test/X86/Inputs/dwarf4-gdb-index-types-main.s
+++ b/bolt/test/X86/Inputs/dwarf4-gdb-index-types-main.s
@@ -16,7 +16,7 @@
.type main,@function
main: # @main
.Lfunc_begin0:
- .file 1 "/dwarf4-lenght-test" "main.cpp"
+ .file 1 "/dwarf4-length-test" "main.cpp"
.loc 1 7 0 # main.cpp:7:0
.cfi_startproc
# %bb.0:
@@ -258,7 +258,7 @@
.Linfo_string1:
.asciz "main.cpp" # string offset=146
.Linfo_string2:
- .asciz "/dwarf4-lenght-test" # string offset=155
+ .asciz "/dwarf4-length-test" # string offset=155
.Linfo_string3:
.asciz "main" # string offset=212
.Linfo_string4:
diff --git a/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp b/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
index 1fdb479..42a60bb 100644
--- a/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
@@ -292,7 +292,7 @@
// Foo(Bar{1, 2}) => true
// Foo(1) => false
// Foo{1} => false
- auto HasListIntializedArgument = [](const CXXConstructExpr *CE) {
+ auto HasListInitializedArgument = [](const CXXConstructExpr *CE) {
for (const auto *Arg : CE->arguments()) {
Arg = Arg->IgnoreImplicit();
@@ -348,7 +348,7 @@
// std::make_smart_ptr<S2>(std::vector<int>({1}));
// std::make_smart_ptr<S3>(S2{1, 2}, 3);
if (const auto *CE = New->getConstructExpr()) {
- if (HasListIntializedArgument(CE))
+ if (HasListInitializedArgument(CE))
return false;
}
if (ArraySizeExpr.empty()) {
@@ -370,7 +370,7 @@
SourceRange InitRange;
if (const auto *NewConstruct = New->getConstructExpr()) {
if (NewConstruct->isStdInitListInitialization() ||
- HasListIntializedArgument(NewConstruct)) {
+ HasListInitializedArgument(NewConstruct)) {
// FIXME: Add fixes for direct initialization with the initializer-list
// constructor. Similar to the above CallInit case, the type has to be
// specified explicitly in the fixes.
diff --git a/clang-tools-extra/clangd/Hover.cpp b/clang-tools-extra/clangd/Hover.cpp
index bcf7225..3ce0d62 100644
--- a/clang-tools-extra/clangd/Hover.cpp
+++ b/clang-tools-extra/clangd/Hover.cpp
@@ -1793,7 +1793,7 @@
void parseDocumentation(llvm::StringRef Input, markup::Document &Output) {
// A documentation string is treated as a sequence of paragraphs,
- // where the paragraphs are seperated by at least one empty line
+ // where the paragraphs are separated by at least one empty line
// (meaning 2 consecutive newline characters).
// Possible leading empty lines (introduced by an odd number > 1 of
// empty lines between 2 paragraphs) will be removed later in the Markup
diff --git a/clang-tools-extra/clangd/index/FileIndex.cpp b/clang-tools-extra/clangd/index/FileIndex.cpp
index c49de37..2e005bf 100644
--- a/clang-tools-extra/clangd/index/FileIndex.cpp
+++ b/clang-tools-extra/clangd/index/FileIndex.cpp
@@ -143,7 +143,7 @@
}
}
}
- // Attribute references into each file they occured in.
+ // Attribute references into each file they occurred in.
if (Index.Refs) {
for (const auto &SymRefs : *Index.Refs) {
for (const auto &R : SymRefs.second) {
diff --git a/clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp b/clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp
index e6787f8..afacf94 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp
@@ -77,7 +77,7 @@
// CHECK-MESSAGES: [[@LINE-1]]:25: warning: absl::StrSplit()
// CHECK-FIXES: absl::StrSplit("ABC", 'A', [](absl::string_view) { return true; });
- // Doesn't do anything with other strings lenghts.
+ // Doesn't do anything with other strings lengths.
absl::StrSplit("ABC", "AB");
absl::StrSplit("ABC", absl::ByAnyChar(""));
absl::StrSplit("ABC", absl::ByAnyChar(" \t"));
diff --git a/clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp b/clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp
index 2f11e0c..573e3f6 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp
@@ -65,7 +65,7 @@
//------------------------------ B1. Increments ------------------------------//
//----------------------------------------------------------------------------//
// Check that every thing listed in B1 of the specification does indeed //
-// recieve the base increment, and that not-body does not increase nesting //
+// receive the base increment, and that not-body does not increase nesting //
//----------------------------------------------------------------------------//
// break does not increase cognitive complexity.
@@ -698,7 +698,7 @@
//-------------------------- B3. Nesting increments --------------------------//
//----------------------------------------------------------------------------//
// Check that every thing listed in B3 of the specification does indeed //
-// recieve the penalty of the current nesting level //
+// receive the penalty of the current nesting level //
//----------------------------------------------------------------------------//
void unittest_b3_00() {
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 654bebb..23eb954 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -6988,7 +6988,7 @@
const ObjCInterfaceDecl *UnknownObjCClass = nullptr,
bool ObjCPropertyAccess = false,
bool AvoidPartialAvailabilityChecks = false,
- ObjCInterfaceDecl *ClassReciever = nullptr,
+ ObjCInterfaceDecl *ClassReceiver = nullptr,
bool SkipTrailingRequiresClause = false);
/// Emit a note explaining that this function is deleted.
diff --git a/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td b/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
index 342e99f..e1662e0 100644
--- a/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
+++ b/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
@@ -172,11 +172,11 @@
"false", InAlpha>,
CmdLineOption<
Boolean, "NilReceiver",
- "Check whether the reciever in the message expression is nil",
+ "Check whether the receiver in the message expression is nil",
"true", Released>,
CmdLineOption<
Boolean, "UndefReceiver",
- "Check whether the reciever in the message expression is "
+ "Check whether the receiver in the message expression is "
"undefined",
"true", Released>,
CmdLineOption<
diff --git a/clang/lib/APINotes/APINotesYAMLCompiler.cpp b/clang/lib/APINotes/APINotesYAMLCompiler.cpp
index 8e91d48..3be528f 100644
--- a/clang/lib/APINotes/APINotesYAMLCompiler.cpp
+++ b/clang/lib/APINotes/APINotesYAMLCompiler.cpp
@@ -743,14 +743,14 @@
llvm::raw_ostream &OS;
llvm::SourceMgr::DiagHandlerTy DiagHandler;
void *DiagHandlerCtxt;
- bool ErrorOccured;
+ bool ErrorOccurred;
/// Emit a diagnostic
bool emitError(llvm::Twine Message) {
DiagHandler(
llvm::SMDiagnostic("", llvm::SourceMgr::DK_Error, Message.str()),
DiagHandlerCtxt);
- ErrorOccured = true;
+ ErrorOccurred = true;
return true;
}
@@ -761,7 +761,7 @@
void *DiagHandlerCtxt)
: M(TheModule), Writer(TheModule.Name, SourceFile), OS(OS),
DiagHandler(DiagHandler), DiagHandlerCtxt(DiagHandlerCtxt),
- ErrorOccured(false) {}
+ ErrorOccurred(false) {}
void convertAvailability(const AvailabilityItem &Availability,
CommonEntityInfo &CEI, llvm::StringRef APIName) {
@@ -1234,10 +1234,10 @@
convertTopLevelItems(/* context */ std::nullopt, Versioned.Items,
Versioned.Version);
- if (!ErrorOccured)
+ if (!ErrorOccurred)
Writer.writeToStream(OS);
- return ErrorOccured;
+ return ErrorOccurred;
}
};
} // namespace
diff --git a/clang/lib/Analysis/FlowSensitive/Transfer.cpp b/clang/lib/Analysis/FlowSensitive/Transfer.cpp
index 0574835..9d1b002 100644
--- a/clang/lib/Analysis/FlowSensitive/Transfer.cpp
+++ b/clang/lib/Analysis/FlowSensitive/Transfer.cpp
@@ -96,7 +96,7 @@
}
// Unpacks the value (if any) associated with `E` and updates `E` to the new
-// value, if any unpacking occured. Also, does the lvalue-to-rvalue conversion,
+// value, if any unpacking occurred. Also, does the lvalue-to-rvalue conversion,
// by skipping past the reference.
static Value *maybeUnpackLValueExpr(const Expr &E, Environment &Env) {
auto *Loc = Env.getStorageLocation(E);
diff --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp
index 03485b7..c7bffe2 100644
--- a/clang/lib/Basic/OpenMPKinds.cpp
+++ b/clang/lib/Basic/OpenMPKinds.cpp
@@ -897,7 +897,7 @@
auto GetRegionsForLeaf = [&](OpenMPDirectiveKind LKind) {
assert(isLeafConstruct(LKind) && "Epecting leaf directive");
- // Whether a leaf would require OMPD_unknown if it occured on its own.
+ // Whether a leaf would require OMPD_unknown if it occurred on its own.
switch (LKind) {
case OMPD_metadirective:
CaptureRegions.push_back(OMPD_metadirective);
diff --git a/clang/lib/CrossTU/CrossTranslationUnit.cpp b/clang/lib/CrossTU/CrossTranslationUnit.cpp
index 7496deb..b0563b3 100644
--- a/clang/lib/CrossTU/CrossTranslationUnit.cpp
+++ b/clang/lib/CrossTU/CrossTranslationUnit.cpp
@@ -202,10 +202,10 @@
SmallString<32> FilePath(FilePathInIndex);
llvm::sys::path::native(FilePath, llvm::sys::path::Style::posix);
- bool InsertionOccured;
- std::tie(std::ignore, InsertionOccured) =
+ bool InsertionOccurred;
+ std::tie(std::ignore, InsertionOccurred) =
Result.try_emplace(LookupName, FilePath.begin(), FilePath.end());
- if (!InsertionOccured)
+ if (!InsertionOccurred)
return llvm::make_error<IndexError>(
index_error_code::multiple_definitions, IndexPath.str(), LineNo);
diff --git a/clang/lib/Parse/ParseHLSLRootSignature.cpp b/clang/lib/Parse/ParseHLSLRootSignature.cpp
index 7be6eec..80e81e5 100644
--- a/clang/lib/Parse/ParseHLSLRootSignature.cpp
+++ b/clang/lib/Parse/ParseHLSLRootSignature.cpp
@@ -1395,7 +1395,7 @@
llvm::APFloat::opStatus Status(Literal.GetFloatValue(Val, DXCRoundingMode));
// Note: we do not error when opStatus::opInexact by itself as this just
- // denotes that rounding occured but not that it is invalid
+ // denotes that rounding occurred but not that it is invalid
assert(!(Status & llvm::APFloat::opStatus::opInvalidOp) &&
"NumSpelling consists only of [0-9.ef+-]. Any malformed NumSpelling "
"will be caught and reported by NumericLiteralParser.");
diff --git a/clang/lib/Sema/CheckExprLifetime.cpp b/clang/lib/Sema/CheckExprLifetime.cpp
index 9396b4d..0b2f00f 100644
--- a/clang/lib/Sema/CheckExprLifetime.cpp
+++ b/clang/lib/Sema/CheckExprLifetime.cpp
@@ -345,7 +345,7 @@
// patterns.
auto RHSArgType = Ctor->getArg(0)->getType();
const auto *RHSRD = RHSArgType->getAsRecordDecl();
- // LHS is constructed from an intializer_list.
+ // LHS is constructed from an initializer_list.
//
// std::initializer_list is a proxy object that provides access to the backing
// array. We perform analysis on it to determine if there are any dangling
@@ -1464,7 +1464,7 @@
else
visitLocalsRetainedByInitializer(
Path, Init, TemporaryVisitor,
- // Don't revisit the sub inits for the intialization case.
+ // Don't revisit the sub inits for the initialization case.
/*RevisitSubinits=*/!InitEntity);
}
diff --git a/clang/lib/Sema/SemaCUDA.cpp b/clang/lib/Sema/SemaCUDA.cpp
index 5df1c3b..6c40b92 100644
--- a/clang/lib/Sema/SemaCUDA.cpp
+++ b/clang/lib/Sema/SemaCUDA.cpp
@@ -252,7 +252,7 @@
return CVT_Unified;
// Only constexpr and const variabless with implicit constant attribute
// are emitted on both sides. Such variables are promoted to device side
- // only if they have static constant intializers on device side.
+ // only if they have static constant initializers on device side.
if ((Var->isConstexpr() || Var->getType().isConstQualified()) &&
Var->hasAttr<CUDAConstantAttr>() &&
!hasExplicitAttr<CUDAConstantAttr>(Var))
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index 51b3f80..c961891 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -10990,18 +10990,18 @@
static void checkMethodTypeQualifiers(Sema &S, Declarator &D, unsigned DiagID) {
const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo();
if (FTI.hasMethodTypeQualifiers() && !D.isInvalidType()) {
- bool DiagOccured = false;
+ bool DiagOccurred = false;
FTI.MethodQualifiers->forEachQualifier(
- [DiagID, &S, &DiagOccured](DeclSpec::TQ, StringRef QualName,
- SourceLocation SL) {
+ [DiagID, &S, &DiagOccurred](DeclSpec::TQ, StringRef QualName,
+ SourceLocation SL) {
// This diagnostic should be emitted on any qualifier except an addr
// space qualifier. However, forEachQualifier currently doesn't visit
// addr space qualifiers, so there's no way to write this condition
// right now; we just diagnose on everything.
S.Diag(SL, DiagID) << QualName << SourceRange(SL);
- DiagOccured = true;
+ DiagOccurred = true;
});
- if (DiagOccured)
+ if (DiagOccurred)
D.setInvalidType();
}
}
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index bc923c8..a53d578 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -5365,7 +5365,7 @@
// };
// TupleWithInt<int>::type y;
// At this point we will see the `__builtin_dedup_pack<int, int>` with a known
- // lenght and run `ComputeInfo()` to provide the necessary information to our
+ // length and run `ComputeInfo()` to provide the necessary information to our
// caller.
//
// Note that we may still have situations where builtin is not going to be
diff --git a/clang/lib/StaticAnalyzer/Checkers/WebKit/ForwardDeclChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/WebKit/ForwardDeclChecker.cpp
index 05a83db..f207323 100644
--- a/clang/lib/StaticAnalyzer/Checkers/WebKit/ForwardDeclChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/WebKit/ForwardDeclChecker.cpp
@@ -248,7 +248,7 @@
if (auto *Receiver = E->getInstanceReceiver()) {
Receiver = Receiver->IgnoreParenCasts();
if (isUnknownType(E->getReceiverType()))
- reportUnknownRecieverType(Receiver, DeclWithIssue);
+ reportUnknownReceiverType(Receiver, DeclWithIssue);
}
auto *MethodDecl = E->getMethodDecl();
@@ -332,7 +332,7 @@
Param->getType());
}
- void reportUnknownRecieverType(const Expr *Receiver,
+ void reportUnknownReceiverType(const Expr *Receiver,
const Decl *DeclWithIssue) const {
assert(Receiver);
reportBug(Receiver->getExprLoc(), Receiver->getSourceRange(), DeclWithIssue,
diff --git a/clang/test/Analysis/csv2json.py b/clang/test/Analysis/csv2json.py
index 6e1aca9..e303ca0 100644
--- a/clang/test/Analysis/csv2json.py
+++ b/clang/test/Analysis/csv2json.py
@@ -96,7 +96,7 @@
except (FileNotFoundError, csv.Error, Exception) as e:
print(str(e))
except:
- print("An error occured")
+ print("An error occurred")
if __name__ == "__main__":
diff --git a/clang/test/Analysis/cxx-uninitialized-object-inheritance.cpp b/clang/test/Analysis/cxx-uninitialized-object-inheritance.cpp
index 8456751..e2d190d 100644
--- a/clang/test/Analysis/cxx-uninitialized-object-inheritance.cpp
+++ b/clang/test/Analysis/cxx-uninitialized-object-inheritance.cpp
@@ -645,7 +645,7 @@
public:
NonVirtualDiamondInheritanceTest6() // expected-warning{{2 uninitialized fields}}
: First6(int{}) {
- // 'z' and 'Second::x' unintialized
+ // 'z' and 'Second::x' uninitialized
}
};
diff --git a/clang/test/Analysis/cxx-uninitialized-object.cpp b/clang/test/Analysis/cxx-uninitialized-object.cpp
index 43b1628..daaf6f4 100644
--- a/clang/test/Analysis/cxx-uninitialized-object.cpp
+++ b/clang/test/Analysis/cxx-uninitialized-object.cpp
@@ -184,7 +184,7 @@
public:
CtorDelegationTest1(int)
: a(9) {
- // leaves 'b' unintialized, but we'll never check this function
+ // leaves 'b' uninitialized, but we'll never check this function
}
CtorDelegationTest1()
@@ -205,7 +205,7 @@
public:
CtorDelegationTest2(int)
: b(11) {
- // leaves 'a' unintialized, but we'll never check this function
+ // leaves 'a' uninitialized, but we'll never check this function
}
CtorDelegationTest2()
diff --git a/clang/test/Analysis/uninit-ps-rdar6145427.m b/clang/test/Analysis/uninit-ps-rdar6145427.m
index 3ac8421..758037b 100644
--- a/clang/test/Analysis/uninit-ps-rdar6145427.m
+++ b/clang/test/Analysis/uninit-ps-rdar6145427.m
@@ -30,8 +30,8 @@
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- id someUnintializedPointer = [someUnintializedPointer objectAtIndex:0]; // expected-warning{{Receiver in message expression is an uninitialized value}}
- NSLog(@"%@", someUnintializedPointer);
+ id someUninitializedPointer = [someUninitializedPointer objectAtIndex:0]; // expected-warning{{Receiver in message expression is an uninitialized value}}
+ NSLog(@"%@", someUninitializedPointer);
[pool drain];
return 0;
}
diff --git a/clang/test/CXX/except/except.spec/p13-friend.cpp b/clang/test/CXX/except/except.spec/p13-friend.cpp
index 7f73a4f..4ad17a0 100644
--- a/clang/test/CXX/except/except.spec/p13-friend.cpp
+++ b/clang/test/CXX/except/except.spec/p13-friend.cpp
@@ -19,7 +19,7 @@
template<typename T>
struct A {
friend void f() noexcept;
- // FIXME: This error is emitted if no other errors occured (i.e. Sema::hasUncompilableErrorOccurred() is false).
+ // FIXME: This error is emitted if no other errors occurred (i.e. Sema::hasUncompilableErrorOccurred() is false).
friend void g() noexcept(x); // expected-error {{no member 'x' in 'N1::A<int>'; it has not yet been instantiated}}
// expected-note@-1 {{in instantiation of exception specification}}
static constexpr bool x = false; // expected-note {{not-yet-instantiated member is declared here}}
diff --git a/clang/test/CodeGenCXX/ctor-empty-nounique.cpp b/clang/test/CodeGenCXX/ctor-empty-nounique.cpp
index f01cad1..772a1f6 100644
--- a/clang/test/CodeGenCXX/ctor-empty-nounique.cpp
+++ b/clang/test/CodeGenCXX/ctor-empty-nounique.cpp
@@ -6,7 +6,7 @@
// some don't. (Currently, at least x86_64-windows-* and powerpc64le-* don't
// treat it as void.)
//
-// When intializing a struct with such a no_unique_address member, make sure we
+// When initializing a struct with such a no_unique_address member, make sure we
// don't write the dummy i8 into the struct where there's no space allocated for
// it.
//
diff --git a/clang/unittests/Format/FormatTestCSharp.cpp b/clang/unittests/Format/FormatTestCSharp.cpp
index d7fb15d..042e223 100644
--- a/clang/unittests/Format/FormatTestCSharp.cpp
+++ b/clang/unittests/Format/FormatTestCSharp.cpp
@@ -881,7 +881,7 @@
private static void ComplexLambda(BuildReport protoReport)
{
allSelectedScenes =
- veryVeryLongCollectionNameThatPutsTheLineLenghtAboveTheThresholds.Where(scene => scene.enabled)
+ veryVeryLongCollectionNameThatPutsTheLineLengthAboveTheThresholds.Where(scene => scene.enabled)
.Select(scene => scene.path)
.ToArray();
if (allSelectedScenes.Count == 0)
@@ -899,7 +899,7 @@
verifyFormat(R"(//
public class Test {
private static void ComplexLambda(BuildReport protoReport) {
- allSelectedScenes = veryVeryLongCollectionNameThatPutsTheLineLenghtAboveTheThresholds
+ allSelectedScenes = veryVeryLongCollectionNameThatPutsTheLineLengthAboveTheThresholds
.Where(scene => scene.enabled)
.Select(scene => scene.path)
.ToArray();
@@ -925,7 +925,7 @@
private static void MultipleLambdas(BuildReport protoReport)
{
allSelectedScenes =
- veryVeryLongCollectionNameThatPutsTheLineLenghtAboveTheThresholds.Where(scene => scene.enabled)
+ veryVeryLongCollectionNameThatPutsTheLineLengthAboveTheThresholds.Where(scene => scene.enabled)
.Select(scene => scene.path)
.ToArray();
preBindEnumerators.RemoveAll(enumerator => !enumerator.MoveNext());
@@ -944,7 +944,7 @@
verifyFormat(R"(//
public class Test {
private static void MultipleLambdas(BuildReport protoReport) {
- allSelectedScenes = veryVeryLongCollectionNameThatPutsTheLineLenghtAboveTheThresholds
+ allSelectedScenes = veryVeryLongCollectionNameThatPutsTheLineLengthAboveTheThresholds
.Where(scene => scene.enabled)
.Select(scene => scene.path)
.ToArray();
diff --git a/compiler-rt/lib/builtins/arm/addsf3.S b/compiler-rt/lib/builtins/arm/addsf3.S
index aa4d404..7b7cf85 100644
--- a/compiler-rt/lib/builtins/arm/addsf3.S
+++ b/compiler-rt/lib/builtins/arm/addsf3.S
@@ -170,7 +170,7 @@
movs r6, r4
cmp r2, 0
beq LOCAL_LABEL(form_result) // if a's exp is 0, no need to normalize.
- // If partial cancellation occured, we need to left-shift the result
+ // If partial cancellation occurred, we need to left-shift the result
// and adjust the exponent:
lsrs r6, r6, #(significandBits + 3)
bne LOCAL_LABEL(form_result)
diff --git a/compiler-rt/lib/builtins/fp_add_impl.inc b/compiler-rt/lib/builtins/fp_add_impl.inc
index d205999..7a05f48 100644
--- a/compiler-rt/lib/builtins/fp_add_impl.inc
+++ b/compiler-rt/lib/builtins/fp_add_impl.inc
@@ -106,7 +106,7 @@
if (aSignificand == 0)
return fromRep(0);
- // If partial cancellation occured, we need to left-shift the result
+ // If partial cancellation occurred, we need to left-shift the result
// and adjust the exponent.
if (aSignificand < implicitBit << 3) {
const int shift = rep_clz(aSignificand) - rep_clz(implicitBit << 3);
diff --git a/compiler-rt/lib/gwp_asan/tests/backtrace.cpp b/compiler-rt/lib/gwp_asan/tests/backtrace.cpp
index 6a84a2a..129fd23 100644
--- a/compiler-rt/lib/gwp_asan/tests/backtrace.cpp
+++ b/compiler-rt/lib/gwp_asan/tests/backtrace.cpp
@@ -86,7 +86,7 @@
gwp_asan::AllocationMetadata Meta;
Meta.AllocationTrace.RecordBacktrace(
[](uintptr_t *TraceBuffer, size_t Size) -> size_t {
- // Need to inintialise the elements that will be packed.
+ // Need to initialize the elements that will be packed.
memset(TraceBuffer, 0u, Size * sizeof(*TraceBuffer));
// Indicate that there were more frames, and we just didn't have enough
diff --git a/flang-rt/unittests/Runtime/NumericalFormatTest.cpp b/flang-rt/unittests/Runtime/NumericalFormatTest.cpp
index 033002c..dbde52d 100644
--- a/flang-rt/unittests/Runtime/NumericalFormatTest.cpp
+++ b/flang-rt/unittests/Runtime/NumericalFormatTest.cpp
@@ -150,7 +150,7 @@
IONAME(OutputInteger64)(cookie, j);
}
- // Ensure no errors occured in write operations above
+ // Ensure no errors occurred in write operations above
const auto status{IONAME(EndIoStatement)(cookie)};
ASSERT_EQ(status, 0) << "multiline: '" << format << "' failed, status "
<< static_cast<int>(status);
@@ -184,7 +184,7 @@
<< "InputComplex32 failed with value " << z[j];
}
- // Ensure no IO errors occured during IO operations above
+ // Ensure no IO errors occurred during IO operations above
auto status{IONAME(EndIoStatement)(cookie)};
ASSERT_EQ(status, 0) << "Failed complex list-directed input, status "
<< static_cast<int>(status);
@@ -200,7 +200,7 @@
<< z[j + 1];
}
- // Ensure no IO errors occured during IO operations above
+ // Ensure no IO errors occurred during IO operations above
status = IONAME(EndIoStatement)(cookie);
ASSERT_EQ(status, 0) << "Failed complex list-directed output, status "
<< static_cast<int>(status);
diff --git a/flang/lib/Lower/ConvertConstant.cpp b/flang/lib/Lower/ConvertConstant.cpp
index 376ec12..c44b9e8 100644
--- a/flang/lib/Lower/ConvertConstant.cpp
+++ b/flang/lib/Lower/ConvertConstant.cpp
@@ -680,7 +680,7 @@
fir::GlobalOp global = builder.getNamedGlobal(globalName);
if (!global) {
// Using a dense attribute for the initial value instead of creating an
- // intialization body speeds up MLIR/LLVM compilation, but this is not
+ // initialization body speeds up MLIR/LLVM compilation, but this is not
// always possible.
if constexpr (T::category == Fortran::common::TypeCategory::Logical ||
T::category == Fortran::common::TypeCategory::Integer ||
diff --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index 2acf0de..23871ca 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -5506,7 +5506,7 @@
}
void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) {
- bool isDependClauseOccured{false};
+ bool isDependClauseOccurred{false};
int targetCount{0}, targetSyncCount{0};
const auto &dir{std::get<parser::OmpDirectiveName>(x.v.t)};
std::set<const Symbol *> objectSymbolList;
@@ -5551,7 +5551,7 @@
}
},
[&](const parser::OmpClause::Depend &dependClause) {
- isDependClauseOccured = true;
+ isDependClauseOccurred = true;
},
[&](const parser::OmpClause::Destroy &destroyClause) {
const auto &interopVar{
@@ -5585,7 +5585,7 @@
context_.Say(GetContext().directiveSource,
"Each interop-type may be specified at most once."_err_en_US);
}
- if (isDependClauseOccured && !targetSyncCount) {
+ if (isDependClauseOccurred && !targetSyncCount) {
context_.Say(GetContext().directiveSource,
"A DEPEND clause can only appear on the directive if the interop-type includes TARGETSYNC"_err_en_US);
}
diff --git a/libc/src/__support/RPC/rpc_server.h b/libc/src/__support/RPC/rpc_server.h
index 98dc40e..d06700a 100644
--- a/libc/src/__support/RPC/rpc_server.h
+++ b/libc/src/__support/RPC/rpc_server.h
@@ -160,7 +160,7 @@
uint64_t args_sizes[num_lanes] = {0};
void *args[num_lanes] = {nullptr};
- // Recieve the format string and arguments from the client.
+ // Receive the format string and arguments from the client.
port.recv_n(format, format_sizes,
[&](uint64_t size) { return temp_storage.alloc(size); });
@@ -223,7 +223,7 @@
buffer_size[lane] = writer.get_chars_written();
}
- // Recieve any strings from the client and push them into a buffer.
+ // Receive any strings from the client and push them into a buffer.
TempVector<void *> copied_strs[num_lanes];
auto HasPendingCopies = [](TempVector<void *> v[num_lanes]) {
for (uint32_t i = 0; i < num_lanes; ++i)
diff --git a/libc/src/__support/math/cbrt.h b/libc/src/__support/math/cbrt.h
index 9d86bf3..fe6bc19 100644
--- a/libc/src/__support/math/cbrt.h
+++ b/libc/src/__support/math/cbrt.h
@@ -35,7 +35,7 @@
// > P = fpminimax(x^(-2/3), 7, [|D...|], [1, 2]);
// > dirtyinfnorm(P/x^(-2/3) - 1, [1, 2]);
// 0x1.28...p-21
-LIBC_INLINE static double intial_approximation(double x) {
+LIBC_INLINE static double initial_approximation(double x) {
constexpr double COEFFS[8] = {
0x1.bc52aedead5c6p1, -0x1.b52bfebf110b3p2, 0x1.1d8d71d53d126p3,
-0x1.de2db9e81cf87p2, 0x1.0154ca06153bdp2, -0x1.5973c66ee6da7p0,
@@ -194,7 +194,7 @@
double a = FPBits(a_bits).get_val();
// Initial approximation of x_r^(-2/3).
- double p = intial_approximation(x_r);
+ double p = initial_approximation(x_r);
// Look up for 2^(-2*n/3) used for first approximation step.
constexpr double EXP2_M2_OVER_3[3] = {1.0, 0x1.428a2f98d728bp-1,
diff --git a/libc/src/__support/str_to_float.h b/libc/src/__support/str_to_float.h
index 873a113..54c7aa1 100644
--- a/libc/src/__support/str_to_float.h
+++ b/libc/src/__support/str_to_float.h
@@ -124,7 +124,7 @@
// Wider Approximation
UInt128 final_approx;
// The halfway constant is used to check if the bits that will be shifted away
- // intially are all 1. For doubles this is 64 (bitstype size) - 52 (final
+ // initially are all 1. For doubles this is 64 (bitstype size) - 52 (final
// mantissa size) - 3 (we shift away the last two bits separately for
// accuracy, and the most significant bit is ignored.) = 9 bits. Similarly,
// it's 6 bits for floats in this case.
@@ -262,7 +262,7 @@
(final_approx_lower < approx_lower ? 1 : 0);
// The halfway constant is used to check if the bits that will be shifted away
- // intially are all 1. For 80 bit floats this is 128 (bitstype size) - 64
+ // initially are all 1. For 80 bit floats this is 128 (bitstype size) - 64
// (final mantissa size) - 3 (we shift away the last two bits separately for
// accuracy, and the most significant bit is ignored.) = 61 bits. Similarly,
// it's 12 bits for 128 bit floats in this case.
diff --git a/libc/src/stdio/generic/fgets.cpp b/libc/src/stdio/generic/fgets.cpp
index e0ad9b6..33d469c 100644
--- a/libc/src/stdio/generic/fgets.cpp
+++ b/libc/src/stdio/generic/fgets.cpp
@@ -44,7 +44,7 @@
bool has_eof = stream->iseof_unlocked();
stream->unlock();
- // If the requested read size makes no sense, an error occured, or no bytes
+ // If the requested read size makes no sense, an error occurred, or no bytes
// were read due to an EOF, then return nullptr and don't write the null byte.
if (has_error || (i == 0 && has_eof))
return nullptr;
diff --git a/libc/src/stdlib/strfroml.cpp b/libc/src/stdlib/strfroml.cpp
index 4be2167..8dbd8d7 100644
--- a/libc/src/stdlib/strfroml.cpp
+++ b/libc/src/stdlib/strfroml.cpp
@@ -24,7 +24,7 @@
internal::parse_format_string(format, fp);
// To ensure that the conversion function actually uses long double,
- // the length modifier has to be set to LenghtModifier::L
+ // the length modifier has to be set to LengthModifier::L
section.length_modifier = printf_core::LengthModifier::L;
printf_core::DropOverflowBuffer wb(s, (n > 0 ? n - 1 : 0));
diff --git a/libc/test/integration/startup/gpu/rpc_interface_test.cpp b/libc/test/integration/startup/gpu/rpc_interface_test.cpp
index 8957b15..eed9b67 100644
--- a/libc/test/integration/startup/gpu/rpc_interface_test.cpp
+++ b/libc/test/integration/startup/gpu/rpc_interface_test.cpp
@@ -12,7 +12,7 @@
using namespace LIBC_NAMESPACE;
-// Test to ensure that we can use aribtrary combinations of sends and recieves
+// Test to ensure that we can use arbitrary combinations of sends and receives
// as long as they are mirrored.
static void test_interface(bool end_with_send) {
uint64_t cnt = 0;
diff --git a/lldb/docs/resources/lldbgdbremote.md b/lldb/docs/resources/lldbgdbremote.md
index fdd9b05..9aa7ad2 100644
--- a/lldb/docs/resources/lldbgdbremote.md
+++ b/lldb/docs/resources/lldbgdbremote.md
@@ -2025,7 +2025,7 @@
If the debug server has requested all the symbols it wants, the final response
will be `OK` (whether they were all found or not).
-If LLDB did find all the symbols and recieves an `OK` it does not need to send
+If LLDB did find all the symbols and receives an `OK` it does not need to send
`qSymbol::` again during the debug session.
**Priority To Implement:** Low, this is rarely used.
diff --git a/lldb/docs/resources/qemu-testing.rst b/lldb/docs/resources/qemu-testing.rst
index 90b8fd5..33058bc 100644
--- a/lldb/docs/resources/qemu-testing.rst
+++ b/lldb/docs/resources/qemu-testing.rst
@@ -146,7 +146,7 @@
Without bridge networking you will have to forward individual ports from the VM
to the host (refer to QEMU's manuals for the specific options).
-* At least one to connect to the intial ``lldb-server``.
+* At least one to connect to the initial ``lldb-server``.
* One more if you want to use ``lldb-server`` in ``platform mode``, and have it
start a ``gdbserver`` instance for you.
diff --git a/lldb/include/lldb/API/SBCommandInterpreter.h b/lldb/include/lldb/API/SBCommandInterpreter.h
index dd475dd..752126c 100644
--- a/lldb/include/lldb/API/SBCommandInterpreter.h
+++ b/lldb/include/lldb/API/SBCommandInterpreter.h
@@ -258,7 +258,7 @@
/// thread.
///
/// \return
- /// \b true if there was a command in progress to recieve the interrupt.
+ /// \b true if there was a command in progress to receive the interrupt.
/// \b false if there's no command currently in flight.
bool InterruptCommand();
diff --git a/lldb/include/lldb/Target/Platform.h b/lldb/include/lldb/Target/Platform.h
index 70829c0..637d4c3 100644
--- a/lldb/include/lldb/Target/Platform.h
+++ b/lldb/include/lldb/Target/Platform.h
@@ -925,7 +925,7 @@
/// A structured data dictionary containing at each entry, the crash
/// information type as the entry key and the matching an array as the
/// entry value. \b nullptr if not implemented or if the process has no
- /// crash information entry. \b error if an error occured.
+ /// crash information entry. \b error if an error occurred.
virtual llvm::Expected<StructuredData::DictionarySP>
FetchExtendedCrashInformation(lldb_private::Process &process) {
return nullptr;
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
index 2927e69..e189543 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
@@ -412,7 +412,7 @@
/// stored within that section.
///
/// \returns either the decompressed object file stored within the
- /// .gnu_debugdata section or \c nullptr if an error occured or if there's no
+ /// .gnu_debugdata section or \c nullptr if an error occurred or if there's no
/// section with that name.
std::shared_ptr<ObjectFileELF> GetGnuDebugDataObjectFile();
@@ -424,7 +424,7 @@
/// found.
///
/// \return The bytes that represent the string table data or \c std::nullopt
- /// if an error occured.
+ /// if an error occurred.
std::optional<lldb_private::DataExtractor> GetDynamicData();
/// Get the bytes that represent the dynamic string table data.
@@ -435,7 +435,7 @@
/// DT_STRSZ .dynamic entries.
///
/// \return The bytes that represent the string table data or \c std::nullopt
- /// if an error occured.
+ /// if an error occurred.
std::optional<lldb_private::DataExtractor> GetDynstrData();
/// Read the bytes pointed to by the \a dyn dynamic entry.
@@ -453,7 +453,7 @@
/// before reading data.
///
/// \return The bytes that represent the dynanic entries data or
- /// \c std::nullopt if an error occured or the data is not available.
+ /// \c std::nullopt if an error occurred or the data is not available.
std::optional<lldb_private::DataExtractor>
ReadDataFromDynamic(const elf::ELFDynamic *dyn, uint64_t length,
uint64_t offset = 0);
@@ -468,7 +468,7 @@
///
/// \return The bytes that represent the symbol table data from the .dynamic
/// section or section headers or \c std::nullopt if an error
- /// occured or if there is no dynamic symbol data available.
+ /// occurred or if there is no dynamic symbol data available.
std::optional<lldb_private::DataExtractor>
GetDynsymDataFromDynamic(uint32_t &num_symbols);
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index bae0724..80a8f44 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -4513,7 +4513,7 @@
Log *log(GetLog(GDBRLog::Process));
// We will use the last instance of each value. Also we preserve the order
// of declaration in the XML, as it may not be numerical.
- // For example, hardware may intially release with two states that softwware
+ // For example, hardware may initially release with two states that software
// can read from a register field:
// 0 = startup, 1 = running
// If in a future hardware release, the designers added a pre-startup state:
diff --git a/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp b/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
index abe1581..951edde 100644
--- a/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
+++ b/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
@@ -151,7 +151,7 @@
};
while (cursor.HasValue()) { if (cursor.IsError()) {
- // Append a load address of 0 for all instructions that an error occured
+ // Append a load address of 0 for all instructions that an error occurred
// while decoding.
// TODO: Make distinction between errors by storing the error messages.
// Currently, all errors are treated the same.
diff --git a/lldb/source/Plugins/TraceExporter/common/TraceHTR.h b/lldb/source/Plugins/TraceExporter/common/TraceHTR.h
index 66aa19b..6c3a236 100644
--- a/lldb/source/Plugins/TraceExporter/common/TraceHTR.h
+++ b/lldb/source/Plugins/TraceExporter/common/TraceHTR.h
@@ -264,7 +264,7 @@
HTRBlock const *GetBlockById(size_t block_id) const;
/// Get the block ID trace for this layer.
- /// This block ID trace stores the block ID of each block that occured in the
+ /// This block ID trace stores the block ID of each block that occurred in the
/// trace and the block defs map maps block ID to the corresponding \a
/// HTRBlock.
///
diff --git a/lldb/source/ValueObject/DILEval.cpp b/lldb/source/ValueObject/DILEval.cpp
index 575dfae..0b3f82d 100644
--- a/lldb/source/ValueObject/DILEval.cpp
+++ b/lldb/source/ValueObject/DILEval.cpp
@@ -270,7 +270,7 @@
return llvm::make_error<DILDiagnosticError>(m_expr, "invalid value object",
node.GetLocation());
// Return the computed value-or-error. The caller is responsible for
- // checking if an error occured during the evaluation.
+ // checking if an error occurred during the evaluation.
return value_or_error;
}
diff --git a/lldb/test/API/linux/aarch64/mte_core_file/TestAArch64LinuxMTEMemoryTagCoreFile.py b/lldb/test/API/linux/aarch64/mte_core_file/TestAArch64LinuxMTEMemoryTagCoreFile.py
index 825e1a4..ecda353 100644
--- a/lldb/test/API/linux/aarch64/mte_core_file/TestAArch64LinuxMTEMemoryTagCoreFile.py
+++ b/lldb/test/API/linux/aarch64/mte_core_file/TestAArch64LinuxMTEMemoryTagCoreFile.py
@@ -154,7 +154,7 @@
],
)
- # For the intial alignment of start/end to granule boundaries the tag manager
+ # For the initial alignment of start/end to granule boundaries the tag manager
# is used, so this reads 1 tag as it would normally.
self.expect(
"memory tag read {addr} {addr}+1".format(addr=self.MTE_BUF_ADDR),
diff --git a/lldb/test/API/linux/aarch64/mte_tag_access/TestAArch64LinuxMTEMemoryTagAccess.py b/lldb/test/API/linux/aarch64/mte_tag_access/TestAArch64LinuxMTEMemoryTagAccess.py
index 8a76d6c..33f8c1c 100644
--- a/lldb/test/API/linux/aarch64/mte_tag_access/TestAArch64LinuxMTEMemoryTagAccess.py
+++ b/lldb/test/API/linux/aarch64/mte_tag_access/TestAArch64LinuxMTEMemoryTagAccess.py
@@ -277,7 +277,7 @@
)
# You may write up to the end of a tagged region
- # (mte_buf_2's intial tags will all be 0)
+ # (mte_buf_2's initial tags will all be 0)
self.expect("memory tag write mte_buf_2+page_size-16 0xe")
self.expect(
"memory tag read mte_buf_2+page_size-16 mte_buf_2+page_size",
@@ -416,7 +416,7 @@
)
# If we do the same with a misaligned end, it also moves but upward.
- # The intial range is 2 granules but the final range is mte_buf_2 -> mte_buf_2+48
+ # The initial range is 2 granules but the final range is mte_buf_2 -> mte_buf_2+48
self.expect("memory tag write mte_buf_2+8 3 -end-addr mte_buf_2+32+8")
self.expect(
"memory tag read mte_buf_2 mte_buf_2+64",
diff --git a/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py b/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py
index cd2293a..7479fec 100644
--- a/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py
+++ b/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py
@@ -16,7 +16,7 @@
@no_debug_info_test
def test_add_module(self):
"""This loads a file into a target and ensures that the python module was
- correctly added and the two intialization functions are called."""
+ correctly added and the two initialization functions are called."""
self.exe_name = "has_dsym"
self.py_name = self.exe_name + ".py"
diff --git a/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-expression-eval-bug.cpp b/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-expression-eval-bug.cpp
index b02eea6..ed25049 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-expression-eval-bug.cpp
+++ b/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-expression-eval-bug.cpp
@@ -1,4 +1,4 @@
-// This tests a crash which occured under very specific circumstances. The
+// This tests a crash which occurred under very specific circumstances. The
// interesting aspects of this test are:
// - we print a global variable from one compile unit
// - we are stopped in a member function of a class in a namespace
diff --git a/lldb/unittests/Utility/StreamTest.cpp b/lldb/unittests/Utility/StreamTest.cpp
index 959097d..c63dfda 100644
--- a/lldb/unittests/Utility/StreamTest.cpp
+++ b/lldb/unittests/Utility/StreamTest.cpp
@@ -504,7 +504,7 @@
#endif
}
-TEST_F(StreamTest, PutRawBytesZeroLenght) {
+TEST_F(StreamTest, PutRawBytesZeroLength) {
uint32_t value = 0x12345678;
s.PutRawBytes(static_cast<void *>(&value), 0, hostByteOrder,
@@ -516,7 +516,7 @@
EXPECT_EQ(0U, s.GetWrittenBytes());
}
-TEST_F(StreamTest, PutBytesAsRawHex8ZeroLenght) {
+TEST_F(StreamTest, PutBytesAsRawHex8ZeroLength) {
uint32_t value = 0x12345678;
s.PutBytesAsRawHex8(static_cast<void *>(&value), 0, hostByteOrder,
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
index 15d48c8..037fcaa 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
@@ -4012,7 +4012,7 @@
/// Returns whether this object currently represents the IR of a loop. If
/// returning false, it may have been consumed by a loop transformation or not
- /// been intialized. Do not use in this case;
+ /// been initialized. Do not use in this case;
bool isValid() const { return Header; }
/// The preheader ensures that there is only a single edge entering the loop.
diff --git a/llvm/include/llvm/Support/LEB128.h b/llvm/include/llvm/Support/LEB128.h
index 4e2262fb..0b8cb67 100644
--- a/llvm/include/llvm/Support/LEB128.h
+++ b/llvm/include/llvm/Support/LEB128.h
@@ -126,7 +126,7 @@
/// Utility function to decode a ULEB128 value.
///
/// If \p error is non-null, it will point to a static error message,
-/// if an error occured. It will not be modified on success.
+/// if an error occurred. It will not be modified on success.
inline uint64_t decodeULEB128(const uint8_t *p, unsigned *n = nullptr,
const uint8_t *end = nullptr,
const char **error = nullptr) {
@@ -160,7 +160,7 @@
/// Utility function to decode a SLEB128 value.
///
/// If \p error is non-null, it will point to a static error message,
-/// if an error occured. It will not be modified on success.
+/// if an error occurred. It will not be modified on success.
inline int64_t decodeSLEB128(const uint8_t *p, unsigned *n = nullptr,
const uint8_t *end = nullptr,
const char **error = nullptr) {
diff --git a/llvm/include/llvm/Support/raw_socket_stream.h b/llvm/include/llvm/Support/raw_socket_stream.h
index 2abff25..a0a5f2c 100644
--- a/llvm/include/llvm/Support/raw_socket_stream.h
+++ b/llvm/include/llvm/Support/raw_socket_stream.h
@@ -93,7 +93,7 @@
/// Accepts an incoming connection on the listening socket. This method can
/// optionally either block until a connection is available or timeout after a
/// specified amount of time has passed. By default the method will block
- /// until the socket has recieved a connection. If the accept timesout this
+ /// until the socket has received a connection. If the accept timesout this
/// method will return std::errc:timed_out
///
/// \param Timeout An optional timeout duration in milliseconds. Setting
diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp
index cd431bc..dd7468a 100644
--- a/llvm/lib/CodeGen/RegisterPressure.cpp
+++ b/llvm/lib/CodeGen/RegisterPressure.cpp
@@ -357,7 +357,7 @@
/// can never drop below this pressure.
void RegPressureTracker::initLiveThru(const RegPressureTracker &RPTracker) {
LiveThruPressure.assign(TRI->getNumRegPressureSets(), 0);
- assert(isBottomClosed() && "need bottom-up tracking to intialize.");
+ assert(isBottomClosed() && "need bottom-up tracking to initialize.");
for (const VRegMaskOrUnit &Pair : P.LiveOutRegs) {
VirtRegOrUnit VRegOrUnit = Pair.VRegOrUnit;
if (VRegOrUnit.isVirtualReg() &&
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 41cea45..6c14bea 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -101,7 +101,7 @@
Header.getOffset()}});
if (!Iter.second) {
logAllUnhandledErrors(
- createError("Collision occured between for truncated offset 0x" +
+ createError("Collision occurred between for truncated offset 0x" +
Twine::utohexstr(TruncOffset)),
errs());
Map.clear();
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 50b1bcb..8d7a207 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -8320,7 +8320,7 @@
// multiple mappings (technically not legal in OpenMP, but there is a case
// in Fortran for Common Blocks where this is neccesary), we will end up
// with GEP's into this array inside the kernel, that refer to the Global
- // but are technically seperate arguments to the kernel for all intents and
+ // but are technically separate arguments to the kernel for all intents and
// purposes. If we have mapped a segment that requires a GEP into the 0-th
// index, it will fold into an referal to the Global, if we then encounter
// this folded GEP during replacement all of the references to the
@@ -8328,7 +8328,7 @@
// that corresponds to it, including any other GEP's that refer to the
// Global that may be other arguments. This will invalidate all of the other
// preceding mapped arguments that refer to the same global that may be
- // seperate segments. To prevent this, we defer global processing until all
+ // separate segments. To prevent this, we defer global processing until all
// other processing has been performed.
if (llvm::isa<llvm::GlobalValue, llvm::GlobalObject, llvm::GlobalVariable>(
removeASCastIfPresent(Input))) {
diff --git a/llvm/lib/Support/TextEncoding.cpp b/llvm/lib/Support/TextEncoding.cpp
index 41f5187..453af6f 100644
--- a/llvm/lib/Support/TextEncoding.cpp
+++ b/llvm/lib/Support/TextEncoding.cpp
@@ -177,7 +177,7 @@
return std::error_code(E2BIG, std::generic_category());
}
}
- // Some other error occured.
+ // Some other error occurred.
Result.resize(Output - Result.data());
return std::error_code(EILSEQ, std::generic_category());
}
@@ -249,14 +249,14 @@
auto HandleError = [&Capacity, &Output, &OutputLength, &Result,
this](size_t Ret) {
if (Ret == static_cast<size_t>(-1)) {
- // An error occured. Check if we can gracefully handle it.
+ // An error occurred. Check if we can gracefully handle it.
if (errno == E2BIG && Capacity < Result.max_size()) {
HandleOverflow(Capacity, Output, OutputLength, Result);
// Reset converter
reset();
return std::error_code();
} else {
- // Some other error occured.
+ // Some other error occurred.
Result.resize(Output - Result.data());
return std::error_code(errno, std::generic_category());
}
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp b/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
index e86b473..0264d88 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
@@ -367,10 +367,10 @@
return TLI->isCanonicalized(Reg, MF);
}
-// The buffer_load_{i8, i16} intrinsics are intially lowered as buffer_load_{u8,
-// u16} instructions. Here, the buffer_load_{u8, u16} instructions are combined
-// with sign extension instrucions in order to generate buffer_load_{i8, i16}
-// instructions.
+// The buffer_load_{i8, i16} intrinsics are initially lowered as
+// buffer_load_{u8, u16} instructions. Here, the buffer_load_{u8, u16}
+// instructions are combined with sign extension instrucions in order to
+// generate buffer_load_{i8, i16} instructions.
// Identify buffer_load_{u8, u16}.
bool AMDGPUPostLegalizerCombinerImpl::matchCombineSignExtendInReg(
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp b/llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp
index 9bdaa42..3fd554a 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp
@@ -47,8 +47,8 @@
// corresponds to offset, second member corresponds to size of LDS global
// being replaced and third represents the total aligned size. It will
// have name "llvm.amdgcn.sw.lds.<kernel-name>.md". This global will have
-// an intializer with static LDS related offsets and sizes initialized.
-// But for dynamic LDS related entries, offsets will be intialized to
+// an initializer with static LDS related offsets and sizes initialized.
+// But for dynamic LDS related entries, offsets will be initialized to
// previous static LDS allocation end offset. Sizes for them will be zero
// initially. These dynamic LDS offset and size values will be updated
// within the kernel, since kernel can read the dynamic LDS size
diff --git a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
index 40a0cff..0ae30a2 100644
--- a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
@@ -220,7 +220,7 @@
// Parameters:
// ElementType: the type of the elements stored in the parent array.
// Offset: the Value* containing the byte offset into the array.
- // Return true if an error occured during the walk, false otherwise.
+ // Return true if an error occurred during the walk, false otherwise.
bool walkLogicalAccessChain(
GetElementPtrInst &GEP,
const std::function<void(Type *PointedType, uint64_t Index)>
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index a2557f4..a278b14 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -3235,7 +3235,7 @@
// bitcast <N x i1>(setcc ...) to concat iN, where N = 32 and 64 (illegal)
if (NumElts == 32 || NumElts == 64) {
- // Strategy: We will setcc them seperately in v16i8 -> v16i1
+ // Strategy: We will setcc them separately in v16i8 -> v16i1
// Bitcast them to i16, extend them to either i32 or i64.
// Add them together, shifting left 1 by 1.
SDValue Concat, SetCCVector;
diff --git a/llvm/lib/Target/X86/X86SchedLunarlakeP.td b/llvm/lib/Target/X86/X86SchedLunarlakeP.td
index 32979c6..a8bfade 100644
--- a/llvm/lib/Target/X86/X86SchedLunarlakeP.td
+++ b/llvm/lib/Target/X86/X86SchedLunarlakeP.td
@@ -83,7 +83,7 @@
// VEC EU has 180 reservation stations.
def LNLPVPort00_01_02_03 : ProcResGroup<[LNLPVPort00, LNLPVPort01, LNLPVPort02,
LNLPVPort03]>{
- let BufferSize = 180; // EU for INT and VEC are seperated
+ let BufferSize = 180; // EU for INT and VEC are separated
// VEC QUEUE SIZE = 60 + VEC EU RS (60+60)
}
// STD has 48 reservation stations.
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 8b760dd..9796b4f 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -13251,7 +13251,7 @@
// TODO: this is similar to AAAddressSpace, most of the code should be merged.
// But merging it created failing cased on gateway test that cannot be
-// reproduced locally. So should open a seperated PR to hande the merge of
+// reproduced locally. So should open a separated PR to handle the merge of
// AANoAliasAddrSpace and AAAddressSpace attribute
namespace {
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index b2c526b..02ece8b 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -2756,7 +2756,7 @@
/// A1, A2, ... and C are loop invariants into expressions like
/// ((A1 * C * B1) + (A2 * C * B2) + ...) and hoist the (A1 * C), (A2 * C), ...
/// invariant expressions. This functions returns true only if any hoisting has
-/// actually occured.
+/// actually occurred.
static bool hoistMulAddAssociation(Instruction &I, Loop &L,
ICFLoopSafetyInfo &SafetyInfo,
MemorySSAUpdater &MSSAU, AssumptionCache *AC,
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index b618aa1..074cc73 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -3181,7 +3181,7 @@
if (auto *I = dyn_cast<Instruction>(NewXNext))
I->copyIRFlags(XNext, /*IncludeWrapFlags=*/true);
- // Step 3: Adjust the successor basic block to recieve the computed
+ // Step 3: Adjust the successor basic block to receive the computed
// recurrence's final value instead of the recurrence itself.
XCurr->replaceUsesOutsideBlock(NewX, LoopHeaderBB);
@@ -3518,7 +3518,7 @@
CurLoop->getName() + ".tripcount", /*HasNUW=*/true,
/*HasNSW=*/Bitwidth != 2);
- // Step 2: Adjust the successor basic block to recieve the original
+ // Step 2: Adjust the successor basic block to receive the original
// induction variable's final value instead of the orig. IV itself.
IV->replaceUsesOutsideBlock(IVFinal, LoopHeaderBB);
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index a4c1e08..e9d78ba 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -3087,7 +3087,7 @@
}
assert(!Chain.Incs.empty() && "empty IV chains are not allowed");
- // The chain itself may require a register, so intialize cost to 1.
+ // The chain itself may require a register, so initialize cost to 1.
int cost = 1;
// A complete chain likely eliminates the need for keeping the original IV in
diff --git a/llvm/lib/Transforms/Utils/IRNormalizer.cpp b/llvm/lib/Transforms/Utils/IRNormalizer.cpp
index fefa49f..df8dcdd 100644
--- a/llvm/lib/Transforms/Utils/IRNormalizer.cpp
+++ b/llvm/lib/Transforms/Utils/IRNormalizer.cpp
@@ -427,7 +427,7 @@
// Process the remaining instructions.
//
// TODO: Do more a intelligent sorting of these instructions. For example,
- // separate between dead instructinos and instructions used in another
+ // separate between dead instructions and instructions used in another
// block. Use properties of the CFG the order instructions that are used
// in another block.
if (Visited.contains(&I))
diff --git a/llvm/test/CodeGen/AArch64/settag-merge-nonaligned-fp.ll b/llvm/test/CodeGen/AArch64/settag-merge-nonaligned-fp.ll
index 5b1eb13..2a7d202 100644
--- a/llvm/test/CodeGen/AArch64/settag-merge-nonaligned-fp.ll
+++ b/llvm/test/CodeGen/AArch64/settag-merge-nonaligned-fp.ll
@@ -1,5 +1,5 @@
; RUN: llc < %s -aarch64-order-frame-objects=0 | FileCheck %s
-; Regression test for bug that occured with FP that was not 16-byte aligned.
+; Regression test for bug that occurred with FP that was not 16-byte aligned.
; We would miscalculate the offset for the st2g.
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
diff --git a/llvm/test/CodeGen/AMDGPU/coalescing_makes_lanes_undef.mir b/llvm/test/CodeGen/AMDGPU/coalescing_makes_lanes_undef.mir
index cc839ff..2c9f016 100644
--- a/llvm/test/CodeGen/AMDGPU/coalescing_makes_lanes_undef.mir
+++ b/llvm/test/CodeGen/AMDGPU/coalescing_makes_lanes_undef.mir
@@ -3,7 +3,7 @@
# Register coalescer is going to eliminate %2:sgpr_32 = COPY %1.sub0 from bb.1
# by joining %2 and %1.sub0 into %0.sub0 register. Check that when this happen
-# the implicit intialization of %0.sub0 in the bb.2 have undef flag
+# the implicit initialization of %0.sub0 in the bb.2 have undef flag
# for the MIR to be valid.
---
diff --git a/llvm/test/DebugInfo/typeunit-header.test b/llvm/test/DebugInfo/typeunit-header.test
index f32cd41..3ad3e08 100644
--- a/llvm/test/DebugInfo/typeunit-header.test
+++ b/llvm/test/DebugInfo/typeunit-header.test
@@ -1,7 +1,7 @@
RUN: llvm-dwarfdump -v %p/Inputs/typeunit-header.elf-x86-64 | FileCheck %s
This is testing a bugfix where parsing the type unit header was not
-taking the unit's intial length field into account when validating.
+taking the unit's initial length field into account when validating.
The input file is hand-coded assembler to generate a type unit stub,
which only contains a type unit DIE with a sole visibility attribute.
diff --git a/llvm/test/MC/COFF/section.s b/llvm/test/MC/COFF/section.s
index fdd6570..0ee4cd4 100644
--- a/llvm/test/MC/COFF/section.s
+++ b/llvm/test/MC/COFF/section.s
@@ -240,7 +240,7 @@
.quad 4
// Notice the different section flags here.
-// This shouldn't overwrite the intial section flags.
+// This shouldn't overwrite the initial section flags.
.pushsection .data4,"dr"; .quad 1
.popsection
diff --git a/llvm/test/Transforms/PreISelIntrinsicLowering/X86/objc-arc.ll b/llvm/test/Transforms/PreISelIntrinsicLowering/X86/objc-arc.ll
index 37b07bb..1bb6d2b 100644
--- a/llvm/test/Transforms/PreISelIntrinsicLowering/X86/objc-arc.ll
+++ b/llvm/test/Transforms/PreISelIntrinsicLowering/X86/objc-arc.ll
@@ -149,7 +149,7 @@
; Note: we don't want this intrinsic to have its argument marked 'returned',
; since that breaks the autorelease elision marker optimization when
-; save/restores of the reciever are introduced between the msg send and the
+; save/restores of the receiver are introduced between the msg send and the
; retain. See issue#69658.
define ptr @test_objc_retainAutoreleasedReturnValue(ptr %arg0) {
; CHECK-LABEL: test_objc_retainAutoreleasedReturnValue
@@ -217,7 +217,7 @@
; Note: we don't want this intrinsic to have its argument marked 'returned',
; since that breaks the autorelease elision marker optimization when
-; save/restores of the reciever are introduced between the msg send and the
+; save/restores of the receiver are introduced between the msg send and the
; claim. See issue#69658.
define ptr @test_objc_unsafeClaimAutoreleasedReturnValue(ptr %arg0) {
; CHECK-LABEL: test_objc_unsafeClaimAutoreleasedReturnValue
diff --git a/llvm/test/tools/dsymutil/X86/modules-empty.m b/llvm/test/tools/dsymutil/X86/modules-empty.m
index cb03735..4e86f84 100644
--- a/llvm/test/tools/dsymutil/X86/modules-empty.m
+++ b/llvm/test/tools/dsymutil/X86/modules-empty.m
@@ -29,6 +29,6 @@
}
// The empty CU from the pcm should not get copied into the dSYM.
-// Check that module name occured only once.
+// Check that module name occurred only once.
// CHECK: DW_AT_name ("Empty")
// CHECK-NOT: DW_AT_name ("Empty")
diff --git a/llvm/test/tools/llvm-mca/X86/Haswell/mulx-same-regs.s b/llvm/test/tools/llvm-mca/X86/Haswell/mulx-same-regs.s
index 4cd49614..ad33c36 100644
--- a/llvm/test/tools/llvm-mca/X86/Haswell/mulx-same-regs.s
+++ b/llvm/test/tools/llvm-mca/X86/Haswell/mulx-same-regs.s
@@ -2,7 +2,7 @@
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -timeline -iterations=2 < %s | FileCheck %s
# PR51495: If the two destination registers are the same, the destination will
-# contain teh high half of the multiplication result.
+# contain the high half of the multiplication result.
# LLVM-MCA-BEGIN
mulxl %eax, %eax, %eax
diff --git a/llvm/test/tools/llvm-mca/X86/SkylakeClient/mulx-same-regs.s b/llvm/test/tools/llvm-mca/X86/SkylakeClient/mulx-same-regs.s
index 73ca478..9e6ecdb 100644
--- a/llvm/test/tools/llvm-mca/X86/SkylakeClient/mulx-same-regs.s
+++ b/llvm/test/tools/llvm-mca/X86/SkylakeClient/mulx-same-regs.s
@@ -2,7 +2,7 @@
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=skylake -timeline -iterations=2 < %s | FileCheck %s
# PR51495: If the two destination registers are the same, the destination will
-# contain teh high half of the multiplication result.
+# contain the high half of the multiplication result.
# LLVM-MCA-BEGIN
mulxl %eax, %eax, %eax
diff --git a/llvm/test/tools/llvm-mca/X86/Znver3/mulx-same-regs.s b/llvm/test/tools/llvm-mca/X86/Znver3/mulx-same-regs.s
index 8a5a014..6cef381 100644
--- a/llvm/test/tools/llvm-mca/X86/Znver3/mulx-same-regs.s
+++ b/llvm/test/tools/llvm-mca/X86/Znver3/mulx-same-regs.s
@@ -2,7 +2,7 @@
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver3 -timeline -iterations=2 < %s | FileCheck %s
# PR51495: If the two destination registers are the same, the destination will
-# contain teh high half of the multiplication result.
+# contain the high half of the multiplication result.
# LLVM-MCA-BEGIN
mulxl %eax, %eax, %eax
diff --git a/llvm/test/tools/llvm-ranlib/D-flag.test b/llvm/test/tools/llvm-ranlib/D-flag.test
index 49d0bd6..d8ce5ed 100644
--- a/llvm/test/tools/llvm-ranlib/D-flag.test
+++ b/llvm/test/tools/llvm-ranlib/D-flag.test
@@ -5,7 +5,7 @@
# RUN: env TZ=UTC touch -t 200001020304 %t.o
# RUN: rm -f %t.a %t-no-index.a && llvm-ar cqSU %t-no-index.a %t.o
-## Check that the intial listing has real values:
+## Check that the initial listing has real values:
# RUN: env TZ=UTC llvm-ar tv %t-no-index.a | FileCheck %s --check-prefix=REAL-VALUES
## Check that the -D flag clears the timestamps:
diff --git a/mlir/include/mlir/Analysis/DataFlowFramework.h b/mlir/include/mlir/Analysis/DataFlowFramework.h
index efce718..87ec01a 100644
--- a/mlir/include/mlir/Analysis/DataFlowFramework.h
+++ b/mlir/include/mlir/Analysis/DataFlowFramework.h
@@ -477,7 +477,7 @@
/// these requirements.
///
/// 1. Querying the state of a lattice anchor prior to visiting that anchor
-/// results in uninitialized state. Analyses must be aware of unintialized
+/// results in uninitialized state. Analyses must be aware of uninitialized
/// states.
/// 2. Analysis states can reach fixpoints, where subsequent updates will never
/// trigger a change in the state.
diff --git a/mlir/include/mlir/Dialect/Bufferization/Transforms/BufferViewFlowAnalysis.h b/mlir/include/mlir/Dialect/Bufferization/Transforms/BufferViewFlowAnalysis.h
index 4015231..534768c 100644
--- a/mlir/include/mlir/Dialect/Bufferization/Transforms/BufferViewFlowAnalysis.h
+++ b/mlir/include/mlir/Dialect/Bufferization/Transforms/BufferViewFlowAnalysis.h
@@ -19,7 +19,7 @@
/// class since you need to determine safe positions to place alloc and
/// deallocs. This alias analysis only finds aliases that might have been
/// created on top of the specified view. To find all aliases, resolve the
-/// intial alloc/argument value.
+/// initial alloc/argument value.
class BufferViewFlowAnalysis {
public:
using ValueSetT = SmallPtrSet<Value, 16>;
diff --git a/mlir/include/mlir/Interfaces/TilingInterface.td b/mlir/include/mlir/Interfaces/TilingInterface.td
index c30782a..e14ea92 100644
--- a/mlir/include/mlir/Interfaces/TilingInterface.td
+++ b/mlir/include/mlir/Interfaces/TilingInterface.td
@@ -439,7 +439,7 @@
reduction dimension are converted to parallel dimensions with a size
less or equal to the tile size. This is meant to be used with
`mergeReductions` method which will combine the partial reductions.
- The method recieves the `offset` and `sizes` for all iteration space
+ The method receives the `offset` and `sizes` for all iteration space
dimensions, as well as the iteration number of the tiled reduction
dimensions (which is the induction variable of the inter-tile loop
for the reduction dimension divided by the step of the loop) in
@@ -485,7 +485,7 @@
the tiled operation. This is same as
TilingInterface:::getResultTilePosition, but determines the result
tile position for partial reduction.
- The method recieves the `offset` and `sizes` for all iteration space
+ The method receives the `offset` and `sizes` for all iteration space
dimensions, as well as the iteration number of the tiled reduction
dimensions (which is the induction variable of the inter-tile loop
for the reduction dimension divided by the tile size specified) in
diff --git a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
index 980442e..565a537 100644
--- a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
+++ b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
@@ -221,7 +221,7 @@
// However, this would most likely require updating the lowerings to LLVM.
if (isa<ScalableVectorType>(type) && !isa<SplatElementsAttr>(getValue()))
return emitOpError(
- "intializing scalable vectors with elements attribute is not supported"
+ "initializing scalable vectors with elements attribute is not supported"
" unless it's a vector splat");
return success();
}
diff --git a/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.cpp b/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.cpp
index 9694a40..2963b34 100644
--- a/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.cpp
+++ b/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.cpp
@@ -267,7 +267,7 @@
// since the thing we're parsing is supposed to be a variable *binding*
// rather than a variable *use*. However, the call to `VarEnv::bindVar`
// (and its corresponding call to `DimLvlMapParser::recordVarBinding`)
- // already occured in `parseLvlVarBindingList`, and therefore we must
+ // already occurred in `parseLvlVarBindingList`, and therefore we must
// use `parseVarUsage` here in order to operationally do the right thing.
const auto varID = parseVarUsage(VarKind::Level, /*requireKnown=*/true);
FAILURE_IF_FAILED(varID)
diff --git a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
index 65425e2..4e7942e 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -2143,7 +2143,7 @@
auto finiCB = [&](llvm::OpenMPIRBuilder::InsertPointTy ip) -> llvm::Error {
llvm::IRBuilderBase::InsertPointGuard guard(llvmBuilder);
- // ip is currently in the block branched to if cancellation occured.
+ // ip is currently in the block branched to if cancellation occurred.
// We need to create a branch to terminate that block.
llvmBuilder.restoreIP(ip);
diff --git a/mlir/test/Dialect/Arith/invalid.mlir b/mlir/test/Dialect/Arith/invalid.mlir
index 7bd6837..2e3debc 100644
--- a/mlir/test/Dialect/Arith/invalid.mlir
+++ b/mlir/test/Dialect/Arith/invalid.mlir
@@ -74,7 +74,7 @@
func.func @constant_invalid_scalable_1d_vec_initialization() {
^bb0:
- // expected-error@+1 {{'arith.constant' op intializing scalable vectors with elements attribute is not supported unless it's a vector splat}}
+ // expected-error@+1 {{'arith.constant' op initializing scalable vectors with elements attribute is not supported unless it's a vector splat}}
%c = arith.constant dense<[0, 1]> : vector<[2] x i32>
return
}
@@ -83,7 +83,7 @@
func.func @constant_invalid_scalable_2d_vec_initialization() {
^bb0:
- // expected-error@+1 {{'arith.constant' op intializing scalable vectors with elements attribute is not supported unless it's a vector splat}}
+ // expected-error@+1 {{'arith.constant' op initializing scalable vectors with elements attribute is not supported unless it's a vector splat}}
%c = arith.constant dense<[[3, 3], [1, 1]]> : vector<2 x [2] x i32>
return
}
diff --git a/mlir/test/lib/Analysis/TestDataFlowFramework.cpp b/mlir/test/lib/Analysis/TestDataFlowFramework.cpp
index 3eb39fc..4267fb4 100644
--- a/mlir/test/lib/Analysis/TestDataFlowFramework.cpp
+++ b/mlir/test/lib/Analysis/TestDataFlowFramework.cpp
@@ -32,7 +32,7 @@
os << "none";
}
- /// Join the state with another. If either is unintialized, take the
+ /// Join the state with another. If either is uninitialized, take the
/// initialized value. Otherwise, XOR the integer values.
ChangeResult join(const FooState &rhs) {
if (rhs.isUninitialized())
diff --git a/openmp/libompd/gdb-plugin/ompdModule.c b/openmp/libompd/gdb-plugin/ompdModule.c
index c6020de..9078b24 100644
--- a/openmp/libompd/gdb-plugin/ompdModule.c
+++ b/openmp/libompd/gdb-plugin/ompdModule.c
@@ -867,7 +867,7 @@
return Py_BuildValue("i", -1);
} else if (retVal != ompd_rc_ok) {
_printf(
- "An error occured when calling ompd_get_thread_handle! Error code: %d",
+ "An error occurred when calling ompd_get_thread_handle! Error code: %d",
retVal);
return Py_BuildValue("l", retVal);
}
@@ -1365,7 +1365,7 @@
(ompd_task_handle_t *)(PyCapsule_GetPointer(handlePy, "TaskHandle"));
handle = taskHandle;
} else {
- _printf("An error occured when calling ompd_get_tool_data! Scope type not "
+ _printf("An error occurred when calling ompd_get_tool_data! Scope type not "
"supported.");
return Py_None;
}
@@ -1376,7 +1376,7 @@
ompd_rc_t retVal = ompd_get_tool_data(handle, scope, &value, &ptr);
if (retVal != ompd_rc_ok) {
- _printf("An error occured when calling ompd_get_tool_data! Error code: %d",
+ _printf("An error occurred when calling ompd_get_tool_data! Error code: %d",
retVal);
return Py_None;
}
diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp
index 48e29c9..3277a09 100644
--- a/openmp/runtime/src/kmp_runtime.cpp
+++ b/openmp/runtime/src/kmp_runtime.cpp
@@ -6747,7 +6747,7 @@
}
}
if (__kmp_shm_available && shm_preexist == 0) { // SHM created, set size
- if (ftruncate(fd1, SHM_SIZE) == -1) { // error occured setting size;
+ if (ftruncate(fd1, SHM_SIZE) == -1) { // error occurred setting size;
KMP_WARNING(FunctionError, "Can't set size of SHM");
__kmp_shm_available = false;
}
@@ -6796,7 +6796,7 @@
}
if (__kmp_tmp_available && tmp_preexist == 0) {
// we created /tmp file now set size
- if (ftruncate(fd1, SHM_SIZE) == -1) { // error occured setting size;
+ if (ftruncate(fd1, SHM_SIZE) == -1) { // error occurred setting size;
KMP_WARNING(FunctionError, "Can't set size of /tmp file");
__kmp_tmp_available = false;
}
diff --git a/openmp/runtime/test/api/omp60_memory_routines.c b/openmp/runtime/test/api/omp60_memory_routines.c
index 97b648a..268a580 100644
--- a/openmp/runtime/test/api/omp60_memory_routines.c
+++ b/openmp/runtime/test/api/omp60_memory_routines.c
@@ -85,7 +85,7 @@
// * omp_get_devices_memspace
// * omp_get_devices_and_host_memspace
// Test if runtime returns the same memory space handle for the same input.
- // Test if we can use the memory space to intialize allocator.
+ // Test if we can use the memory space to initialize allocator.
for (i = 0; i < num_devices; i++) {
ms1 = omp_get_device_memspace(i, predef);
CHECK_OR_RET_FAIL(ms1 != omp_null_mem_space);