Skip to content

Commit 16f98b2

Browse files
committed
Fix some doc and comment typos
llvm-svn: 205899
1 parent 246b0b6 commit 16f98b2

20 files changed

+27
-27
lines changed

llvm/docs/CompilerWriterInfo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ XCore
113113
-----
114114

115115
* `The XMOS XS1 Architecture (ISA) <https://www.xmos.com/en/download/public/The-XMOS-XS1-Architecture%28X7879A%29.pdf>`_
116-
* `Tools Developement Guide (includes ABI) <https://www.xmos.com/download/public/Tools-Development-Guide%28X9114A%29.pdf>`_
116+
* `Tools Development Guide (includes ABI) <https://www.xmos.com/download/public/Tools-Development-Guide%28X9114A%29.pdf>`_
117117

118118
Other relevant lists
119119
--------------------

llvm/docs/LangRef.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6969,7 +6969,7 @@ Semantics:
69696969

69706970
On platforms with coherent instruction and data caches (e.g. x86), this
69716971
intrinsic is a nop. On platforms with non-coherent instruction and data
6972-
cache (e.g. ARM, MIPS), the intrinsic is lowered either to appropiate
6972+
cache (e.g. ARM, MIPS), the intrinsic is lowered either to appropriate
69736973
instructions or a system call, if cache flushing requires special
69746974
privileges.
69756975

