Fix some doc and comment typos
authorAlp Toker <alp@nuanti.com>
Wed, 9 Apr 2014 14:47:27 +0000 (14:47 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 9 Apr 2014 14:47:27 +0000 (14:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205899 91177308-0d34-0410-b5e6-96231b3b80d8

20 files changed:
docs/CompilerWriterInfo.rst
docs/LangRef.rst
include/llvm/CodeGen/PBQP/Graph.h
include/llvm/IR/DiagnosticInfo.h
lib/IR/Use.cpp
lib/Target/AArch64/AArch64Schedule.td
lib/Target/ARM/ARMFrameLowering.cpp
lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp
lib/Target/ARM64/ARM64CollectLOH.cpp
lib/Target/ARM64/ARM64ConditionalCompares.cpp
lib/Target/ARM64/ARM64InstrFormats.td
lib/Target/ARM64/ARM64RegisterInfo.cpp
lib/Target/ARM64/ARM64RegisterInfo.td
lib/Target/ARM64/MCTargetDesc/ARM64MachObjectWriter.cpp
lib/Transforms/Scalar/SampleProfile.cpp
test/CodeGen/ARM64/addr-mode-folding.ll
test/CodeGen/ARM64/build-vector.ll
test/DebugInfo/X86/dbg-value-const-byref.ll
test/MC/ARM64/separator.s
test/MC/Mips/micromips-el-fixup-data.s

index 240271a1a478c6440647831ff6ad495f0d61b790..606b5f5afec8ca33ed8eb9eb2785a01bed57569c 100644 (file)
@@ -113,7 +113,7 @@ XCore
 -----
 
 * `The XMOS XS1 Architecture (ISA) <https://www.xmos.com/en/download/public/The-XMOS-XS1-Architecture%28X7879A%29.pdf>`_
-* `Tools Developement Guide (includes ABI) <https://www.xmos.com/download/public/Tools-Development-Guide%28X9114A%29.pdf>`_
+* `Tools Development Guide (includes ABI) <https://www.xmos.com/download/public/Tools-Development-Guide%28X9114A%29.pdf>`_
 
 Other relevant lists
 --------------------
index fff627b8bb78fd61442dd203e7dad60d5097d841..752e3578222d546a41ce9e3f3c96831b014bd363 100644 (file)
@@ -6969,7 +6969,7 @@ Semantics:
 
 On platforms with coherent instruction and data caches (e.g. x86), this
 intrinsic is a nop. On platforms with non-coherent instruction and data
-cache (e.g. ARM, MIPS), the intrinsic is lowered either to appropiate
+cache (e.g. ARM, MIPS), the intrinsic is lowered either to appropriate
 instructions or a system call, if cache flushing requires special
 privileges.
 
index 1b960381c7b9503583c782aaa9d565ec205ca347..a55f0ea96c0aa8607ff2d9ae632699ff981fa3b9 100644 (file)
@@ -29,12 +29,12 @@ namespace PBQP {
     typedef unsigned NodeId;
     typedef unsigned EdgeId;
 
-    /// \brief Returns a value representing an invalid (non-existant) node.
+    /// \brief Returns a value representing an invalid (non-existent) node.
     static NodeId invalidNodeId() {
       return std::numeric_limits<NodeId>::max();
     }
 
-    /// \brief Returns a value representing an invalid (non-existant) edge.
+    /// \brief Returns a value representing an invalid (non-existent) edge.
     static EdgeId invalidEdgeId() {
       return std::numeric_limits<EdgeId>::max();
     }
index 392c14b76a118efa81698486a7a5a53db04d5a74..fb3c9b6302dc02fb91c7905adbad82c6318800db 100644 (file)
@@ -229,7 +229,7 @@ private:
   /// Name of the input file associated with this diagnostic.
   const char *FileName;
 
-  /// Line number where the diagnostic occured. If 0, no line number will
+  /// Line number where the diagnostic occurred. If 0, no line number will
   /// be emitted in the message.
   unsigned LineNum;
 
index e40f3e994db403f167e8479abef6ab8a80524f14..047861c2586fa178656158d643a5145a55b51ce2 100644 (file)
@@ -49,7 +49,7 @@ unsigned Use::getOperandNo() const {
   return this - getUser()->op_begin();
 }
 
-// Sets up the waymarking algoritm's tags for a series of Uses. See the
+// Sets up the waymarking algorithm's tags for a series of Uses. See the
 // algorithm details here:
 //
 //   http://www.llvm.org/docs/ProgrammersManual.html#UserLayout
index ec8450b9c1fc9f4f0897784a9ef75ce5616c58bb..6ec47dbaa5899ae43eef1054283513eff557f9cd 100644 (file)
@@ -59,7 +59,7 @@ def ReadFPALU : SchedRead;
 
 // Floating Point MAC, Mul, Div, Sqrt
 //   Most processors will simply send all of these down a dedicated pipe, but
-//   they're explicitly seperated here for flexibility of modeling later. May
+//   they're explicitly separated here for flexibility of modeling later. May
 //   consider consolidating them into a single WriteFPXXXX type in the future.
 def WriteFPMAC : SchedWrite;
 def WriteFPMul : SchedWrite;
index 58d184ce95810a1fe61180b123d9635054c60ce5..c18e74115a26e5b53d6a0ede848109aac9665b13 100644 (file)
@@ -1675,7 +1675,7 @@ void ARMFrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const {
   if (MF.getFunction()->isVarArg())
     report_fatal_error("Segmented stacks do not support vararg functions.");
   if (!ST->isTargetAndroid() && !ST->isTargetLinux())
-    report_fatal_error("Segmented stacks not supported on this platfrom.");
+    report_fatal_error("Segmented stacks not supported on this platform.");
 
   MachineBasicBlock &prologueMBB = MF.front();
   MachineFrameInfo *MFI = MF.getFrameInfo();
index 83f8cdae49c1de627a52fea29dbba398e9052ca5..83a3883fec8381df5bea8dadc10d8da837fc8ff8 100644 (file)
@@ -14,7 +14,7 @@
 //===----------------------------------------------------------------------===//
 // TODO: Graph based predicate heuristics.
 // Walking the instruction list linearly will get many, perhaps most, of
-// the cases, but to do a truly throrough job of this, we need a more
+// the cases, but to do a truly thorough job of this, we need a more
 // wholistic approach.
 //
 // This optimization is very similar in spirit to the register allocator's
@@ -74,7 +74,7 @@ private:
   // instruction. "add Xd, Xn, Xm" ==> "add Dd, Da, Db", for example.
   bool isProfitableToTransform(const MachineInstr *MI) const;
 
-  // tranformInstruction - Perform the transformation of an instruction
+  // transformInstruction - Perform the transformation of an instruction
   // to its equivalant AdvSIMD scalar instruction. Update inputs and outputs
   // to be the correct register class, minimizing cross-class copies.
   void transformInstruction(MachineInstr *MI);
@@ -252,7 +252,7 @@ bool ARM64AdvSIMDScalar::isProfitableToTransform(const MachineInstr *MI) const {
   if (AllUsesAreCopies)
     --NumNewCopies;
 
-  // If a tranform will not increase the number of cross-class copies required,
+  // If a transform will not increase the number of cross-class copies required,
   // return true.
   if (NumNewCopies <= NumRemovableCopies)
     return true;
@@ -273,7 +273,7 @@ static MachineInstr *insertCopy(const ARM64InstrInfo *TII, MachineInstr *MI,
   return MIB;
 }
 
-// tranformInstruction - Perform the transformation of an instruction
+// transformInstruction - Perform the transformation of an instruction
 // to its equivalant AdvSIMD scalar instruction. Update inputs and outputs
 // to be the correct register class, minimizing cross-class copies.
 void ARM64AdvSIMDScalar::transformInstruction(MachineInstr *MI) {
index 7da500b9b5cb3b889d338ea993fb8f2baafb5976..8a50c860a451634cb6801f2efd16068f3421da1b 100644 (file)
@@ -459,14 +459,14 @@ static void finitReachingDef(BlockToSetOfInstrsPerColor &In,
     delete[] IT->second;
 }
 
-/// Reaching definiton algorithm.
+/// Reaching definition algorithm.
 /// \param MF function on which the algorithm will operate.
 /// \param[out] ColorOpToReachedUses will contain the result of the reaching
 /// def algorithm.
 /// \param ADRPMode specify whether the reaching def algorithm should be tuned
 /// for ADRP optimization. \see initReachingDef for more details.
 /// \param DummyOp if not NULL, the algorithm will work at
-/// basic block scope and will set for every exposed defintion a use to
+/// basic block scope and will set for every exposed definition a use to
 /// @p DummyOp.
 /// \pre ColorOpToReachedUses is an array of at least number of registers of
 /// InstrToInstrs.
@@ -584,7 +584,7 @@ static bool isCandidateStore(const MachineInstr *Instr) {
   return false;
 }
 
-/// Given the result of a reaching defintion algorithm in ColorOpToReachedUses,
+/// Given the result of a reaching definition algorithm in ColorOpToReachedUses,
 /// Build the Use to Defs information and filter out obvious non-LOH candidates.
 /// In ADRPMode, non-LOH candidates are "uses" with non-ADRP definitions.
 /// In non-ADRPMode, non-LOH candidates are "uses" with several definition,
index b495afaa38b71dd4efb58df9700d22ed85ff2c2d..8accfa6eee041c6c28398e47261854869cfe6d41 100644 (file)
@@ -147,7 +147,7 @@ public:
   /// else.
   MachineBasicBlock *Head;
 
-  /// The block containing cmp+br.cond with a sucessor shared with Head.
+  /// The block containing cmp+br.cond with a successor shared with Head.
   MachineBasicBlock *CmpBB;
 
   /// The common successor for Head and CmpBB.
@@ -420,7 +420,7 @@ bool SSACCmpConv::canSpeculateInstrs(MachineBasicBlock *MBB,
       return false;
     }
 
-    // Only CmpMI is alowed to clobber the flags.
+    // Only CmpMI is allowed to clobber the flags.
     if (&*I != CmpMI && I->modifiesRegister(ARM64::CPSR, TRI)) {
       DEBUG(dbgs() << "Clobbers flags: " << *I);
       return false;
index ee82419371689728c3a84c576dccdd1a11a9ecda..8f7d6558961a9208c6ac2feb441792716dc618d1 100644 (file)
@@ -646,7 +646,7 @@ def simdimmtype10 : Operand<i32>,
 
 
 //---
-// Sytem management
+// System management
 //---
 
 // Base encoding for system instruction operands.
index 095270791c83d6f8a2c7278e60b9e77db6a5d7f4..45ed25aab1d9f2ec7db40cbcdfd141c94cceba98 100644 (file)
@@ -76,7 +76,7 @@ ARM64RegisterInfo::getThisReturnPreservedMask(CallingConv::ID) const {
 BitVector ARM64RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
   const TargetFrameLowering *TFI = MF.getTarget().getFrameLowering();
 
-  // FIXME: avoid re-calculating this everytime.
+  // FIXME: avoid re-calculating this every time.
   BitVector Reserved(getNumRegs());
   Reserved.set(ARM64::SP);
   Reserved.set(ARM64::XZR);
index 5f5093579ee5db08e2eba0c177aa46ad08dfb2f6..83a8f70a8c7dfe1f9850813438fbfc415e9e8244 100644 (file)
@@ -164,7 +164,7 @@ def tcGPR64 : RegisterClass<"ARM64", [i64], 64, (sub GPR64common, X19, X20, X21,
                                                      X22, X23, X24, X25, X26,
                                                      X27, X28)>;
 
-// GPR register classes for post increment ammount of vector load/store that
+// GPR register classes for post increment amount of vector load/store that
 // has alternate printing when Rm=31 and prints a constant immediate value
 // equal to the total number of bytes transferred.
 def GPR64pi1  : RegisterOperand<GPR64, "printPostIncOperand1">;
index 1733dc563d1db5e263daed3c5df9f38baca2dd82..f28896c1f9e144bb65ff6b7e87988d11d8041967 100644 (file)
@@ -222,7 +222,7 @@ void ARM64MachObjectWriter::RecordRelocation(
                                   "difference");
 
     // ARM64 always uses external relocations. If there is no symbol to use as
-    // a base address (a local symbol with no preceeding non-local symbol),
+    // a base address (a local symbol with no preceding non-local symbol),
     // error out.
     //
     // FIXME: We should probably just synthesize an external symbol and use
index 20d6daab24bbd69ddc2ea300cd14d367d30660be..327859bc5cac6b47d07bb25dfd000e401786d1d5 100644 (file)
@@ -315,7 +315,7 @@ protected:
   /// \brief Name of the profile file to load.
   StringRef Filename;
 
-  /// \brief Flag indicating whether the profile input loaded succesfully.
+  /// \brief Flag indicating whether the profile input loaded successfully.
   bool ProfileIsValid;
 };
 }
index dff2331d29bba35f0b4d4f9da459b1d3bca08a5c..08fb8c90c4846ca138ccab0ce30721310cf43350 100644 (file)
@@ -6,7 +6,7 @@
 define i32 @fct(i32 %i1, i32 %i2) {
 ; CHECK: @fct
 ; Sign extension is used more than once, thus it should not be folded.
-; CodeGenPrepare is not sharing sext accross uses, thus this is folded because
+; CodeGenPrepare is not sharing sext across uses, thus this is folded because
 ; of that.
 ; _CHECK-NOT_: , sxtw]
 entry:
index 1d137ae6e6d186ca8f8941a1c73601667a45d54a..143d6894383faac0c7f1dc63c2d0558c23467a75 100644 (file)
@@ -6,7 +6,7 @@ define void @one_lane(i32* nocapture %out_int, i32 %skip0) nounwind {
 ; CHECK-LABEL: one_lane:
 ; CHECK: dup.16b v[[REG:[0-9]+]], wzr
 ; CHECK-NEXT: ins.b v[[REG]][0], w1
-; v and q are aliases, and str is prefered against st.16b when possible
+; v and q are aliases, and str is preferred against st.16b when possible
 ; rdar://11246289
 ; CHECK: str q[[REG]], [x0]
 ; CHECK: ret
index 3d1e87da8c373ab2e8c6f3cd4dbdcbd48121ea6b..23dead3f859306e87e328300c1f34b6593816721 100644 (file)
@@ -14,7 +14,7 @@
 ; }
 ;
 ; Test that we generate valid debug info for optimized code,
-; particularily variables that are described as constants and passed
+; particularly variables that are described as constants and passed
 ; by reference.
 ; rdar://problem/14874886
 ;
index 18f34b99a0c4b757651b90d1483824848ccd149a..e67deba825d95345e3f0c26c7dbfe23f7e4f0218 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llvm-mc -triple arm64-apple-darwin -show-encoding < %s | FileCheck %s
 
-; ARM64 uses a multi-character statment separator, "%%". Check that we lex
+; ARM64 uses a multi-character statement separator, "%%". Check that we lex
 ; it properly and recognize the multiple assembly statements on the line.
 
 ; To make sure the output assembly correctly handled the instructions,
index 2293f63d46dea9f8723572d81fb94c2aba90eab3..47538356bf37012f8d93322eb58cbff0e41b9c5d 100644 (file)
@@ -2,7 +2,7 @@
 # RUN:   -mattr=+micromips 2>&1 -filetype=obj > %t.o
 # RUN: llvm-objdump %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s
 
-# Check that fixup data is writen in the microMIPS specific little endian
+# Check that fixup data is written in the microMIPS specific little endian
 # byte order.
 
     .text