diff --git a/bolt/lib/Core/DebugNames.cpp b/bolt/lib/Core/DebugNames.cpp index 787ef742d5ee..893678557f60 100644 --- a/bolt/lib/Core/DebugNames.cpp +++ b/bolt/lib/Core/DebugNames.cpp @@ -677,11 +677,11 @@ static constexpr uint32_t getDebugNamesHeaderSize() { 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 51613e623abb..affdc9e8ee52 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 @@ _Z3foov: # @_Z3foov .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 f5393cf94d46..dda537ab0ade 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 @@ main: # @main .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 1fdb479b9a03..42a60bb89702 100644 --- a/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp @@ -292,7 +292,7 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag, // 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 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag, // std::make_smart_ptr(std::vector({1})); // std::make_smart_ptr(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 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag, 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 bcf72255423b..3ce0d6258ea6 100644 --- a/clang-tools-extra/clangd/Hover.cpp +++ b/clang-tools-extra/clangd/Hover.cpp @@ -1793,7 +1793,7 @@ void parseDocumentationParagraph(llvm::StringRef Text, markup::Paragraph &Out) { 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 c49de377d54c..2e005bfe3537 100644 --- a/clang-tools-extra/clangd/index/FileIndex.cpp +++ b/clang-tools-extra/clangd/index/FileIndex.cpp @@ -143,7 +143,7 @@ FileShardedIndex::FileShardedIndex(IndexFileIn Input) } } } - // 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 e6787f808375..afacf9475c10 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 @@ void SplitDelimiters() { // 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 2f11e0c3e317..573e3f6ce816 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 @@ end: //------------------------------ 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 @@ void unittest_b2_10() { //-------------------------- 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 654bebbaf8dd..23eb954ce774 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -6988,7 +6988,7 @@ public: 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 342e99fb0e87..e1662e0792e6 100644 --- a/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td +++ b/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td @@ -172,11 +172,11 @@ def CallAndMessageChecker "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 8e91d48b4ba6..3be528feb325 100644 --- a/clang/lib/APINotes/APINotesYAMLCompiler.cpp +++ b/clang/lib/APINotes/APINotesYAMLCompiler.cpp @@ -743,14 +743,14 @@ class YAMLConverter { 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 @@ public: 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 @@ public: 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 05748359b7ce..9d1b00293f39 100644 --- a/clang/lib/Analysis/FlowSensitive/Transfer.cpp +++ b/clang/lib/Analysis/FlowSensitive/Transfer.cpp @@ -96,7 +96,7 @@ static BoolValue &unpackValue(BoolValue &V, Environment &Env) { } // 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 03485b7e81ab..c7bffe2d0d18 100644 --- a/clang/lib/Basic/OpenMPKinds.cpp +++ b/clang/lib/Basic/OpenMPKinds.cpp @@ -897,7 +897,7 @@ void clang::getOpenMPCaptureRegions( 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 7496deb74cb6..b0563b39e99e 100644 --- a/clang/lib/CrossTU/CrossTranslationUnit.cpp +++ b/clang/lib/CrossTU/CrossTranslationUnit.cpp @@ -202,10 +202,10 @@ parseCrossTUIndex(StringRef IndexPath) { 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( index_error_code::multiple_definitions, IndexPath.str(), LineNo); diff --git a/clang/lib/Parse/ParseHLSLRootSignature.cpp b/clang/lib/Parse/ParseHLSLRootSignature.cpp index 7be6eecc520b..80e81e5c403e 100644 --- a/clang/lib/Parse/ParseHLSLRootSignature.cpp +++ b/clang/lib/Parse/ParseHLSLRootSignature.cpp @@ -1395,7 +1395,7 @@ std::optional RootSignatureParser::handleFloatLiteral(bool Negated) { 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 9396b4d9d5ba..0b2f00f41733 100644 --- a/clang/lib/Sema/CheckExprLifetime.cpp +++ b/clang/lib/Sema/CheckExprLifetime.cpp @@ -345,7 +345,7 @@ shouldTrackFirstArgumentForConstructor(const CXXConstructExpr *Ctor) { // 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 @@ checkExprLifetimeImpl(Sema &SemaRef, const InitializedEntity *InitEntity, 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 5df1c3b33a31..6c40b92ddfa1 100644 --- a/clang/lib/Sema/SemaCUDA.cpp +++ b/clang/lib/Sema/SemaCUDA.cpp @@ -252,7 +252,7 @@ SemaCUDA::CUDAVariableTarget SemaCUDA::IdentifyTarget(const VarDecl *Var) { 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() && !hasExplicitAttr(Var)) diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 51b3f80590d1..c96189172a01 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -10990,18 +10990,18 @@ void Sema::ActOnFinishDelayedCXXMethodDeclaration(Scope *S, Decl *MethodD) { 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 bc923c80b713..a53d578fc35a 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -5365,7 +5365,7 @@ bool TreeTransform::PreparePackForExpansion(TemplateArgumentLoc In, // }; // TupleWithInt::type y; // At this point we will see the `__builtin_dedup_pack` 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 05a83dbfcb7d..f207323dd122 100644 --- a/clang/lib/StaticAnalyzer/Checkers/WebKit/ForwardDeclChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/WebKit/ForwardDeclChecker.cpp @@ -248,7 +248,7 @@ public: 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 @@ public: 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 6e1aca9a5177..e303ca0aad16 100644 --- a/clang/test/Analysis/csv2json.py +++ b/clang/test/Analysis/csv2json.py @@ -96,7 +96,7 @@ def main(): 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 8456751173ff..e2d190daaaa9 100644 --- a/clang/test/Analysis/cxx-uninitialized-object-inheritance.cpp +++ b/clang/test/Analysis/cxx-uninitialized-object-inheritance.cpp @@ -645,7 +645,7 @@ class NonVirtualDiamondInheritanceTest6 : public First6, public Second6 { 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 43b162838850..daaf6f418c7d 100644 --- a/clang/test/Analysis/cxx-uninitialized-object.cpp +++ b/clang/test/Analysis/cxx-uninitialized-object.cpp @@ -184,7 +184,7 @@ class CtorDelegationTest1 { 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 @@ class CtorDelegationTest2 { 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 3ac84213b9e9..758037b1233f 100644 --- a/clang/test/Analysis/uninit-ps-rdar6145427.m +++ b/clang/test/Analysis/uninit-ps-rdar6145427.m @@ -30,8 +30,8 @@ extern NSString * const NSUndoManagerCheckpointNotification; 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 7f73a4ff431a..4ad17a044a92 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 @@ namespace N1 { template 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'; 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 f01cad1dacf2..772a1f6ea2c7 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 d7fb15d5dd9a..042e223b9ee8 100644 --- a/clang/unittests/Format/FormatTestCSharp.cpp +++ b/clang/unittests/Format/FormatTestCSharp.cpp @@ -881,7 +881,7 @@ public class Test 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 @@ public class Test 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 @@ public class Test 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 @@ public class Test 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 aa4d40473edb..7b7cf8592275 100644 --- a/compiler-rt/lib/builtins/arm/addsf3.S +++ b/compiler-rt/lib/builtins/arm/addsf3.S @@ -170,7 +170,7 @@ LOCAL_LABEL(do_substraction): 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 d20599921e7d..7a05f489b8ce 100644 --- a/compiler-rt/lib/builtins/fp_add_impl.inc +++ b/compiler-rt/lib/builtins/fp_add_impl.inc @@ -106,7 +106,7 @@ static __inline fp_t __addXf3__(fp_t a, fp_t b) { 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 6a84a2a4ae5a..129fd2394111 100644 --- a/compiler-rt/lib/gwp_asan/tests/backtrace.cpp +++ b/compiler-rt/lib/gwp_asan/tests/backtrace.cpp @@ -86,7 +86,7 @@ TEST(Backtrace, ExceedsStorableLength) { 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 033002cf957a..dbde52dee6ee 100644 --- a/flang-rt/unittests/Runtime/NumericalFormatTest.cpp +++ b/flang-rt/unittests/Runtime/NumericalFormatTest.cpp @@ -150,7 +150,7 @@ TEST(IOApiTests, MultilineOutputTest) { 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(status); @@ -184,7 +184,7 @@ TEST(IOApiTests, ListInputTest) { << "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(status); @@ -200,7 +200,7 @@ TEST(IOApiTests, ListInputTest) { << 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(status); diff --git a/flang/lib/Lower/ConvertConstant.cpp b/flang/lib/Lower/ConvertConstant.cpp index 376ec12150c7..c44b9e8a3796 100644 --- a/flang/lib/Lower/ConvertConstant.cpp +++ b/flang/lib/Lower/ConvertConstant.cpp @@ -680,7 +680,7 @@ genOutlineArrayLit(Fortran::lower::AbstractConverter &converter, 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 2acf0dee1f77..23871ca04bcc 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::OmpClause::ThreadLimit &x) { } void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) { - bool isDependClauseOccured{false}; + bool isDependClauseOccurred{false}; int targetCount{0}, targetSyncCount{0}; const auto &dir{std::get(x.v.t)}; std::set objectSymbolList; @@ -5551,7 +5551,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) { } }, [&](const parser::OmpClause::Depend &dependClause) { - isDependClauseOccured = true; + isDependClauseOccurred = true; }, [&](const parser::OmpClause::Destroy &destroyClause) { const auto &interopVar{ @@ -5585,7 +5585,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) { 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 98dc40ecd0a8..d06700a787e9 100644 --- a/libc/src/__support/RPC/rpc_server.h +++ b/libc/src/__support/RPC/rpc_server.h @@ -160,7 +160,7 @@ LIBC_INLINE static void handle_printf(rpc::Server::Port &port, 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 @@ LIBC_INLINE static void handle_printf(rpc::Server::Port &port, 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 copied_strs[num_lanes]; auto HasPendingCopies = [](TempVector 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 9d86bf3dab8b..fe6bc194edd5 100644 --- a/libc/src/__support/math/cbrt.h +++ b/libc/src/__support/math/cbrt.h @@ -35,7 +35,7 @@ using namespace fputil; // > 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 @@ LIBC_INLINE static constexpr double cbrt(double x) { 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 873a11378065..54c7aa1d1cb5 100644 --- a/libc/src/__support/str_to_float.h +++ b/libc/src/__support/str_to_float.h @@ -124,7 +124,7 @@ eisel_lemire(ExpandedFloat init_num, // 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 @@ eisel_lemire(ExpandedFloat init_num, (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 e0ad9b6e2f56..33d469c620ca 100644 --- a/libc/src/stdio/generic/fgets.cpp +++ b/libc/src/stdio/generic/fgets.cpp @@ -44,7 +44,7 @@ LLVM_LIBC_FUNCTION(char *, fgets, 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 4be21677f7f1..8dbd8d7fc4f2 100644 --- a/libc/src/stdlib/strfroml.cpp +++ b/libc/src/stdlib/strfroml.cpp @@ -24,7 +24,7 @@ LLVM_LIBC_FUNCTION(int, strfroml, 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 8957b15b780a..eed9b67ef8db 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 fdd9b057f0b4..9aa7ad2259a6 100644 --- a/lldb/docs/resources/lldbgdbremote.md +++ b/lldb/docs/resources/lldbgdbremote.md @@ -2025,7 +2025,7 @@ the symbol can now be resolved. 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 90b8fd50cb5c..33058bc7729b 100644 --- a/lldb/docs/resources/qemu-testing.rst +++ b/lldb/docs/resources/qemu-testing.rst @@ -146,7 +146,7 @@ Without Bridge Networking 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 dd475ddf6c17..752126c92394 100644 --- a/lldb/include/lldb/API/SBCommandInterpreter.h +++ b/lldb/include/lldb/API/SBCommandInterpreter.h @@ -258,7 +258,7 @@ public: /// 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 70829c04f5e5..637d4c37b90b 100644 --- a/lldb/include/lldb/Target/Platform.h +++ b/lldb/include/lldb/Target/Platform.h @@ -925,7 +925,7 @@ public: /// 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 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 2927e6969230..e189543b70cd 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h @@ -412,7 +412,7 @@ private: /// 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 GetGnuDebugDataObjectFile(); @@ -424,7 +424,7 @@ private: /// found. /// /// \return The bytes that represent the string table data or \c std::nullopt - /// if an error occured. + /// if an error occurred. std::optional GetDynamicData(); /// Get the bytes that represent the dynamic string table data. @@ -435,7 +435,7 @@ private: /// 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 GetDynstrData(); /// Read the bytes pointed to by the \a dyn dynamic entry. @@ -453,7 +453,7 @@ private: /// 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 ReadDataFromDynamic(const elf::ELFDynamic *dyn, uint64_t length, uint64_t offset = 0); @@ -468,7 +468,7 @@ private: /// /// \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 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 bae07245bdfa..80a8f441da12 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -4513,7 +4513,7 @@ static FieldEnum::Enumerators ParseEnumEvalues(const XMLNode &enum_node) { 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 abe158168268..951edde94b14 100644 --- a/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp +++ b/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp @@ -151,7 +151,7 @@ TraceHTR::TraceHTR(Thread &thread, TraceCursor &cursor) }; 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 66aa19be1a46..6c3a23681423 100644 --- a/lldb/source/Plugins/TraceExporter/common/TraceHTR.h +++ b/lldb/source/Plugins/TraceExporter/common/TraceHTR.h @@ -264,7 +264,7 @@ public: 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 575dfae850c1..0b3f82debd2a 100644 --- a/lldb/source/ValueObject/DILEval.cpp +++ b/lldb/source/ValueObject/DILEval.cpp @@ -270,7 +270,7 @@ llvm::Expected Interpreter::Evaluate(const ASTNode &node) { return llvm::make_error(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 825e1a4b79fd..ecda353a421e 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 @@ class AArch64LinuxMTEMemoryTagCoreFileTestCase(TestBase): ], ) - # 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 8a76d6c6c40c..33f8c1c0830b 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 @@ class AArch64LinuxMTEMemoryTagAccessTestCase(TestBase): ) # 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 @@ class AArch64LinuxMTEMemoryTagAccessTestCase(TestBase): ) # 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 cd2293acbc82..7479fec6aa8a 100644 --- a/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py +++ b/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py @@ -16,7 +16,7 @@ class TestdSYMModuleInit(TestBase): @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 b02eea6bbc4f..ed25049d0920 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 959097dc52f9..c63dfda6947f 100644 --- a/lldb/unittests/Utility/StreamTest.cpp +++ b/lldb/unittests/Utility/StreamTest.cpp @@ -504,7 +504,7 @@ TEST_F(StreamTest, PutRawBytesToMixedEndian) { #endif } -TEST_F(StreamTest, PutRawBytesZeroLenght) { +TEST_F(StreamTest, PutRawBytesZeroLength) { uint32_t value = 0x12345678; s.PutRawBytes(static_cast(&value), 0, hostByteOrder, @@ -516,7 +516,7 @@ TEST_F(StreamTest, PutRawBytesZeroLenght) { EXPECT_EQ(0U, s.GetWrittenBytes()); } -TEST_F(StreamTest, PutBytesAsRawHex8ZeroLenght) { +TEST_F(StreamTest, PutBytesAsRawHex8ZeroLength) { uint32_t value = 0x12345678; s.PutBytesAsRawHex8(static_cast(&value), 0, hostByteOrder, diff --git a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h index 15d48c84dc33..037fcaa863fe 100644 --- a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h +++ b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h @@ -4012,7 +4012,7 @@ public: /// 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 4e2262fb15c5..0b8cb6781aec 100644 --- a/llvm/include/llvm/Support/LEB128.h +++ b/llvm/include/llvm/Support/LEB128.h @@ -126,7 +126,7 @@ inline unsigned encodeULEB128(uint64_t Value, uint8_t *p, /// 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 @@ inline uint64_t decodeULEB128(const uint8_t *p, unsigned *n = nullptr, /// 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 2abff25920d1..a0a5f2c723ee 100644 --- a/llvm/include/llvm/Support/raw_socket_stream.h +++ b/llvm/include/llvm/Support/raw_socket_stream.h @@ -93,7 +93,7 @@ public: /// 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 cd431bc7a171..dd7468a1309d 100644 --- a/llvm/lib/CodeGen/RegisterPressure.cpp +++ b/llvm/lib/CodeGen/RegisterPressure.cpp @@ -357,7 +357,7 @@ void RegPressureTracker::closeRegion() { /// 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 41cea4530b99..6c14beab0aaf 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -101,7 +101,7 @@ void fixupIndexV4(DWARFContext &C, DWARFUnitIndex &Index) { 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 50b1bcb1bb9a..8d7a207a91f5 100644 --- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp +++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp @@ -8320,7 +8320,7 @@ static Expected createOutlinedFunction( // 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 @@ static Expected createOutlinedFunction( // 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( removeASCastIfPresent(Input))) { diff --git a/llvm/lib/Support/TextEncoding.cpp b/llvm/lib/Support/TextEncoding.cpp index 41f51877d712..453af6f7287b 100644 --- a/llvm/lib/Support/TextEncoding.cpp +++ b/llvm/lib/Support/TextEncoding.cpp @@ -177,7 +177,7 @@ TextEncodingConverterICU::convertString(StringRef Source, 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 @@ TextEncodingConverterIconv::convertString(StringRef Source, auto HandleError = [&Capacity, &Output, &OutputLength, &Result, this](size_t Ret) { if (Ret == static_cast(-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 e86b4738bed1..0264d88c4d0e 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp @@ -367,10 +367,10 @@ bool AMDGPUPostLegalizerCombinerImpl::matchRemoveFcanonicalize( 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 9bdaa4229a6e..3fd554a4c044 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..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 40a0cff6984c..0ae30a2cdf1a 100644 --- a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp +++ b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp @@ -220,7 +220,7 @@ class SPIRVEmitIntrinsics // 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 diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index a2557f45395c..a278b143ef4d 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp @@ -3235,7 +3235,7 @@ static SDValue performBitcastCombine(SDNode *N, // bitcast (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 32979c637c12..a8bfade7157c 100644 --- a/llvm/lib/Target/X86/X86SchedLunarlakeP.td +++ b/llvm/lib/Target/X86/X86SchedLunarlakeP.td @@ -83,7 +83,7 @@ def LNLPPort00_01_02_03_04_05 : ProcResGroup<[LNLPPort00, LNLPPort01, LNLPPort02 // 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 8b760dd8a1f9..9796b4f4cc40 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -13251,7 +13251,7 @@ struct AAAddressSpaceCallSiteArgument final : AAAddressSpaceImpl { // 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 b2c526b41502..02ece8bdf31d 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -2756,7 +2756,7 @@ static bool isReassociableOp(Instruction *I, unsigned IntOpcode, /// 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 b618aa198632..074cc73d5308 100644 --- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -3181,7 +3181,7 @@ bool LoopIdiomRecognize::recognizeShiftUntilBitTest() { if (auto *I = dyn_cast(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 @@ bool LoopIdiomRecognize::recognizeShiftUntilZero() { 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 a4c1e08430b6..e9d78baece25 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -3087,7 +3087,7 @@ static bool isProfitableChain(IVChain &Chain, } 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 fefa49f68c8d..df8dcddc7b32 100644 --- a/llvm/lib/Transforms/Utils/IRNormalizer.cpp +++ b/llvm/lib/Transforms/Utils/IRNormalizer.cpp @@ -427,7 +427,7 @@ void IRNormalizer::reorderInstructions(Function &F) const { // 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 5b1eb131313f..2a7d20241798 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 cc839ff966ab..2c9f0162ea94 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 f32cd41f8e33..3ad3e08c5bd4 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 fdd65701b105..0ee4cd461aad 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 37b07bb99ec2..1bb6d2bb0061 100644 --- a/llvm/test/Transforms/PreISelIntrinsicLowering/X86/objc-arc.ll +++ b/llvm/test/Transforms/PreISelIntrinsicLowering/X86/objc-arc.ll @@ -149,7 +149,7 @@ entry: ; 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 @@ entry: ; 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 cb0373572949..4e86f84c91ce 100644 --- a/llvm/test/tools/dsymutil/X86/modules-empty.m +++ b/llvm/test/tools/dsymutil/X86/modules-empty.m @@ -29,6 +29,6 @@ int main() { } // 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 4cd496144c4b..ad33c3656bfa 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 73ca47840c58..9e6ecdb77838 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 8a5a0148cf58..6cef381349ad 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 49d0bd6ae811..d8ce5ed90810 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 efce718dde8a..87ec01a918d9 100644 --- a/mlir/include/mlir/Analysis/DataFlowFramework.h +++ b/mlir/include/mlir/Analysis/DataFlowFramework.h @@ -477,7 +477,7 @@ private: /// 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 4015231c845d..534768cb9f09 100644 --- a/mlir/include/mlir/Dialect/Bufferization/Transforms/BufferViewFlowAnalysis.h +++ b/mlir/include/mlir/Dialect/Bufferization/Transforms/BufferViewFlowAnalysis.h @@ -19,7 +19,7 @@ namespace mlir { /// 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; diff --git a/mlir/include/mlir/Interfaces/TilingInterface.td b/mlir/include/mlir/Interfaces/TilingInterface.td index c30782a25e40..e14ea926f4d0 100644 --- a/mlir/include/mlir/Interfaces/TilingInterface.td +++ b/mlir/include/mlir/Interfaces/TilingInterface.td @@ -439,7 +439,7 @@ def PartialReductionOpInterface : 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 @@ def PartialReductionOpInterface : 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 980442efdf70..565a53761697 100644 --- a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp +++ b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp @@ -221,7 +221,7 @@ LogicalResult arith::ConstantOp::verify() { // However, this would most likely require updating the lowerings to LLVM. if (isa(type) && !isa(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 9694a40807be..2963b3463f7e 100644 --- a/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.cpp +++ b/mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.cpp @@ -267,7 +267,7 @@ DimLvlMapParser::parseLvlVarBinding(bool requireLvlVarBinding) { // 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 65425e29bc14..4e7942e382c8 100644 --- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp +++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp @@ -2143,7 +2143,7 @@ pushCancelFinalizationCB(SmallVectorImpl &cancelTerminators, 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 7bd68372de47..2e3debcb263c 100644 --- a/mlir/test/Dialect/Arith/invalid.mlir +++ b/mlir/test/Dialect/Arith/invalid.mlir @@ -74,7 +74,7 @@ func.func @constant_out_of_range() { 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_1d_vec_initialization() { 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 3eb39fc950da..4267fb42266c 100644 --- a/mlir/test/lib/Analysis/TestDataFlowFramework.cpp +++ b/mlir/test/lib/Analysis/TestDataFlowFramework.cpp @@ -32,7 +32,7 @@ public: 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 c6020de30671..9078b240c08c 100644 --- a/openmp/libompd/gdb-plugin/ompdModule.c +++ b/openmp/libompd/gdb-plugin/ompdModule.c @@ -867,7 +867,7 @@ static PyObject *get_thread_handle(PyObject *self, PyObject *args) { 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 @@ static PyObject *call_ompd_get_tool_data(PyObject *self, PyObject *args) { (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 @@ static PyObject *call_ompd_get_tool_data(PyObject *self, PyObject *args) { 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 48e29c9f9fe4..3277a09c6497 100644 --- a/openmp/runtime/src/kmp_runtime.cpp +++ b/openmp/runtime/src/kmp_runtime.cpp @@ -6747,7 +6747,7 @@ void __kmp_register_library_startup(void) { } } 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 @@ void __kmp_register_library_startup(void) { } 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 97b648a7a01b..268a580767cf 100644 --- a/openmp/runtime/test/api/omp60_memory_routines.c +++ b/openmp/runtime/test/api/omp60_memory_routines.c @@ -85,7 +85,7 @@ static int test_mem_space(void) { // * 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);