Tidy up. Space before ':' in range-based for loops.
authorJim Grosbach <grosbach@apple.com>
Thu, 3 Apr 2014 23:43:26 +0000 (23:43 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 3 Apr 2014 23:43:26 +0000 (23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205585 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM64/ARM64AddressTypePromotion.cpp
lib/Target/ARM64/ARM64BranchRelaxation.cpp
lib/Target/ARM64/ARM64CollectLOH.cpp
lib/Target/ARM64/ARM64PromoteConstant.cpp
lib/Target/ARM64/ARM64StorePairSuppress.cpp

index 72fa6af367cf153f500b933e89e9eb81bc5d4a5e..444bb9de69a223288b0670a58c61c156cae8b17e 100644 (file)
@@ -380,7 +380,7 @@ void ARM64AddressTypePromotion::mergeSExts(ValueToInsts &ValToSExtendedUses,
                                            SetOfInstructions &ToRemove) {
   DominatorTree &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
 
-  for (auto &Entry: ValToSExtendedUses) {
+  for (auto &Entry : ValToSExtendedUses) {
     Instructions &Insts = Entry.second;
     Instructions CurPts;
     for (Instruction *Inst : Insts) {
@@ -421,7 +421,7 @@ void ARM64AddressTypePromotion::analyzeSExtension(Instructions &SExtInsts) {
   DenseMap<Value *, Instruction *> SeenChains;
 
   for (auto &BB : *Func) {
-    for (auto &II: BB) {
+    for (auto &II : BB) {
       Instruction *SExt = &II;
 
       // Collect all sext operation per type.
index a9bbef5a1ce30b8a84c795295e4d7015305b0f08..435b1fab5fa8faec85149cf0e4a8a2b64bc1ec79 100644 (file)
@@ -120,7 +120,7 @@ void ARM64BranchRelaxation::verify() {
 
 /// print block size and offset information - debugging
 void ARM64BranchRelaxation::dumpBBs() {
-  for (auto &MBB: *MF) {
+  for (auto &MBB : *MF) {
     const BasicBlockInfo &BBI = BlockInfo[MBB.getNumber()];
     dbgs() << format("BB#%u\toffset=%08x\t", MBB.getNumber(), BBI.Offset)
            << format("size=%#x\n", BBI.Size);
index f52778f2b2ca90fa9f10133d43f6fa6a9ca1e3a6..7da500b9b5cb3b889d338ea993fb8f2baafb5976 100644 (file)
@@ -650,7 +650,7 @@ static void computeADRP(const InstrToInstrs &UseToDefs,
                         ARM64FunctionInfo &ARM64FI,
                         const MachineDominatorTree *MDT) {
   DEBUG(dbgs() << "*** Compute LOH for ADRP\n");
-  for (const auto &Entry: UseToDefs) {
+  for (const auto &Entry : UseToDefs) {
     unsigned Size = Entry.second.size();
     if (Size == 0)
       continue;
@@ -923,7 +923,7 @@ static void computeOthers(const InstrToInstrs &UseToDefs,
         }
       }
       bool Found = false;
-      for (auto &Use: *Users) {
+      for (auto &Use : *Users) {
         if (!DefsOfPotentialCandidates.count(Use)) {
           ++NumTooCplxLvl1;
           Found = true;
index 9fbaedb5a588caff864f3d8a8e25cbb9d129cbcf..c19ade940cb29461ec7a5dc75dce0b344dd8385c 100644 (file)
@@ -93,7 +93,7 @@ public:
   bool runOnModule(Module &M) {
     DEBUG(dbgs() << getPassName() << '\n');
     bool Changed = false;
-    for (auto &MF: M) {
+    for (auto &MF : M) {
       Changed |= runOnFunction(MF);
     }
     return Changed;
@@ -566,7 +566,7 @@ bool ARM64PromoteConstant::runOnFunction(Function &F) {
   SmallSet<Constant *, 8> AlreadyChecked;
 
   for (auto &MBB : F) {
-    for (auto &MI: MBB) {
+    for (auto &MI : MBB) {
       // Traverse the operand, looking for constant vectors
       // Replace them by a load of a global variable of type constant vector
       for (unsigned OpIdx = 0, EndOpIdx = MI.getNumOperands();
index 6521d134221792a704d0921445fb518488c0de3a..fc6a0439c559e86d1aa483f93d6a015d40e73676 100644 (file)
@@ -138,10 +138,10 @@ bool ARM64StorePairSuppress::runOnMachineFunction(MachineFunction &mf) {
   // precisely determine whether a store pair can be formed. But we do want to
   // filter out most situations where we can't form store pairs to avoid
   // computing trace metrics in those cases.
-  for (auto &MBB: *MF) {
+  for (auto &MBB : *MF) {
     bool SuppressSTP = false;
     unsigned PrevBaseReg = 0;
-    for (auto &MI: MBB) {
+    for (auto &MI : MBB) {
       if (!isNarrowFPStore(MI))
         continue;
       unsigned BaseReg;