From 898b5c9f5e7715f3ea4bb0ca2a8f23c301efa9c2 Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Sun, 22 Jan 2023 19:59:52 +0100 Subject: [PATCH] [NFC] Fix "form/from" typos Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D142007 --- clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp | 2 +- libcxx/include/__format/extended_grapheme_cluster_table.h | 2 +- libcxx/utils/generate_extended_grapheme_cluster_table.py | 2 +- lldb/include/lldb/Host/File.h | 2 +- lldb/source/Plugins/CMakeLists.txt | 2 +- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h | 2 +- llvm/lib/Analysis/IVDescriptors.cpp | 2 +- llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 +- llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp | 2 +- llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 +- llvm/lib/Transforms/Scalar/ConstantHoisting.cpp | 2 +- llvm/test/DebugInfo/ARM/PR26163.ll | 2 +- llvm/tools/llvm-exegesis/lib/Clustering.cpp | 2 +- llvm/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp | 2 +- llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp | 2 +- mlir/lib/Dialect/Transform/IR/TransformDialect.cpp | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp b/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp index 7286f94..44166aa 100644 --- a/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp @@ -1095,7 +1095,7 @@ ObjCLoopChecker::checkPointerEscape(ProgramStateRef State, PointerEscapeKind Kind) const { SymbolRef ImmutableReceiver = getMethodReceiverIfKnownImmutable(Call); - // Remove the invalidated symbols form the collection count map. + // Remove the invalidated symbols from the collection count map. for (InvalidatedSymbols::const_iterator I = Escaped.begin(), E = Escaped.end(); I != E; ++I) { diff --git a/libcxx/include/__format/extended_grapheme_cluster_table.h b/libcxx/include/__format/extended_grapheme_cluster_table.h index 0e00670..1ffcfeb 100644 --- a/libcxx/include/__format/extended_grapheme_cluster_table.h +++ b/libcxx/include/__format/extended_grapheme_cluster_table.h @@ -111,7 +111,7 @@ enum class __property : uint8_t { /// - https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt /// /// The data has 3 values -/// - bits [0, 3] The property. One of the values generated form the datafiles +/// - bits [0, 3] The property. One of the values generated from the datafiles /// of \ref __property /// - bits [4, 10] The size of the range. /// - bits [11, 31] The lower bound code point of the range. The upper bound of diff --git a/libcxx/utils/generate_extended_grapheme_cluster_table.py b/libcxx/utils/generate_extended_grapheme_cluster_table.py index 7dd2016..2762c01 100755 --- a/libcxx/utils/generate_extended_grapheme_cluster_table.py +++ b/libcxx/utils/generate_extended_grapheme_cluster_table.py @@ -99,7 +99,7 @@ DATA_ARRAY_TEMPLATE = """ /// - https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt /// /// The data has 3 values -/// - bits [0, 3] The property. One of the values generated form the datafiles +/// - bits [0, 3] The property. One of the values generated from the datafiles /// of \\ref __property /// - bits [4, 10] The size of the range. /// - bits [11, 31] The lower bound code point of the range. The upper bound of diff --git a/lldb/include/lldb/Host/File.h b/lldb/include/lldb/Host/File.h index b2e7ebf..a1199a51 100644 --- a/lldb/include/lldb/Host/File.h +++ b/lldb/include/lldb/Host/File.h @@ -226,7 +226,7 @@ public: /// A buffer where to put the bytes that are read. /// /// \param[in,out] num_bytes - /// The number of bytes to read form the current file position + /// The number of bytes to read from the current file position /// which gets modified with the number of bytes that were read. /// /// \param[in,out] offset diff --git a/lldb/source/Plugins/CMakeLists.txt b/lldb/source/Plugins/CMakeLists.txt index 84cc065..855c9f6 100644 --- a/lldb/source/Plugins/CMakeLists.txt +++ b/lldb/source/Plugins/CMakeLists.txt @@ -36,7 +36,7 @@ set(LLDB_PROCESS_WINDOWS_PLUGIN "") set(LLDB_PROCESS_GDB_PLUGIN "") foreach(p ${LLDB_ALL_PLUGINS}) - # Strip lldbPlugin form the plugin name. + # Strip lldbPlugin from the plugin name. string(SUBSTRING ${p} 10 -1 pStripped) if(${pStripped} MATCHES "^ScriptInterpreter*") set(LLDB_ENUM_PLUGINS "${LLDB_ENUM_PLUGINS}LLDB_SCRIPT_PLUGIN(${pStripped})\n") diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h index a02551e..8307fa5 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h @@ -228,7 +228,7 @@ public: static bool AreTypesSame(CompilerType type1, CompilerType type2, bool ignore_qualifiers = false); - /// Creates a CompilerType form the given QualType with the current + /// Creates a CompilerType from the given QualType with the current /// TypeSystemClang instance as the CompilerType's typesystem. /// \param qt The QualType for a type that belongs to the ASTContext of this /// TypeSystemClang. diff --git a/llvm/lib/Analysis/IVDescriptors.cpp b/llvm/lib/Analysis/IVDescriptors.cpp index d37d0d4..950541a 100644 --- a/llvm/lib/Analysis/IVDescriptors.cpp +++ b/llvm/lib/Analysis/IVDescriptors.cpp @@ -943,7 +943,7 @@ bool RecurrenceDescriptor::isFixedOrderRecurrence( return false; // Get the previous value. The previous value comes from the latch edge while - // the initial value comes form the preheader edge. + // the initial value comes from the preheader edge. auto *Previous = dyn_cast(Phi->getIncomingValueForBlock(Latch)); // If Previous is a phi in the header, go through incoming values from the diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index fee11ef..f696255 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -8485,7 +8485,7 @@ bool CodeGenPrepare::splitBranchCondition(Function &F, ModifyDT &ModifiedDT) { // Replace the old BB with the new BB. TBB->replacePhiUsesWith(&BB, TmpBB); - // Add another incoming edge form the new BB. + // Add another incoming edge from the new BB. for (PHINode &PN : FBB->phis()) { auto *Val = PN.getIncomingValueForBlock(&BB); PN.addIncoming(Val, TmpBB); diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp index eb23599..39a398b 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp @@ -2076,7 +2076,7 @@ static bool isBitfieldExtractOpFromAnd(SelectionDAG *CurDAG, SDNode *N, // undo that as part of the transform here if we want to catch all // the opportunities. // Currently the NumberOfIgnoredLowBits argument helps to recover - // form these situations when matching bigger pattern (bitfield insert). + // from these situations when matching bigger pattern (bitfield insert). // For unsigned extracts, check for a shift right and mask uint64_t AndImm = 0; diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 4648ed5..fbf1327 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -2445,7 +2445,7 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) { llvm::getKnowledgeFromBundle(cast(*II), BOI); if (BOI.End - BOI.Begin > 2) continue; // Prevent reducing knowledge in an align with offset since - // extracting a RetainedKnowledge form them looses offset + // extracting a RetainedKnowledge from them looses offset // information RetainedKnowledge CanonRK = llvm::simplifyRetainedKnowledge(cast(II), RK, diff --git a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp index 6b0cc1f..8858545 100644 --- a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp +++ b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp @@ -722,7 +722,7 @@ void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { /// Updates the operand at Idx in instruction Inst with the result of /// instruction Mat. If the instruction is a PHI node then special -/// handling for duplicate values form the same incoming basic block is +/// handling for duplicate values from the same incoming basic block is /// required. /// \return The update will always succeed, but the return value indicated if /// Mat was used for the update or not. diff --git a/llvm/test/DebugInfo/ARM/PR26163.ll b/llvm/test/DebugInfo/ARM/PR26163.ll index b96ac76..2d7a6a3 100644 --- a/llvm/test/DebugInfo/ARM/PR26163.ll +++ b/llvm/test/DebugInfo/ARM/PR26163.ll @@ -17,7 +17,7 @@ ; CHECK-NEXT: DW_AT_location (DW_OP_lit0, DW_OP_stack_value, DW_OP_piece 0x4) ; CHECK-NEXT: DW_AT_abstract_origin -; Created form the following test case (PR26163) with +; Created from the following test case (PR26163) with ; clang -cc1 -triple armv4t--freebsd11.0-gnueabi -emit-obj -debug-info-kind=standalone -O2 -x c test.c ; ; typedef unsigned int size_t; diff --git a/llvm/tools/llvm-exegesis/lib/Clustering.cpp b/llvm/tools/llvm-exegesis/lib/Clustering.cpp index 4c4efd3..f91d6fc 100644 --- a/llvm/tools/llvm-exegesis/lib/Clustering.cpp +++ b/llvm/tools/llvm-exegesis/lib/Clustering.cpp @@ -314,7 +314,7 @@ void InstructionBenchmarkClustering::stabilize(unsigned NumOpcodes) { // Actually append to-be-moved points to the new cluster. UnstableCluster.PointIndices.insert(UnstableCluster.PointIndices.end(), it, OldCluster.PointIndices.end()); - // And finally, remove "to-be-moved" points form the old cluster. + // And finally, remove "to-be-moved" points from the old cluster. OldCluster.PointIndices.erase(it, OldCluster.PointIndices.end()); // Now, the old cluster may end up being empty, but let's just keep it // in whatever state it ended up. Purging empty clusters isn't worth it. diff --git a/llvm/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp b/llvm/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp index e1fe5dc..06d5990 100644 --- a/llvm/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp +++ b/llvm/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// // -// This test suite verifies basic MCJIT functionality when invoked form the C +// This test suite verifies basic MCJIT functionality when invoked from the C // API. // //===----------------------------------------------------------------------===// diff --git a/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp b/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp index bc1d60e..89bb42c 100644 --- a/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp +++ b/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp @@ -130,7 +130,7 @@ TEST(RandomIRBuilderTest, InsertValueIndexes) { } TEST(RandomIRBuilderTest, ShuffleVectorSink) { - // Check that we will never use shuffle vector mask as a sink form the + // Check that we will never use shuffle vector mask as a sink from the // unrelated operation. LLVMContext Ctx; diff --git a/mlir/lib/Dialect/Transform/IR/TransformDialect.cpp b/mlir/lib/Dialect/Transform/IR/TransformDialect.cpp index fdf3c74..fadc9ce 100644 --- a/mlir/lib/Dialect/Transform/IR/TransformDialect.cpp +++ b/mlir/lib/Dialect/Transform/IR/TransformDialect.cpp @@ -74,7 +74,7 @@ void transform::TransformDialect::initialize() { void transform::TransformDialect::mergeInPDLMatchHooks( llvm::StringMap &&constraintFns) { - // Steal the constraint functions form the given map. + // Steal the constraint functions from the given map. for (auto &it : constraintFns) pdlMatchHooks.registerConstraintFunction(it.getKey(), std::move(it.second)); } -- 2.7.4