mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Move helper classes into anonymous namespaces. NFC.
llvm-svn: 253189
This commit is contained in:
parent
f42b90aa98
commit
c51f76e89b
@ -3626,6 +3626,7 @@ ScalarEvolution::ForgetSymbolicName(Instruction *PN, const SCEV *SymName) {
|
||||
}
|
||||
}
|
||||
|
||||
namespace {
|
||||
class SCEVInitRewriter : public SCEVRewriteVisitor<SCEVInitRewriter> {
|
||||
public:
|
||||
static const SCEV *rewrite(const SCEV *Scev, const Loop *L,
|
||||
@ -3690,6 +3691,7 @@ private:
|
||||
const Loop *L;
|
||||
bool Valid;
|
||||
};
|
||||
} // end anonymous namespace
|
||||
|
||||
const SCEV *ScalarEvolution::createAddRecFromPHI(PHINode *PN) {
|
||||
const Loop *L = LI.getLoopFor(PN->getParent());
|
||||
@ -9614,6 +9616,7 @@ ScalarEvolution::getEqualPredicate(const SCEVUnknown *LHS,
|
||||
return Eq;
|
||||
}
|
||||
|
||||
namespace {
|
||||
class SCEVPredicateRewriter : public SCEVRewriteVisitor<SCEVPredicateRewriter> {
|
||||
public:
|
||||
static const SCEV *rewrite(const SCEV *Scev, ScalarEvolution &SE,
|
||||
@ -9638,6 +9641,7 @@ public:
|
||||
private:
|
||||
SCEVUnionPredicate &P;
|
||||
};
|
||||
} // end anonymous namespace
|
||||
|
||||
const SCEV *ScalarEvolution::rewriteUsingPredicate(const SCEV *Scev,
|
||||
SCEVUnionPredicate &Preds) {
|
||||
|
@ -1249,6 +1249,7 @@ int FunctionComparator::compare() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
namespace {
|
||||
// Accumulate the hash of a sequence of 64-bit integers. This is similar to a
|
||||
// hash of a sequence of 64bit ints, but the entire input does not need to be
|
||||
// available at once. This interface is necessary for functionHash because it
|
||||
@ -1267,6 +1268,7 @@ public:
|
||||
// No finishing is required, because the entire hash value is used.
|
||||
uint64_t getHash() { return Hash; }
|
||||
};
|
||||
} // end anonymous namespace
|
||||
|
||||
// A function hash is calculated by considering only the number of arguments and
|
||||
// whether a function is varargs, the order of basic blocks (given by the
|
||||
|
Loading…
Reference in New Issue
Block a user