Skip to content

Commit e9ffb45

Browse files
committedSep 12, 2015
Fix typos.
Summary: This fixes a variety of typos in docs, code and headers. Subscribers: jholewinski, sanjoy, arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D12626 llvm-svn: 247495
1 parent 93db40a commit e9ffb45

15 files changed

+47
-47
lines changed
 

‎llvm/docs/BitCodeFormat.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ in the *paramattr* field of module block `FUNCTION`_ records, or within the
851851
*attr* field of function block ``INST_INVOKE`` and ``INST_CALL`` records.
852852

853853
Entries within ``PARAMATTR_BLOCK`` are constructed to ensure that each is unique
854-
(i.e., no two indicies represent equivalent attribute lists).
854+
(i.e., no two indices represent equivalent attribute lists).
855855

856856
.. _PARAMATTR_CODE_ENTRY:
857857

@@ -904,7 +904,7 @@ table entry, which may be referenced by 0-based index from instructions,
904904
constants, metadata, type symbol table entries, or other type operator records.
905905

906906
Entries within ``TYPE_BLOCK`` are constructed to ensure that each entry is
907-
unique (i.e., no two indicies represent structurally equivalent types).
907+
unique (i.e., no two indices represent structurally equivalent types).
908908

909909
.. _TYPE_CODE_NUMENTRY:
910910
.. _NUMENTRY:

‎llvm/docs/BranchWeightMetadata.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Supported Instructions
2727
^^^^^^^^^^^^^^
2828

2929
Metadata is only assigned to the conditional branches. There are two extra
30-
operarands for the true and the false branch.
30+
operands for the true and the false branch.
3131

3232
.. code-block:: llvm
3333
@@ -114,12 +114,12 @@ CFG Modifications
114114

115115
Branch Weight Metatada is not proof against CFG changes. If terminator operands'
116116
are changed some action should be taken. In other case some misoptimizations may
117-
occur due to incorrent branch prediction information.
117+
occur due to incorrect branch prediction information.
118118

119119
Function Entry Counts
120120
=====================
121121

122-
To allow comparing different functions durint inter-procedural analysis and
122+
To allow comparing different functions during inter-procedural analysis and
123123
optimization, ``MD_prof`` nodes can also be assigned to a function definition.
124124
The first operand is a string indicating the name of the associated counter.
125125

‎llvm/docs/LangRef.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -3875,7 +3875,7 @@ DILexicalBlock
38753875
""""""""""""""
38763876

