diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-29 17:02:06 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-29 17:02:06 +0000 |
commit | 53545693d7be0ca0738fc910841526509ae207bb (patch) | |
tree | 9fb7f8e0b26c55480a7d76347b1096e24d3a1b91 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | b1276b4cff90f183154610624a287a09f785d236 (diff) | |
download | bcm5719-llvm-53545693d7be0ca0738fc910841526509ae207bb.tar.gz bcm5719-llvm-53545693d7be0ca0738fc910841526509ae207bb.zip |
Move helper classes into anonymous namespaces.
llvm-svn: 185262
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 6f52074f327..6c698dfabe6 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -2856,6 +2856,7 @@ void LoopVectorizationLegality::collectLoopUniforms() { } } +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(bool UseDeferred) { } } +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(); |