]> granicus.if.org Git - llvm/commitdiff
Fix comment typos. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 20 Nov 2016 13:47:59 +0000 (13:47 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 20 Nov 2016 13:47:59 +0000 (13:47 +0000)
Identified by Pedro Giffuni in PR27636.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287490 91177308-0d34-0410-b5e6-96231b3b80d8

21 files changed:
include/llvm/ADT/PointerSumType.h
include/llvm/CodeGen/LiveInterval.h
include/llvm/CodeGen/MachineFrameInfo.h
include/llvm/MC/MCInstrItineraries.h
include/llvm/Object/ELFTypes.h
include/llvm/ProfileData/InstrProf.h
include/llvm/Support/DataExtractor.h
include/llvm/Support/Format.h
include/llvm/Support/Printable.h
include/llvm/Target/TargetItinerary.td
include/llvm/Target/TargetLowering.h
include/llvm/Target/TargetRegisterInfo.h
lib/Analysis/BasicAliasAnalysis.cpp
lib/Analysis/ScalarEvolution.cpp
lib/Analysis/ScalarEvolutionExpander.cpp
lib/CodeGen/AsmPrinter/WinException.cpp
lib/CodeGen/CodeGenPrepare.cpp
lib/CodeGen/WinEHPrepare.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
lib/MC/WinCOFFObjectWriter.cpp
lib/Support/Unix/Path.inc

index 6b8618fc5a171d1d0c162fe366e4d9b540cf95d5..005b1c645c935f74f90fce2dc2fe11b8f3ad5880 100644 (file)
@@ -54,7 +54,7 @@ struct PointerSumTypeHelper;
 ///
 /// It also default constructs to a zero tag with a null pointer, whatever that
 /// would be. This means that the zero value for the tag type is significant
-/// and may be desireable to set to a state that is particularly desirable to
+/// and may be desirable to set to a state that is particularly desirable to
 /// default construct.
 ///
 /// There is no support for constructing or accessing with a dynamic tag as
index be3057bd51b3e8043e11dfd38da2d77104136c21..a86706223261d99e996357bdd3f513e1970091a5 100644 (file)
@@ -57,7 +57,7 @@ namespace llvm {
       : id(i), def(d)
     { }
 
-    /// VNInfo construtor, copies values from orig, except for the value number.
+    /// VNInfo constructor, copies values from orig, except for the value number.
     VNInfo(unsigned i, const VNInfo &orig)
       : id(i), def(orig.def)
     { }
index 6dabcfd3e70aadfb0b6e0acae7fd3d36b25b3dd7..2fab8137564eac3aacd1678a9c494a6276a641bd 100644 (file)
@@ -103,7 +103,7 @@ class MachineFrameInfo {
 
     /// If true, this stack slot is used to spill a value (could be deopt
     /// and/or GC related) over a statepoint. We know that the address of the
-    /// slot can't alias any LLVM IR value.  This is very similiar to a Spill
+    /// slot can't alias any LLVM IR value.  This is very similar to a Spill
     /// Slot, but is created by statepoint lowering is SelectionDAG, not the
     /// register allocator. 
     bool isStatepointSpillSlot;
index b2871a9805e17b504b6489024c7c9a9e838269da..1fb276a302b91223dc355f51020bc45ebc3477a0 100644 (file)
@@ -111,7 +111,7 @@ public:
   MCSchedModel          SchedModel;     ///< Basic machine properties.
   const InstrStage     *Stages;         ///< Array of stages selected
   const unsigned       *OperandCycles;  ///< Array of operand cycles selected
-  const unsigned       *Forwardings;    ///< Array of pipeline forwarding pathes
+  const unsigned       *Forwardings;    ///< Array of pipeline forwarding paths
   const InstrItinerary *Itineraries;    ///< Array of itineraries selected
 
   /// Ctors.
index beba6f272c739c14ae3516c88027cf721c88bb3d..3e03fd8b980e72d58ada5a51ae8b1b421afd7671 100644 (file)
@@ -518,7 +518,7 @@ struct Elf_Phdr_Impl<ELFType<TargetEndianness, true>> {
   Elf_Xword p_align;  // Segment alignment constraint
 };
 
-// ELFT needed for endianess.
+// ELFT needed for endianness.
 template <class ELFT>
 struct Elf_Hash_Impl {
   LLVM_ELF_IMPORT_TYPES_ELFT(ELFT)
index 267007ea083564d8e9497f0c73163303cd3b5ce3..094f3af005d377ceb4f4d37d2b5b66cc220dfe05 100644 (file)
@@ -226,7 +226,7 @@ Error collectPGOFuncNameStrings(const std::vector<GlobalVariable *> &NameVars,
                                 std::string &Result, bool doCompression = true);
 class InstrProfSymtab;
 /// \c NameStrings is a string composed of one of more sub-strings encoded in
-/// the format described above. The substrings are seperated by 0 or more zero
+/// the format described above. The substrings are separated by 0 or more zero
 /// bytes. This method decodes the string and populates the \c Symtab.
 Error readPGOFuncNameStrings(StringRef NameStrings, InstrProfSymtab &Symtab);
 
index 3ffa9bc90dd10c0b9c09b980dac6d2dc2618bc3d..2d1180c228e31e1a825c544d68af37f09019e552 100644 (file)
@@ -29,7 +29,7 @@ public:
 
   /// \brief Get the data pointed to by this extractor.
   StringRef getData() const { return Data; }
-  /// \brief Get the endianess for this extractor.
+  /// \brief Get the endianness for this extractor.
   bool isLittleEndian() const { return IsLittleEndian; }
   /// \brief Get the address size for this extractor.
   uint8_t getAddressSize() const { return AddressSize; }
index 6080028362351c531c2b670f1fc81cbc36826b34..017b4973f1ffc1ddd1eb692873c90fb4e8c670fe 100644 (file)
@@ -72,7 +72,7 @@ public:
 };
 
 /// These are templated helper classes used by the format function that
-/// capture the object to be formated and the format string. When actually
+/// capture the object to be formatted and the format string. When actually
 /// printed, this synthesizes the string into a temporary buffer provided and
 /// returns whether or not it is big enough.
 
index 83b8f0998ae6aae1e3e3fccb0bb9310ade474670..28e875e8ff5e8b1e72dd42b82494f5283ba24c61 100644 (file)
@@ -21,7 +21,7 @@ namespace llvm {
 class raw_ostream;
 
 /// Simple wrapper around std::function<void(raw_ostream&)>.
-/// This class is usefull to construct print helpers for raw_ostream.
+/// This class is useful to construct print helpers for raw_ostream.
 ///
 /// Example:
 ///     Printable PrintRegister(unsigned Register) {
index a37bbf2474c5f35a62f352608e7f1719e88a350d..3b1998dfb1ff2e434d48c3a3c83f5483ca1bf905 100644 (file)
@@ -92,7 +92,7 @@ def NoItinerary : InstrItinClass;
 //
 // OperandCycles are optional "cycle counts". They specify the cycle after
 // instruction issue the values which correspond to specific operand indices
-// are defined or read. Bypasses are optional "pipeline forwarding pathes", if
+// are defined or read. Bypasses are optional "pipeline forwarding paths", if
 // a def by an instruction is available on a specific bypass and the use can
 // read from the same bypass, then the operand use latency is reduced by one.
 //
index d880516e42fe6d7f7ff263ac2755a675910bf2a1..8beabc7b03e7048b69c7faaec2c05184e9323cd2 100644 (file)
@@ -2105,7 +2105,7 @@ protected:
   virtual bool isExtFreeImpl(const Instruction *I) const { return false; }
 
   /// Depth that GatherAllAliases should should continue looking for chain
-  /// dependencies when trying to find a more preferrable chain. As an
+  /// dependencies when trying to find a more preferable chain. As an
   /// approximation, this should be more than the number of consecutive stores
   /// expected to be merged.
   unsigned GatherAllAliasesMaxDepth;
index 0d0bfa9d4549f881b2cf1bdeef5b18729d8124e3..da730eb746642ac6713ac6ad470fc9e744201307 100644 (file)
@@ -517,7 +517,7 @@ public:
 
   // For a copy-like instruction that defines a register of class DefRC with
   // subreg index DefSubReg, reading from another source with class SrcRC and
-  // subregister SrcSubReg return true if this is a preferrable copy
+  // subregister SrcSubReg return true if this is a preferable copy
   // instruction or an earlier use should be used.
   virtual bool shouldRewriteCopySrc(const TargetRegisterClass *DefRC,
                                     unsigned DefSubReg,
index 7abb161311d46186335fe0b150fbf00af713d4e7..ebcf989714335fc87b18ef7380ff21ff1d0afdf9 100644 (file)
@@ -275,7 +275,7 @@ static bool isObjectSize(const Value *V, uint64_t Size, const DataLayout &DL,
         GetLinearExpression(CastOp, Scale, Offset, ZExtBits, SExtBits, DL,
                             Depth + 1, AC, DT, NSW, NUW);
 
-    // zext(zext(%x)) == zext(%x), and similiarly for sext; we'll handle this
+    // zext(zext(%x)) == zext(%x), and similarly for sext; we'll handle this
     // by just incrementing the number of bits we've extended by.
     unsigned ExtendedBy = NewWidth - SmallWidth;
 
index 8de2c15160b914518288cf5e007e2177d878d586..e12ef56bb7595363a43149db78a68485a8c785a8 100644 (file)
@@ -6265,7 +6265,7 @@ ScalarEvolution::ExitLimit ScalarEvolution::computeShiftCompareExitLimit(
   //   %iv = phi i32 [ %iv.shifted, %loop ], [ %val, %preheader ]
   //   %iv.shifted = lshr i32 %iv, <positive constant>
   //
-  // Return true on a succesful match.  Return the corresponding PHI node (%iv
+  // Return true on a successful match.  Return the corresponding PHI node (%iv
   // above) in PNOut and the opcode of the shift operation in OpCodeOut.
   auto MatchShiftRecurrence =
       [&](Value *V, PHINode *&PNOut, Instruction::BinaryOps &OpCodeOut) {
@@ -10366,7 +10366,7 @@ const SCEV *PredicatedScalarEvolution::getSCEV(Value *V) {
     return Entry.second;
 
   // We found an entry but it's stale. Rewrite the stale entry
-  // acording to the current predicate.
+  // according to the current predicate.
   if (Entry.second)
     Expr = Entry.second;
 
index 6ad766b4bd7cfedfb33946236364d1990d9799ec..5217c4dc22a271e44c19342cd8563461682512b7 100644 (file)
@@ -1961,7 +1961,7 @@ bool SCEVExpander::isHighCostExpansionHelper(
     const SCEV *S, Loop *L, const Instruction *At,
     SmallPtrSetImpl<const SCEV *> &Processed) {
 
-  // If we can find an existing value for this scev avaliable at the point "At"
+  // If we can find an existing value for this scev available at the point "At"
   // then consider the expression cheap.
   if (At && getRelatedExistingExpansion(S, At, L))
     return false;
index d9a55af08a69621122ef5178a6ea695b5a25ed17..f249210be8211ca5397790d39c29016bdf3e73b8 100644 (file)
@@ -160,7 +160,7 @@ void WinException::endFunction(const MachineFunction *MF) {
   }
 }
 
-/// Retreive the MCSymbol for a GlobalValue or MachineBasicBlock.
+/// Retrieve the MCSymbol for a GlobalValue or MachineBasicBlock.
 static MCSymbol *getMCSymbolForMBB(AsmPrinter *Asm,
                                    const MachineBasicBlock *MBB) {
   if (!MBB)
index be1e5268927fecf409b1ef2b06955d315de3e5d1..36d53189604f0780597561a1b8354a728d8202cd 100644 (file)
@@ -5626,7 +5626,7 @@ bool CodeGenPrepare::splitBranchCondition(Function &F) {
     // incoming edge to the PHI nodes, because both branch instructions target
     // now the same successor. Depending on the original branch condition
     // (and/or) we have to swap the successors (TrueDest, FalseDest), so that
-    // we perfrom the correct update for the PHI nodes.
+    // we perform the correct update for the PHI nodes.
     // This doesn't change the successor order of the just created branch
     // instruction (or any other instruction).
     if (Opc == Instruction::Or)
index d3dc401dc4f7ef51ade85152b766a7c94a90fb9d..8b81a48a7b1373313a8bb8bfa142817db9090d25 100644 (file)
@@ -521,7 +521,7 @@ void llvm::calculateClrEHStateNumbers(const Function *Fn,
 
     if (const auto *Cleanup = dyn_cast<CleanupPadInst>(Pad)) {
       // Create the entry for this cleanup with the appropriate handler
-      // properties.  Finaly and fault handlers are distinguished by arity.
+      // properties.  Finally and fault handlers are distinguished by arity.
       ClrHandlerType HandlerType =
           (Cleanup->getNumArgOperands() ? ClrHandlerType::Fault
                                         : ClrHandlerType::Finally);
@@ -708,7 +708,7 @@ void WinEHPrepare::demotePHIsOnFunclets(Function &F) {
 
 void WinEHPrepare::cloneCommonBlocks(Function &F) {
   // We need to clone all blocks which belong to multiple funclets.  Values are
-  // remapped throughout the funclet to propogate both the new instructions
+  // remapped throughout the funclet to propagate both the new instructions
   // *and* the new basic blocks themselves.
   for (auto &Funclets : FuncletBlocks) {
     BasicBlock *FuncletPadBB = Funclets.first;
index 090b9a3857e3c550645b8dbd07f5169c59341cf7..7bfa79445584902bd2eaee6491c2f7c9e732f6a4 100644 (file)
@@ -217,7 +217,7 @@ private:
   // given symbol and get the value of the requested operand.
   // Returns an error if the instruction cannot be decoded, or the requested
   // operand is not an immediate.
-  // On success, retuns a pair containing the value of the operand, plus
+  // On success, returns a pair containing the value of the operand, plus
   // the expression remaining to be evaluated.
   std::pair<EvalResult, StringRef> evalDecodeOperand(StringRef Expr) const {
     if (!Expr.startswith("("))
@@ -463,7 +463,7 @@ private:
                           Expr.substr(FirstNonDigit));
   }
 
-  // Evaluate a constant numeric expression (hexidecimal or decimal) and
+  // Evaluate a constant numeric expression (hexadecimal or decimal) and
   // return a pair containing the result, and the expression remaining to be
   // evaluated.
   std::pair<EvalResult, StringRef> evalNumberExpr(StringRef Expr) const {
index 5730c931b0f3d9294330e34050ebfc94bf8bd91f..afc5c6a14d118e1ef855b0c2c6ae2149328b86a5 100644 (file)
@@ -791,7 +791,7 @@ void WinCOFFObjectWriter::recordRelocation(
     }
   }
 
-  // The fixed value never makes sense for section indicies, ignore it.
+  // The fixed value never makes sense for section indices, ignore it.
   if (Fixup.getKind() == FK_SecRel_2)
     FixedValue = 0;
 
index 881a2631ec0af8619978a4b98ea96cde1c22b28e..3812c5fb5de1be5a3561e126afd9e8f784398b7c 100644 (file)
@@ -53,7 +53,7 @@
 #include <sys/attr.h>
 #endif
 
-// Both stdio.h and cstdio are included via different pathes and
+// Both stdio.h and cstdio are included via different paths and
 // stdcxx's cstdio doesn't include stdio.h, so it doesn't #undef the macros
 // either.
 #undef ferror