38773877
``DILexicalBlock`` nodes describe nested blocks within a :ref:`subprogram
3878-
<DISubprogram>`. The line number and column numbers are used to dinstinguish
3878+
<DISubprogram>`. The line number and column numbers are used to distinguish
38793879
two lexical blocks at same depth. They are valid targets for ``scope:``
38803880
fields.
38813881

@@ -4060,13 +4060,13 @@ alias.
40604060

40614061
The metadata identifying each domain is itself a list containing one or two
40624062
entries. The first entry is the name of the domain. Note that if the name is a
4063-
string then it can be combined accross functions and translation units. A
4063+
string then it can be combined across functions and translation units. A
40644064
self-reference can be used to create globally unique domain names. A
40654065
descriptive string may optionally be provided as a second list entry.
40664066

40674067
The metadata identifying each scope is also itself a list containing two or
40684068
three entries. The first entry is the name of the scope. Note that if the name
4069-
is a string then it can be combined accross functions and translation units. A
4069+
is a string then it can be combined across functions and translation units. A
40704070
self-reference can be used to create globally unique scope names. A metadata
40714071
reference to the scope's domain is the second entry. A descriptive string may
40724072
optionally be provided as a third list entry.
@@ -5161,7 +5161,7 @@ is a catch block --- one where a personality routine attempts to transfer
51615161
control to catch an exception.
51625162
The ``args`` correspond to whatever information the personality
51635163
routine requires to know if this is an appropriate place to catch the
5164-
exception. Control is tranfered to the ``exception`` label if the
5164+
exception. Control is transfered to the ``exception`` label if the
51655165
``catchpad`` is not an appropriate handler for the in-flight exception.
51665166
The ``normal`` label should contain the code found in the ``catch``
51675167
portion of a ``try``/``catch`` sequence. The ``resultval`` has the type
@@ -11311,7 +11311,7 @@ The first operand is a vector value to be written to memory. The second operand
1131111311
Semantics:
1131211312
""""""""""
1131311313

11314-
The '``llvm.masked.scatter``' intrinsics is designed for writing selected vector elements to arbitrary memory addresses in a single IR operation. The operation may be conditional, when not all bits in the mask are switched on. It is useful for targets that support vector masked scatter and allows vectorizing basic blocks with data and control divergency. Other targets may support this intrinsic differently, for example by lowering it into a sequence of branches that guard scalar store operations.
11314+
The '``llvm.masked.scatter``' intrinsics is designed for writing selected vector elements to arbitrary memory addresses in a single IR operation. The operation may be conditional, when not all bits in the mask are switched on. It is useful for targets that support vector masked scatter and allows vectorizing basic blocks with data and control divergence. Other targets may support this intrinsic differently, for example by lowering it into a sequence of branches that guard scalar store operations.
1131511315

1131611316
::
1131711317

‎llvm/docs/SourceLevelDebugging.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ qualified name. Debugger users tend not to enter their search strings as
708708
"``a::b::c``". So the name entered in the name table must be demangled in
709709
order to chop it up appropriately and additional names must be manually entered
710710
into the table to make it effective as a name lookup table for debuggers to
711-
se.
711+
use.
712712

713713
All debuggers currently ignore the "``.debug_pubnames``" table as a result of
714714
its inconsistent and useless public-only name content making it a waste of

‎llvm/docs/Statepoints.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ load barriers, store barriers, and safepoints.
5353
loads, merely loads of a particular type (in the original source
5454
language), or none at all.
5555

56-
#. Analogously, a store barrier is a code fragement that runs
56+
#. Analogously, a store barrier is a code fragment that runs
5757
immediately before the machine store instruction, but after the
5858
computation of the value stored. The most common use of a store
5959
barrier is to update a 'card table' in a generational garbage
@@ -160,7 +160,7 @@ of the call, we use the ``gc.result`` intrinsic. To get the relocation
160160
of each pointer in turn, we use the ``gc.relocate`` intrinsic with the
161161
appropriate index. Note that both the ``gc.relocate`` and ``gc.result`` are
162162
tied to the statepoint. The combination forms a "statepoint relocation
163-
sequence" and represents the entitety of a parseable call or 'statepoint'.
163+
sequence" and represents the entirety of a parseable call or 'statepoint'.
164164

165165
When lowered, this example would generate the following x86 assembly:
166166

@@ -271,7 +271,7 @@ statepoint.
271271
transitions based on the function symbols involved (e.g. a call from a
272272
function with GC strategy "foo" to a function with GC strategy "bar"),
273273
indirect calls that are also GC transitions must also be supported. This
274-
requirement is the driving force behing the decision to require that GC
274+
requirement is the driving force behind the decision to require that GC
275275
transitions are explicitly marked.
276276

277277
Let's revisit the sample given above, this time treating the call to ``@foo``

‎llvm/include/llvm/CodeGen/SlotIndexes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ namespace llvm {
155155
"Attempt to construct index with 0 pointer.");
156156
}
157157

158-
/// Returns true if this is a valid index. Invalid indicies do
158+
/// Returns true if this is a valid index. Invalid indices do
159159
/// not point into an index table, and cannot be compared.
160160
bool isValid() const {
161161
return lie.getPointer();

‎llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ void AsmPrinter::emitDwarfDIE(const DIE &Die) const {
286286

287287
void
288288
AsmPrinter::emitDwarfAbbrevs(const std::vector<DIEAbbrev *>& Abbrevs) const {
289-
// For each abbrevation.
289+
// For each abbreviation.
290290
for (const DIEAbbrev *Abbrev : Abbrevs) {
291-
// Emit the abbrevations code (base 1 index.)
291+
// Emit the abbreviations code (base 1 index.)
292292
EmitULEB128(Abbrev->getNumber(), "Abbreviation Code");
293293

294294
// Emit the abbreviations data.

‎llvm/lib/CodeGen/PrologEpilogInserter.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -897,11 +897,11 @@ void PEI::replaceFrameIndices(MachineBasicBlock *BB, MachineFunction &Fn,
897897
if (!MI->getOperand(i).isFI())
898898
continue;
899899

900-
// Frame indicies in debug values are encoded in a target independent
900+
// Frame indices in debug values are encoded in a target independent
901901
// way with simply the frame index and offset rather than any
902902
// target-specific addressing mode.
903903
if (MI->isDebugValue()) {
904-
assert(i == 0 && "Frame indicies can only appear as the first "
904+
assert(i == 0 && "Frame indices can only appear as the first "
905905
"operand of a DBG_VALUE machine instruction");
906906
unsigned Reg;
907907
MachineOperand &Offset = MI->getOperand(1);

‎llvm/lib/IR/ConstantFold.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ foldConstantCastPair(
8383
assert(DstTy && DstTy->isFirstClassType() && "Invalid cast destination type");
8484
assert(CastInst::isCast(opc) && "Invalid cast opcode");
8585

86-
// The the types and opcodes for the two Cast constant expressions
86+
// The types and opcodes for the two Cast constant expressions
8787
Type *SrcTy = Op->getOperand(0)->getType();
8888
Type *MidTy = Op->getType();
8989
Instruction::CastOps firstOp = Instruction::CastOps(Op->getOpcode());
@@ -1277,9 +1277,9 @@ static bool isMaybeZeroSizedType(Type *Ty) {
12771277
}
12781278

12791279
/// IdxCompare - Compare the two constants as though they were getelementptr
1280-
/// indices. This allows coersion of the types to be the same thing.
1280+
/// indices. This allows coercion of the types to be the same thing.
12811281
///
1282-
/// If the two constants are the "same" (after coersion), return 0. If the
1282+
/// If the two constants are the "same" (after coercion), return 0. If the
12831283
/// first is less than the second, return -1, if the second is less than the
12841284
/// first, return 1. If the constants are not integral, return -2.
12851285
///
@@ -1999,7 +1999,7 @@ static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) {
19991999
/// \brief Test whether a given ConstantInt is in-range for a SequentialType.
20002000
static bool isIndexInRangeOfSequentialType(SequentialType *STy,
20012001
const ConstantInt *CI) {
2002-
// And indicies are valid when indexing along a pointer
2002+
// And indices are valid when indexing along a pointer
20032003
if (isa<PointerType>(STy))
20042004
return true;
20052005

‎llvm/lib/Target/AMDGPU/R600Instructions.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ def : InsertVerticalPat <R600_INSERT_ELT_V4, v4f32, f32>;
16551655
// ISel Patterns
16561656
//===----------------------------------------------------------------------===//
16571657

1658-
// CND*_INT Pattterns for f32 True / False values
1658+
// CND*_INT Patterns for f32 True / False values
16591659

16601660
class CND_INT_f32 <InstR600 cnd, CondCode cc> : Pat <
16611661
(selectcc i32:$src0, 0, f32:$src1, f32:$src2, cc),

‎llvm/lib/Target/Mips/MipsInstrInfo.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ class shift_rotate_reg<string opstr, RegisterOperand RO, InstrItinClass itin,
673673
[(set RO:$rd, (OpNode RO:$rt, GPR32Opnd:$rs))], itin, FrmR,
674674
opstr>;
675675

676-
// Load Upper Imediate
676+
// Load Upper Immediate
677677
class LoadUpper<string opstr, RegisterOperand RO, Operand Imm>:
678678
InstSE<(outs RO:$rt), (ins Imm:$imm16), !strconcat(opstr, "\t$rt, $imm16"),
679679
[], II_LUI, FrmI, opstr>, IsAsCheapAsAMove {

‎llvm/lib/Target/NVPTX/NVPTXUtilities.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ bool llvm::isMemorySpaceTransferIntrinsic(Intrinsic::ID id) {
357357
}
358358

359359
// consider several special intrinsics in striping pointer casts, and
360-
// provide an option to ignore GEP indicies for find out the base address only
361-
// which could be used in simple alias disambigurate.
360+
// provide an option to ignore GEP indices for find out the base address only
361+
// which could be used in simple alias disambiguation.
362362
const Value *
363363
llvm::skipPointerTransfer(const Value *V, bool ignore_GEP_indices) {
364364
V = V->stripPointerCasts();
@@ -379,9 +379,9 @@ llvm::skipPointerTransfer(const Value *V, bool ignore_GEP_indices) {
379379
}
380380

381381
// consider several special intrinsics in striping pointer casts, and
382-
// - ignore GEP indicies for find out the base address only, and
382+
// - ignore GEP indices for find out the base address only, and
383383
// - tracking PHINode
384-
// which could be used in simple alias disambigurate.
384+
// which could be used in simple alias disambiguation.
385385
const Value *
386386
llvm::skipPointerTransfer(const Value *V, std::set<const Value *> &processed) {
387387
if (processed.find(V) != processed.end())
@@ -428,7 +428,7 @@ llvm::skipPointerTransfer(const Value *V, std::set<const Value *> &processed) {
428428
return V;
429429
}
430430

431-
// The following are some useful utilities for debuggung
431+
// The following are some useful utilities for debugging
432432

433433
BasicBlock *llvm::getParentBlock(Value *v) {
434434
if (BasicBlock *B = dyn_cast<BasicBlock>(v))
@@ -484,7 +484,7 @@ Instruction *llvm::getInst(Value *base, char *instName) {
484484
return nullptr;
485485
}
486486

487-
// Dump an instruction by nane
487+
// Dump an instruction by name
488488
void llvm::dumpInst(Value *base, char *instName) {
489489
Instruction *I = getInst(base, instName);
490490
if (I)

‎llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static Instruction *unpackLoadToAggregate(InstCombiner &IC, LoadInst &LI) {
511511
if (!T->isAggregateType())
512512
return nullptr;
513513

514-
assert(LI.getAlignment() && "Alignement must be set at this point");
514+
assert(LI.getAlignment() && "Alignment must be set at this point");
515515

516516
if (auto *ST = dyn_cast<StructType>(T)) {
517517
// If the struct only have one element, we unpack.
@@ -681,7 +681,7 @@ static bool canReplaceGEPIdxWithZero(InstCombiner &IC, GetElementPtrInst *GEPI,
681681
// FIXME: If the GEP is not inbounds, and there are extra indices after the
682682
// one we'll replace, those could cause the address computation to wrap
683683
// (rendering the IsAllNonNegative() check below insufficient). We can do
684-
// better, ignoring zero indicies (and other indicies we can prove small
684+
// better, ignoring zero indices (and other indices we can prove small
685685
// enough not to wrap).
686686
if (Idx+1 != GEPI->getNumOperands() && !GEPI->isInBounds())
687687
return false;
@@ -857,7 +857,7 @@ Instruction *InstCombiner::visitLoadInst(LoadInst &LI) {
857857
///
858858
/// \returns true if the store was successfully combined away. This indicates
859859
/// the caller must erase the store instruction. We have to let the caller erase
860-
/// the store instruction sas otherwise there is no way to signal whether it was
860+
/// the store instruction as otherwise there is no way to signal whether it was
861861
/// combined or not: IC.EraseInstFromFunction returns a null pointer.
862862
static bool combineStoreToValueType(InstCombiner &IC, StoreInst &SI) {
863863
// FIXME: We could probably with some care handle both volatile and atomic

‎llvm/utils/TableGen/CodeGenDAGPatterns.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ bool EEVT::TypeSet::EnforceVector(TreePattern &TP) {
350350

351351

352352
/// EnforceSmallerThan - 'this' must be a smaller VT than Other. For vectors
353-
/// this shoud be based on the element type. Update this and other based on
353+
/// this should be based on the element type. Update this and other based on
354354
/// this information.
355355
bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) {
356356
if (TP.hasError())
@@ -456,7 +456,7 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) {
456456
return MadeChange;
457457
}
458458

459-
/// EnforceVectorEltTypeIs - 'this' is now constrainted to be a vector type
459+
/// EnforceVectorEltTypeIs - 'this' is now constrained to be a vector type
460460
/// whose element is specified by VTOperand.
461461
bool EEVT::TypeSet::EnforceVectorEltTypeIs(MVT::SimpleValueType VT,
462462
TreePattern &TP) {
@@ -484,7 +484,7 @@ bool EEVT::TypeSet::EnforceVectorEltTypeIs(MVT::SimpleValueType VT,
484484
return MadeChange;
485485
}
486486

487-
/// EnforceVectorEltTypeIs - 'this' is now constrainted to be a vector type
487+
/// EnforceVectorEltTypeIs - 'this' is now constrained to be a vector type
488488
/// whose element is specified by VTOperand.
489489
bool EEVT::TypeSet::EnforceVectorEltTypeIs(EEVT::TypeSet &VTOperand,
490490
TreePattern &TP) {
@@ -530,7 +530,7 @@ bool EEVT::TypeSet::EnforceVectorEltTypeIs(EEVT::TypeSet &VTOperand,
530530
return MadeChange;
531531
}
532532

533-
/// EnforceVectorSubVectorTypeIs - 'this' is now constrainted to be a
533+
/// EnforceVectorSubVectorTypeIs - 'this' is now constrained to be a
534534
/// vector type specified by VTOperand.
535535
bool EEVT::TypeSet::EnforceVectorSubVectorTypeIs(EEVT::TypeSet &VTOperand,
536536
TreePattern &TP) {
@@ -611,7 +611,7 @@ bool EEVT::TypeSet::EnforceVectorSubVectorTypeIs(EEVT::TypeSet &VTOperand,
611611
return MadeChange;
612612
}
613613

614-
/// EnforceVectorSameNumElts - 'this' is now constrainted to
614+
/// EnforceVectorSameNumElts - 'this' is now constrained to
615615
/// be a vector with same num elements as VTOperand.
616616
bool EEVT::TypeSet::EnforceVectorSameNumElts(EEVT::TypeSet &VTOperand,
617617
TreePattern &TP) {
@@ -2815,7 +2815,7 @@ static bool InferFromPattern(CodeGenInstruction &InstInfo,
28152815

28162816
if (InstInfo.mayLoad != PatInfo.mayLoad && !InstInfo.mayLoad_Unset) {
28172817
// Allow explicitly setting mayLoad = 1, even when the pattern has no loads.
2818-
// Some targets translate imediates to loads.
2818+
// Some targets translate immediates to loads.
28192819
if (!InstInfo.mayLoad) {
28202820
Error = true;
28212821
PrintError(PatDef->getLoc(), "Pattern doesn't match mayLoad = " +
@@ -3347,7 +3347,7 @@ void CodeGenDAGPatterns::VerifyInstructionFlags() {
33473347
if (InstInfo.InferredFrom &&
33483348
InstInfo.InferredFrom != InstInfo.TheDef &&
33493349
InstInfo.InferredFrom != PTM.getSrcRecord())
3350-
PrintError(InstInfo.InferredFrom->getLoc(), "inferred from patttern");
3350+
PrintError(InstInfo.InferredFrom->getLoc(), "inferred from pattern");
33513351
}
33523352
}
33533353
if (Errors)
@@ -3573,7 +3573,7 @@ static void CombineChildVariants(TreePatternNode *Orig,
35733573
}
35743574

35753575
// Increment indices to the next permutation by incrementing the
3576-
// indicies from last index backward, e.g., generate the sequence
3576+
// indices from last index backward, e.g., generate the sequence
35773577
// [0, 0], [0, 1], [1, 0], [1, 1].
35783578
int IdxsIdx;
35793579
for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) {
@@ -3724,7 +3724,7 @@ static void GenerateVariantsOf(TreePatternNode *N,
37243724
// operands are the commutative operands, and there might be more operands
37253725
// after those.
37263726
assert(NC >= 3 &&
3727-
"Commutative intrinsic should have at least 3 childrean!");
3727+
"Commutative intrinsic should have at least 3 children!");
37283728
std::vector<std::vector<TreePatternNode*> > Variants;
37293729
Variants.push_back(ChildVariants[0]); // Intrinsic id.
37303730
Variants.push_back(ChildVariants[2]);

‎llvm/utils/TableGen/CodeGenDAGPatterns.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,19 @@ namespace EEVT {
132132
/// this an other based on this information.
133133
bool EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP);
134134

135-
/// EnforceVectorEltTypeIs - 'this' is now constrainted to be a vector type
135+
/// EnforceVectorEltTypeIs - 'this' is now constrained to be a vector type
136136
/// whose element is VT.
137137
bool EnforceVectorEltTypeIs(EEVT::TypeSet &VT, TreePattern &TP);
138138

139-
/// EnforceVectorEltTypeIs - 'this' is now constrainted to be a vector type
139+
/// EnforceVectorEltTypeIs - 'this' is now constrained to be a vector type
140140
/// whose element is VT.
141141
bool EnforceVectorEltTypeIs(MVT::SimpleValueType VT, TreePattern &TP);
142142

143-
/// EnforceVectorSubVectorTypeIs - 'this' is now constrainted to
143+
/// EnforceVectorSubVectorTypeIs - 'this' is now constrained to
144144
/// be a vector type VT.
145145
bool EnforceVectorSubVectorTypeIs(EEVT::TypeSet &VT, TreePattern &TP);
146146

147-
/// EnforceVectorSameNumElts - 'this' is now constrainted to
147+
/// EnforceVectorSameNumElts - 'this' is now constrained to
148148
/// be a vector with same num elements as VT.
149149
bool EnforceVectorSameNumElts(EEVT::TypeSet &VT, TreePattern &TP);
150150

0 commit comments

Comments
 (0)
Please sign in to comment.