]> granicus.if.org Git - llvm/commitdiff
fix trivial typos in comments; NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Mon, 3 Jul 2017 06:32:59 +0000 (06:32 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Mon, 3 Jul 2017 06:32:59 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307004 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegisterScavenging.cpp
lib/DebugInfo/DWARF/DWARFDie.cpp
lib/Target/AArch64/AArch64CleanupLocalDynamicTLSPass.cpp
lib/Target/SystemZ/SystemZLDCleanup.cpp
lib/Target/X86/X86InstrInfo.cpp

index 05e641d9489d9e7acd60c237357f5236061fef8a..83d65a56fecdb6fbba5b51494010195231941e0f 100644 (file)
@@ -626,7 +626,7 @@ static unsigned scavengeVReg(MachineRegisterInfo &MRI, RegScavenger &RS,
   assert(RealDef != nullptr && "Must have at least 1 Def");
 #endif
 
-  // We should only have one definition of the register. However to accomodate
+  // We should only have one definition of the register. However to accommodate
   // the requirements of two address code we also allow definitions in
   // subsequent instructions provided they also read the register. That way
   // we get a single contiguous lifetime.
index ef416f72ad175bdcbfd07748ae09302d0c4cff1c..111f0bbd44448a5e143bea1503d67dc6485b8f6f 100644 (file)
@@ -395,7 +395,7 @@ DWARFDie::attribute_iterator::attribute_iterator(DWARFDie D, bool End) :
 void DWARFDie::attribute_iterator::updateForIndex(
     const DWARFAbbreviationDeclaration &AbbrDecl, uint32_t I) {
   Index = I;
-  // AbbrDecl must be valid befor calling this function.
+  // AbbrDecl must be valid before calling this function.
   auto NumAttrs = AbbrDecl.getNumAttributes();
   if (Index < NumAttrs) {
     AttrValue.Attr = AbbrDecl.getAttrByIndex(Index);
index 6f8dd3e3ac0cac5a39e01ba7fec9cc917a76e223..b3b738584b409d8dec18f682954df40fc545c4a2 100644 (file)
@@ -113,7 +113,7 @@ struct LDTLSCleanup : public MachineFunctionPass {
     return Copy;
   }
 
-  // Create a virtal register in *TLSBaseAddrReg, and populate it by
+  // Create a virtual register in *TLSBaseAddrReg, and populate it by
   // inserting a copy instruction after I. Returns the new instruction.
   MachineInstr *setRegister(MachineInstr &I, unsigned *TLSBaseAddrReg) {
     MachineFunction *MF = I.getParent()->getParent();
index 3a0e01da42f034124fb16abf0fb08eeaae10bce9..d4cd89ce590fcfc0932c1aaa61dcf35833be03be 100644 (file)
@@ -127,7 +127,7 @@ MachineInstr *SystemZLDCleanup::ReplaceTLSCall(MachineInstr *I,
   return Copy;
 }
 
-// Create a virtal register in *TLSBaseAddrReg, and populate it by
+// Create a virtual register in *TLSBaseAddrReg, and populate it by
 // inserting a copy instruction after I. Returns the new instruction.
 MachineInstr *SystemZLDCleanup::SetRegister(MachineInstr *I,
                                             unsigned *TLSBaseAddrReg) {
index f3094b781c494f5ceba5f047552b8e66896a0c7c..34d4816a25183e96052cb0e0fc71d105e46ca578 100644 (file)
@@ -10488,7 +10488,7 @@ namespace {
       return Copy;
     }
 
-    // Create a virtal register in *TLSBaseAddrReg, and populate it by
+    // Create a virtual register in *TLSBaseAddrReg, and populate it by
     // inserting a copy instruction after I. Returns the new instruction.
     MachineInstr *SetRegister(MachineInstr &I, unsigned *TLSBaseAddrReg) {
       MachineFunction *MF = I.getParent()->getParent();