diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-08-21 05:55:13 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-08-21 05:55:13 +0000 | 
| commit | 71b7b68b741a29c473479c64dbaca00b94e316ab (patch) | |
| tree | a58f96876f8c68648a8dfc5b536685dc5890c041 /llvm/lib/Analysis | |
| parent | 5d1aeba2ea7ff1976b85a57d0591b97fd6e33ae0 (diff) | |
| download | bcm5719-llvm-71b7b68b741a29c473479c64dbaca00b94e316ab.tar.gz bcm5719-llvm-71b7b68b741a29c473479c64dbaca00b94e316ab.zip  | |
Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size.
llvm-svn: 216158
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Analysis/IVUsers.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Analysis/Lint.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 2 | 
4 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 8dc94219027..88e255832f1 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -967,7 +967,7 @@ Constant *llvm::ConstantFoldInstruction(Instruction *I,  static Constant *  ConstantFoldConstantExpressionImpl(const ConstantExpr *CE, const DataLayout *TD,                                     const TargetLibraryInfo *TLI, -                                   SmallPtrSet<ConstantExpr *, 4> &FoldedOps) { +                                   SmallPtrSetImpl<ConstantExpr *> &FoldedOps) {    SmallVector<Constant *, 8> Ops;    for (User::const_op_iterator i = CE->op_begin(), e = CE->op_end(); i != e;         ++i) { diff --git a/llvm/lib/Analysis/IVUsers.cpp b/llvm/lib/Analysis/IVUsers.cpp index 24655aa002c..12e6cefafd2 100644 --- a/llvm/lib/Analysis/IVUsers.cpp +++ b/llvm/lib/Analysis/IVUsers.cpp @@ -84,7 +84,7 @@ static bool isInteresting(const SCEV *S, const Instruction *I, const Loop *L,  /// form.  static bool isSimplifiedLoopNest(BasicBlock *BB, const DominatorTree *DT,                                   const LoopInfo *LI, -                                 SmallPtrSet<Loop*,16> &SimpleLoopNests) { +                                 SmallPtrSetImpl<Loop*> &SimpleLoopNests) {    Loop *NearestLoop = nullptr;    for (DomTreeNode *Rung = DT->getNode(BB);         Rung; Rung = Rung->getIDom()) { @@ -112,7 +112,7 @@ static bool isSimplifiedLoopNest(BasicBlock *BB, const DominatorTree *DT,  /// reducible SCEV, recursively add its users to the IVUsesByStride set and  /// return true.  Otherwise, return false.  bool IVUsers::AddUsersImpl(Instruction *I, -                           SmallPtrSet<Loop*,16> &SimpleLoopNests) { +                           SmallPtrSetImpl<Loop*> &SimpleLoopNests) {    // Add this IV user to the Processed set before returning false to ensure that    // all IV users are members of the set. See IVUsers::isIVUserOrOperand.    if (!Processed.insert(I)) diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp index b14f3292e90..eebe6b3e56b 100644 --- a/llvm/lib/Analysis/Lint.cpp +++ b/llvm/lib/Analysis/Lint.cpp @@ -96,7 +96,7 @@ namespace {      Value *findValue(Value *V, bool OffsetOk) const;      Value *findValueImpl(Value *V, bool OffsetOk, -                         SmallPtrSet<Value *, 4> &Visited) const; +                         SmallPtrSetImpl<Value *> &Visited) const;    public:      Module *Mod; @@ -622,7 +622,7 @@ Value *Lint::findValue(Value *V, bool OffsetOk) const {  /// findValueImpl - Implementation helper for findValue.  Value *Lint::findValueImpl(Value *V, bool OffsetOk, -                           SmallPtrSet<Value *, 4> &Visited) const { +                           SmallPtrSetImpl<Value *> &Visited) const {    // Detect self-referential values.    if (!Visited.insert(V))      return UndefValue::get(V->getType()); diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 4edfb615f2a..5716e24d5f4 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -1833,7 +1833,7 @@ bool llvm::getConstantStringInfo(const Value *V, StringRef &Str,  /// GetStringLengthH - If we can compute the length of the string pointed to by  /// the specified pointer, return 'len+1'.  If we can't, return 0. -static uint64_t GetStringLengthH(Value *V, SmallPtrSet<PHINode*, 32> &PHIs) { +static uint64_t GetStringLengthH(Value *V, SmallPtrSetImpl<PHINode*> &PHIs) {    // Look through noop bitcast instructions.    V = V->stripPointerCasts();  | 

