[NFC] fix trivial typos in comments
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Thu, 22 Feb 2018 07:48:29 +0000 (07:48 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Thu, 22 Feb 2018 07:48:29 +0000 (07:48 +0000)
"a a" -> "a"

llvm-svn: 325752

llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h
llvm/lib/Target/AMDGPU/SIInsertWaits.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/test/tools/llvm-xray/X86/extract-all-sledtypes.txt
llvm/tools/llvm-readobj/COFFDumper.cpp

index ae0055ce69199bc6834c7293792a4c17cf6fb488..eacd13582dc6b8bb16c4090dc424c920d50ee2ca 100644 (file)
@@ -218,7 +218,7 @@ enum {
   /// - InsnID - Instruction ID to modify
   /// - RegNum - The register to add
   GIR_AddRegister,
-  /// Add a temporary register to the specified instruction
+  /// Add a temporary register to the specified instruction
   /// - InsnID - Instruction ID to modify
   /// - TempRegID - The temporary register ID to add
   GIR_AddTempRegister,
index e89f0f855ed17322d8f84d9b38da9e5ed2ce3a92..d06d96be542f98f8cb1bf1936aa8ede1e079e414 100644 (file)
@@ -218,7 +218,7 @@ Counters SIInsertWaits::getHwCounts(MachineInstr &MI) {
         unsigned Size = TRI->getRegSizeInBits(*RC);
         Result.Named.LGKM = Size > 32 ? 2 : 1;
       } else {
-        // s_dcache_inv etc. do not have a destination register. Assume we
+        // s_dcache_inv etc. do not have a destination register. Assume we
         // want a wait on these.
         // XXX - What is the right value?
         Result.Named.LGKM = 1;
index 02c6eb925ca6407fd0e98c28b8164ee29ddd28c7..95481e042b935f8dc4860d7a16033ae320158b9d 100644 (file)
@@ -358,7 +358,7 @@ int ARMTTIImpl::getVectorInstrCost(unsigned Opcode, Type *ValTy,
 int ARMTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
                                    const Instruction *I) {
   int ISD = TLI->InstructionOpcodeToISD(Opcode);
-  // On NEON a vector select gets lowered to vbsl.
+  // On NEON a vector select gets lowered to vbsl.
   if (ST->hasNEON() && ValTy->isVectorTy() && ISD == ISD::SELECT) {
     // Lowering of some vector selects is currently far from perfect.
     static const TypeConversionCostTblEntry NEONVectorSelectTbl[] = {
index 65a2fc35b11bbc9ec2ded0aa2556698b7a0c5fd5..e8c43de85291d9f13d4b249caa12e4bbbfcc68f4 100644 (file)
@@ -1914,7 +1914,7 @@ void HexagonFrameLowering::determineCalleeSaves(MachineFunction &MF,
   if (OptimizeSpillSlots && !isOptNone(MF))
     optimizeSpillSlots(MF, NewRegs);
 
-  // We need to reserve a spill slot if scavenging could potentially require
+  // We need to reserve a spill slot if scavenging could potentially require
   // spilling a scavenged register.
   if (!NewRegs.empty() || mayOverflowFrameOffset(MF)) {
     MachineFrameInfo &MFI = MF.getFrameInfo();
index f36a4317b1b9c3016e15d28a4e20eee96f1b70f5..5bcddb704a8d573d3695ff6680f8b20b551bd686 100644 (file)
@@ -3885,7 +3885,7 @@ bool MipsAsmParser::expandCondBranches(MCInst &Inst, SMLoc IDLoc,
   // This is accomplished by using a BNEZ with the result of the SLT.
   //
   // The other 2 pseudo-branches are opposites of the above 2 (BGE with BLT
-  // and BLE with BGT), so we change the BNEZ into a BEQZ.
+  // and BLE with BGT), so we change the BNEZ into a BEQZ.
   // Because only BGE and BLE branch on equality, we can use the
   // AcceptsEquality variable to decide when to emit the BEQZ.
   // Note that the order of the SLT arguments doesn't change between
index a4ac925cbd65cf2a31a283d997557a5610454178..f9942d190c883802572502a2ae01985892910366 100644 (file)
@@ -1,5 +1,5 @@
 # Test that we can extract all the sled types we know about. This is built with
-# a file with functions always instrumented, and using the built-ins and
+# a file with functions always instrumented, and using the built-ins and
 # intrinsics supported by clang. Those are built with:
 #
 #   clang++ -c all-sleds.cc -o all-sleds.o -fpic -std=c++11 -fxray-instrument
index 40334802d8efaaaf07d1211a3f8c069dc28f5998..f40e0d9c9a373bbc21bd4c1bc98f4b6dfc17ebf1 100644 (file)
@@ -244,7 +244,7 @@ std::error_code createCOFFDumper(const object::ObjectFile *Obj,
 
 } // namespace llvm
 
-// Given a section and an offset into this section the function returns the
+// Given a section and an offset into this section the function returns the
 // symbol used for the relocation at the offset.
 std::error_code COFFDumper::resolveSymbol(const coff_section *Section,
                                           uint64_t Offset, SymbolRef &Sym) {