llvm/include/llvm/CodeGen/PBQP/Graph.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ namespace PBQP {
2929
typedef unsigned NodeId;
3030
typedef unsigned EdgeId;
3131

32-
/// \brief Returns a value representing an invalid (non-existant) node.
32+
/// \brief Returns a value representing an invalid (non-existent) node.
3333
static NodeId invalidNodeId() {
3434
return std::numeric_limits<NodeId>::max();
3535
}
3636

37-
/// \brief Returns a value representing an invalid (non-existant) edge.
37+
/// \brief Returns a value representing an invalid (non-existent) edge.
3838
static EdgeId invalidEdgeId() {
3939
return std::numeric_limits<EdgeId>::max();
4040
}

llvm/include/llvm/IR/DiagnosticInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class DiagnosticInfoSampleProfile : public DiagnosticInfo {
229229
/// Name of the input file associated with this diagnostic.
230230
const char *FileName;
231231

232-
/// Line number where the diagnostic occured. If 0, no line number will
232+
/// Line number where the diagnostic occurred. If 0, no line number will
233233
/// be emitted in the message.
234234
unsigned LineNum;
235235

llvm/lib/IR/Use.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ unsigned Use::getOperandNo() const {
4949
return this - getUser()->op_begin();
5050
}
5151

52-
// Sets up the waymarking algoritm's tags for a series of Uses. See the
52+
// Sets up the waymarking algorithm's tags for a series of Uses. See the
5353
// algorithm details here:
5454
//
5555
// http://www.llvm.org/docs/ProgrammersManual.html#UserLayout

llvm/lib/Target/AArch64/AArch64Schedule.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def ReadFPALU : SchedRead;
5959

6060
// Floating Point MAC, Mul, Div, Sqrt
6161
// Most processors will simply send all of these down a dedicated pipe, but
62-
// they're explicitly seperated here for flexibility of modeling later. May
62+
// they're explicitly separated here for flexibility of modeling later. May
6363
// consider consolidating them into a single WriteFPXXXX type in the future.
6464
def WriteFPMAC : SchedWrite;
6565
def WriteFPMul : SchedWrite;

llvm/lib/Target/ARM/ARMFrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,7 @@ void ARMFrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const {
16751675
if (MF.getFunction()->isVarArg())
16761676
report_fatal_error("Segmented stacks do not support vararg functions.");
16771677
if (!ST->isTargetAndroid() && !ST->isTargetLinux())
1678-
report_fatal_error("Segmented stacks not supported on this platfrom.");
1678+
report_fatal_error("Segmented stacks not supported on this platform.");
16791679

16801680
MachineBasicBlock &prologueMBB = MF.front();
16811681
MachineFrameInfo *MFI = MF.getFrameInfo();

llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//===----------------------------------------------------------------------===//
1515
// TODO: Graph based predicate heuristics.
1616
// Walking the instruction list linearly will get many, perhaps most, of
17-
// the cases, but to do a truly throrough job of this, we need a more
17+
// the cases, but to do a truly thorough job of this, we need a more
1818
// wholistic approach.
1919
//
2020
// This optimization is very similar in spirit to the register allocator's
@@ -74,7 +74,7 @@ class ARM64AdvSIMDScalar : public MachineFunctionPass {
7474
// instruction. "add Xd, Xn, Xm" ==> "add Dd, Da, Db", for example.
7575
bool isProfitableToTransform(const MachineInstr *MI) const;
7676

77-
// tranformInstruction - Perform the transformation of an instruction
77+
// transformInstruction - Perform the transformation of an instruction
7878
// to its equivalant AdvSIMD scalar instruction. Update inputs and outputs
7979
// to be the correct register class, minimizing cross-class copies.
8080
void transformInstruction(MachineInstr *MI);
@@ -252,7 +252,7 @@ bool ARM64AdvSIMDScalar::isProfitableToTransform(const MachineInstr *MI) const {
252252
if (AllUsesAreCopies)
253253
--NumNewCopies;
254254

255-
// If a tranform will not increase the number of cross-class copies required,
255+
// If a transform will not increase the number of cross-class copies required,
256256
// return true.
257257
if (NumNewCopies <= NumRemovableCopies)
258258
return true;
@@ -273,7 +273,7 @@ static MachineInstr *insertCopy(const ARM64InstrInfo *TII, MachineInstr *MI,
273273
return MIB;
274274
}
275275

276-
// tranformInstruction - Perform the transformation of an instruction
276+
// transformInstruction - Perform the transformation of an instruction
277277
// to its equivalant AdvSIMD scalar instruction. Update inputs and outputs
278278
// to be the correct register class, minimizing cross-class copies.
279279
void ARM64AdvSIMDScalar::transformInstruction(MachineInstr *MI) {

llvm/lib/Target/ARM64/ARM64CollectLOH.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,14 +459,14 @@ static void finitReachingDef(BlockToSetOfInstrsPerColor &In,
459459
delete[] IT->second;
460460
}
461461

462-
/// Reaching definiton algorithm.
462+
/// Reaching definition algorithm.
463463
/// \param MF function on which the algorithm will operate.
464464
/// \param[out] ColorOpToReachedUses will contain the result of the reaching
465465
/// def algorithm.
466466
/// \param ADRPMode specify whether the reaching def algorithm should be tuned
467467
/// for ADRP optimization. \see initReachingDef for more details.
468468
/// \param DummyOp if not NULL, the algorithm will work at
469-
/// basic block scope and will set for every exposed defintion a use to
469+
/// basic block scope and will set for every exposed definition a use to
470470
/// @p DummyOp.
471471
/// \pre ColorOpToReachedUses is an array of at least number of registers of
472472
/// InstrToInstrs.
@@ -584,7 +584,7 @@ static bool isCandidateStore(const MachineInstr *Instr) {
584584
return false;
585585
}
586586

587-
/// Given the result of a reaching defintion algorithm in ColorOpToReachedUses,
587+
/// Given the result of a reaching definition algorithm in ColorOpToReachedUses,
588588
/// Build the Use to Defs information and filter out obvious non-LOH candidates.
589589
/// In ADRPMode, non-LOH candidates are "uses" with non-ADRP definitions.
590590
/// In non-ADRPMode, non-LOH candidates are "uses" with several definition,

llvm/lib/Target/ARM64/ARM64ConditionalCompares.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class SSACCmpConv {
147147
/// else.
148148
MachineBasicBlock *Head;
149149

150-
/// The block containing cmp+br.cond with a sucessor shared with Head.
150+
/// The block containing cmp+br.cond with a successor shared with Head.
151151
MachineBasicBlock *CmpBB;
152152

153153
/// The common successor for Head and CmpBB.
@@ -420,7 +420,7 @@ bool SSACCmpConv::canSpeculateInstrs(MachineBasicBlock *MBB,
420420
return false;
421421
}
422422

423-
// Only CmpMI is alowed to clobber the flags.
423+
// Only CmpMI is allowed to clobber the flags.
424424
if (&*I != CmpMI && I->modifiesRegister(ARM64::CPSR, TRI)) {
425425
DEBUG(dbgs() << "Clobbers flags: " << *I);
426426
return false;

llvm/lib/Target/ARM64/ARM64InstrFormats.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def simdimmtype10 : Operand<i32>,
646646

647647

648648
//---
649-
// Sytem management
649+
// System management
650650
//---
651651

652652
// Base encoding for system instruction operands.

llvm/lib/Target/ARM64/ARM64RegisterInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ARM64RegisterInfo::getThisReturnPreservedMask(CallingConv::ID) const {
7676
BitVector ARM64RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
7777
const TargetFrameLowering *TFI = MF.getTarget().getFrameLowering();
7878

79-
// FIXME: avoid re-calculating this everytime.
79+
// FIXME: avoid re-calculating this every time.
8080
BitVector Reserved(getNumRegs());
8181
Reserved.set(ARM64::SP);
8282
Reserved.set(ARM64::XZR);

llvm/lib/Target/ARM64/ARM64RegisterInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def tcGPR64 : RegisterClass<"ARM64", [i64], 64, (sub GPR64common, X19, X20, X21,
164164
X22, X23, X24, X25, X26,
165165
X27, X28)>;
166166

167-
// GPR register classes for post increment ammount of vector load/store that
167+
// GPR register classes for post increment amount of vector load/store that
168168
// has alternate printing when Rm=31 and prints a constant immediate value
169169
// equal to the total number of bytes transferred.
170170
def GPR64pi1 : RegisterOperand<GPR64, "printPostIncOperand1">;

llvm/lib/Target/ARM64/MCTargetDesc/ARM64MachObjectWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void ARM64MachObjectWriter::RecordRelocation(
222222
"difference");
223223

224224
// ARM64 always uses external relocations. If there is no symbol to use as
225-
// a base address (a local symbol with no preceeding non-local symbol),
225+
// a base address (a local symbol with no preceding non-local symbol),
226226
// error out.
227227
//
228228
// FIXME: We should probably just synthesize an external symbol and use

llvm/lib/Transforms/Scalar/SampleProfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class SampleProfileLoader : public FunctionPass {
315315
/// \brief Name of the profile file to load.
316316
StringRef Filename;
317317

318-
/// \brief Flag indicating whether the profile input loaded succesfully.
318+
/// \brief Flag indicating whether the profile input loaded successfully.
319319
bool ProfileIsValid;
320320
};
321321
}

llvm/test/CodeGen/ARM64/addr-mode-folding.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
define i32 @fct(i32 %i1, i32 %i2) {
77
; CHECK: @fct
88
; Sign extension is used more than once, thus it should not be folded.
9-
; CodeGenPrepare is not sharing sext accross uses, thus this is folded because
9+
; CodeGenPrepare is not sharing sext across uses, thus this is folded because
1010
; of that.
1111
; _CHECK-NOT_: , sxtw]
1212
entry:

llvm/test/CodeGen/ARM64/build-vector.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ define void @one_lane(i32* nocapture %out_int, i32 %skip0) nounwind {
66
; CHECK-LABEL: one_lane:
77
; CHECK: dup.16b v[[REG:[0-9]+]], wzr
88
; CHECK-NEXT: ins.b v[[REG]][0], w1
9-
; v and q are aliases, and str is prefered against st.16b when possible
9+
; v and q are aliases, and str is preferred against st.16b when possible
1010
; rdar://11246289
1111
; CHECK: str q[[REG]], [x0]
1212
; CHECK: ret

llvm/test/DebugInfo/X86/dbg-value-const-byref.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
; }
1515
;
1616
; Test that we generate valid debug info for optimized code,
17-
; particularily variables that are described as constants and passed
17+
; particularly variables that are described as constants and passed
1818
; by reference.
1919
; rdar://problem/14874886
2020
;

llvm/test/MC/ARM64/separator.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: llvm-mc -triple arm64-apple-darwin -show-encoding < %s | FileCheck %s
22

3-
; ARM64 uses a multi-character statment separator, "%%". Check that we lex
3+
; ARM64 uses a multi-character statement separator, "%%". Check that we lex
44
; it properly and recognize the multiple assembly statements on the line.
55

66
; To make sure the output assembly correctly handled the instructions,

llvm/test/MC/Mips/micromips-el-fixup-data.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: -mattr=+micromips 2>&1 -filetype=obj > %t.o
33
# RUN: llvm-objdump %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s
44

5-
# Check that fixup data is writen in the microMIPS specific little endian
5+
# Check that fixup data is written in the microMIPS specific little endian
66
# byte order.
77

88
.text

0 commit comments

Comments
 (0)