Move helper classes into anonymous namespaces.
llvm-svn: 185262
This commit is contained in:
parent
b1276b4cff
commit
53545693d7
|
@ -2856,6 +2856,7 @@ void LoopVectorizationLegality::collectLoopUniforms() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
/// \brief Analyses memory accesses in a loop.
|
/// \brief Analyses memory accesses in a loop.
|
||||||
///
|
///
|
||||||
/// Checks whether run time pointer checks are needed and builds sets for data
|
/// Checks whether run time pointer checks are needed and builds sets for data
|
||||||
|
@ -2944,6 +2945,8 @@ private:
|
||||||
bool IsRTCheckNeeded;
|
bool IsRTCheckNeeded;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
/// \brief Check whether a pointer can participate in a runtime bounds check.
|
/// \brief Check whether a pointer can participate in a runtime bounds check.
|
||||||
static bool hasComputableBounds(ScalarEvolution *SE, Value *Ptr) {
|
static bool hasComputableBounds(ScalarEvolution *SE, Value *Ptr) {
|
||||||
const SCEV *PtrScev = SE->getSCEV(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
|
/// \brief Checks memory dependences among accesses to the same underlying
|
||||||
/// object to determine whether there vectorization is legal or not (and at
|
/// object to determine whether there vectorization is legal or not (and at
|
||||||
/// which vectorization factor).
|
/// which vectorization factor).
|
||||||
|
@ -3206,6 +3210,8 @@ private:
|
||||||
bool couldPreventStoreLoadForward(unsigned Distance, unsigned TypeByteSize);
|
bool couldPreventStoreLoadForward(unsigned Distance, unsigned TypeByteSize);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
static bool isInBoundsGep(Value *Ptr) {
|
static bool isInBoundsGep(Value *Ptr) {
|
||||||
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr))
|
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr))
|
||||||
return GEP->isInBounds();
|
return GEP->isInBounds();
|
||||||
|
|
Loading…
Reference in New Issue