[NFC] Fix "form/from" typos

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D142007
This commit is contained in:
Piotr Fusik 2023-01-22 19:59:52 +01:00 committed by Mark de Wever
parent 8e4dc4cfb8
commit 898b5c9f5e
16 changed files with 16 additions and 16 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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")

View File

@ -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.

View File

@ -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<Instruction>(Phi->getIncomingValueForBlock(Latch));
// If Previous is a phi in the header, go through incoming values from the

View File

@ -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);

View File

@ -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;

View File

@ -2445,7 +2445,7 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
llvm::getKnowledgeFromBundle(cast<AssumeInst>(*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<AssumeInst>(II), RK,

View File

@ -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.

View File

@ -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;

View File

@ -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.

View File

@ -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.
//
//===----------------------------------------------------------------------===//

View File

@ -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;

View File

@ -74,7 +74,7 @@ void transform::TransformDialect::initialize() {
void transform::TransformDialect::mergeInPDLMatchHooks(
llvm::StringMap<PDLConstraintFunction> &&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));
}