[llvm] r185262 - Move helper classes into anonymous namespaces.

Benjamin Kramer benny.kra at googlemail.com
Sat Jun 29 10:02:07 PDT 2013


Author: d0k
Date: Sat Jun 29 12:02:06 2013
New Revision: 185262

URL: http://llvm.org/viewvc/llvm-project?rev=185262&view=rev
Log:
Move helper classes into anonymous namespaces.

Modified:
    llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=185262&r1=185261&r2=185262&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Sat Jun 29 12:02:06 2013
@@ -2856,6 +2856,7 @@ void LoopVectorizationLegality::collectL
   }
 }
 
+namespace {
 /// \brief Analyses memory accesses in a loop.
 ///
 /// Checks whether run time pointer checks are needed and builds sets for data
@@ -2944,6 +2945,8 @@ private:
   bool IsRTCheckNeeded;
 };
 
+} // end anonymous namespace
+
 /// \brief Check whether a pointer can participate in a runtime bounds check.
 static bool hasComputableBounds(ScalarEvolution *SE, Value *Ptr) {
   const SCEV *PtrScev = SE->getSCEV(Ptr);
@@ -3102,6 +3105,7 @@ void AccessAnalysis::processMemAccesses(
   }
 }
 
+namespace {
 /// \brief Checks memory dependences among accesses to the same underlying
 /// object to determine whether there vectorization is legal or not (and at
 /// which vectorization factor).
@@ -3206,6 +3210,8 @@ private:
   bool couldPreventStoreLoadForward(unsigned Distance, unsigned TypeByteSize);
 };
 
+} // end anonymous namespace
+
 static bool isInBoundsGep(Value *Ptr) {
   if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr))
     return GEP->isInBounds();





More information about the llvm-commits mailing list